2013-11-15 22:35:32 -08:00
|
|
|
#!/usr/bin/env python
|
|
|
|
# vim: set sw=4 et:
|
|
|
|
|
2014-01-17 12:13:39 -08:00
|
|
|
from setuptools.command.test import test as TestCommand
|
|
|
|
import sys
|
2013-11-15 22:35:32 -08:00
|
|
|
import setuptools
|
|
|
|
|
2014-01-17 12:13:39 -08:00
|
|
|
# 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)
|
|
|
|
|
2015-11-02 22:01:26 +00:00
|
|
|
deps = ['certauth>=1.1.0', 'warctools', 'kafka-python', 'surt==0.3b2', 'rethinkstuff']
|
2015-10-28 21:02:42 +00:00
|
|
|
try:
|
|
|
|
import concurrent.futures
|
|
|
|
except:
|
|
|
|
deps.append('futures')
|
|
|
|
|
2013-11-15 22:35:32 -08:00
|
|
|
setuptools.setup(name='warcprox',
|
2015-09-24 00:19:32 +00:00
|
|
|
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',
|
2013-11-28 01:28:59 -08:00
|
|
|
long_description=open('README.rst').read(),
|
2013-11-15 22:35:32 -08:00
|
|
|
license='GPL',
|
|
|
|
packages=['warcprox'],
|
2015-10-28 21:02:42 +00:00
|
|
|
install_requires=deps,
|
2014-01-17 12:13:39 -08:00
|
|
|
tests_require=['requests>=2.0.1', 'pytest'], # >=2.0.1 for https://github.com/kennethreitz/requests/pull/1636
|
|
|
|
cmdclass = {'test': PyTest},
|
2013-12-06 16:50:02 -08:00
|
|
|
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
|
|
|
|