コード例 #1
0
ファイル: setup.py プロジェクト: kracekumar/crawlit
    from setuptools import setup
except ImportError:
    from distutils.core import setup

if sys.argv[-1] == 'publish':
    os.system('python setup.py sdist upload')
    sys.exit()

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

install_requires = open('requirements.txt').readlines()

setup(
    name='crawlit',
    version=get_version(),
    description='Python web crawler with limitations.',
    long_description=readme + '\n\n' + history,
    author='kracekumar',
    author_email='*****@*****.**',
    url='https://github.com/kracekumar/crawlit',
    packages=[
        'crawlit',
    ],
    package_dir={'crawlit': 'crawlit'},
    include_package_data=True,
    install_requires=install_requires,
    license="BSD",
    zip_safe=False,
    keywords='crawlit',
    classifiers=[
コード例 #2
0
ファイル: test_crawlit.py プロジェクト: kracekumar/crawlit
 def test_get_version(self):
     self.assertIsInstance(get_version(), unicode)