setup.py 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. #!/usr/bin/env python
  2. # vim: set sw=4 et:
  3. from setuptools import setup, find_packages
  4. from setuptools.command.test import test as TestCommand
  5. import glob
  6. __version__ = '1.7.4'
  7. class PyTest(TestCommand):
  8. def finalize_options(self):
  9. TestCommand.finalize_options(self)
  10. # should work with setuptools <18, 18 18.5
  11. self.test_suite = ' '
  12. def run_tests(self):
  13. import pytest
  14. import sys
  15. import os
  16. errcode = pytest.main(['--doctest-modules', './warcio', '--cov', 'warcio', '-v', 'test/'])
  17. sys.exit(errcode)
  18. setup(
  19. name='warcio',
  20. version=__version__,
  21. author='Ilya Kreymer',
  22. author_email='ikreymer@gmail.com',
  23. license='Apache 2.0',
  24. packages=find_packages(exclude=['test']),
  25. url='https://github.com/webrecorder/warcio',
  26. description='Streaming WARC (and ARC) IO library',
  27. long_description=open('README.rst').read(),
  28. provides=[
  29. 'warcio',
  30. ],
  31. install_requires=[
  32. 'six',
  33. ],
  34. zip_safe=True,
  35. entry_points="""
  36. [console_scripts]
  37. warcio = warcio.cli:main
  38. """,
  39. cmdclass={'test': PyTest},
  40. test_suite='',
  41. tests_require=[
  42. 'pytest',
  43. 'pytest-cov',
  44. 'httpbin==0.5.0',
  45. 'requests',
  46. 'wsgiprox',
  47. ],
  48. classifiers=[
  49. 'Development Status :: 5 - Production/Stable',
  50. 'Environment :: Web Environment',
  51. 'License :: OSI Approved :: Apache Software License',
  52. 'Programming Language :: Python :: 2',
  53. 'Programming Language :: Python :: 2.7',
  54. 'Programming Language :: Python :: 3',
  55. 'Programming Language :: Python :: 3.4',
  56. 'Programming Language :: Python :: 3.5',
  57. 'Programming Language :: Python :: 3.6',
  58. 'Programming Language :: Python :: 3.7',
  59. 'Topic :: Software Development :: Libraries :: Python Modules',
  60. 'Topic :: Utilities',
  61. ]
  62. )