warcprox/setup.py

53 lines
1.8 KiB
Python
Raw Normal View History

2013-11-15 22:35:32 -08:00
#!/usr/bin/env python
# vim: set sw=4 et:
from setuptools.command.test import test as TestCommand
import sys
2013-11-15 22:35:32 -08:00
import setuptools
# special class needs to be added to support the pytest written dump-anydbm tests
class PyTest(TestCommand):
def finalize_options(self):
TestCommand.finalize_options(self)
self.test_args = []
self.test_suite = True
def run_tests(self):
#import here, cause outside the eggs aren't loaded
import pytest
errno = pytest.main(self.test_args)
sys.exit(errno)
2013-11-15 22:35:32 -08:00
setuptools.setup(name='warcprox',
version='1.5.0',
2013-11-15 22:35:32 -08:00
description='WARC writing MITM HTTP/S proxy',
url='https://github.com/internetarchive/warcprox',
author='Noah Levitt',
author_email='nlevitt@archive.org',
long_description=open('README.rst').read(),
2013-11-15 22:35:32 -08:00
license='GPL',
packages=['warcprox'],
install_requires=[
'certauth>=1.1.0',
'warctools',
'kafka-python',
'surt',
'rethinkstuff',
],
tests_require=['requests>=2.0.1', 'pytest'], # >=2.0.1 for https://github.com/kennethreitz/requests/pull/1636
cmdclass = {'test': PyTest},
test_suite='warcprox.tests',
2013-11-15 22:35:32 -08:00
scripts=['bin/dump-anydbm', 'bin/warcprox'],
2013-12-19 17:03:40 -08:00
zip_safe=False,
classifiers=[
'Development Status :: 5 - Production/Stable',
'Environment :: Console',
'License :: OSI Approved :: GNU General Public License (GPL)',
2015-03-18 16:29:44 -07:00
'Programming Language :: Python :: 2.7',
2014-08-01 16:00:53 -07:00
'Programming Language :: Python :: 3.4',
2013-12-19 17:03:40 -08:00
'Topic :: Internet :: Proxy Servers',
'Topic :: Internet :: WWW/HTTP',
2013-12-19 17:08:13 -08:00
'Topic :: Software Development :: Libraries :: Python Modules',
2013-12-19 17:03:40 -08:00
'Topic :: System :: Archiving',
])
2013-11-15 22:35:32 -08:00