AlexMathew/scrapple

View on GitHub
setup.py

Summary

Maintainability
A
0 mins
Test Coverage
#!/usr/bin/env python
# -*- coding: utf-8 -*-

from __future__ import print_function

from subprocess import call

try:
    from setuptools import setup, find_packages
except ImportError:
    from distutils.core import setup, find_packages


readme = open('README.rst').read()
# history = open('HISTORY.rst').read().replace('.. :changelog:', '')
history = ""

requirements = open('requirements.txt').read().split('\n')

test_requirements = open('test_requirements.txt').read().split('\n')

setup(
    name='scrapple',
    version='0.3.0',
    description='A framework for creating web content extractors',
    long_description=readme + '\n\n' + history,
    author='Alex Mathew',
    author_email='alexmathew003@gmail.com',
    url='https://alexmathew.github.io/scrapple',
    packages=find_packages(exclude=('tests',)),
    package_dir={'scrapple':
                 'scrapple'},
    include_package_data=True,
    install_requires=requirements,
    license="MIT",
    zip_safe=False,
    keywords=['scrapple', 'web', 'content', 'scraper', 'crawler', 'scraping', 'crawling', 'website', 'data', 'scrapy'],
    entry_points={
        'console_scripts': ['scrapple = scrapple.cmd:runCLI']
    },
    classifiers=[
        'Development Status :: 4 - Beta',
        'Intended Audience :: Developers',
        'Intended Audience :: Science/Research',
        'License :: OSI Approved :: MIT License',
        'Natural Language :: English',
        'Programming Language :: Python :: 2.7',
        'Programming Language :: Python :: 3',
        'Programming Language :: Python :: 3.3',
        'Programming Language :: Python :: 3.4',
        'Topic :: Internet :: WWW/HTTP',
        'Topic :: Software Development :: Libraries :: Python Modules',
        'Topic :: Software Development :: Code Generators'
    ],
    test_suite='tests',
    tests_require=test_requirements
)

print("Setting up argument completion")
x = call(["bash", "scrapple.sh"])

print("\nScrapple has been installed. Use ```scrapple --help``` for instructions\n")