2013-11-15 22:35:32 -08:00
|
|
|
#!/usr/bin/env python
|
2016-04-06 19:37:55 -07:00
|
|
|
#
|
|
|
|
# setup.py - setuptools installation config for warcprox
|
|
|
|
#
|
|
|
|
# Copyright (C) 2013-2016 Internet Archive
|
|
|
|
#
|
|
|
|
# This program is free software; you can redistribute it and/or
|
|
|
|
# modify it under the terms of the GNU General Public License
|
|
|
|
# as published by the Free Software Foundation; either version 2
|
|
|
|
# of the License, or (at your option) any later version.
|
|
|
|
#
|
|
|
|
# This program is distributed in the hope that it will be useful,
|
|
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
# GNU General Public License for more details.
|
|
|
|
#
|
|
|
|
# You should have received a copy of the GNU General Public License
|
|
|
|
# along with this program; if not, write to the Free Software
|
|
|
|
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
|
|
|
|
# USA.
|
|
|
|
#
|
2013-11-15 22:35:32 -08:00
|
|
|
|
2014-01-17 12:13:39 -08:00
|
|
|
from setuptools.command.test import test as TestCommand
|
|
|
|
import sys
|
2015-11-13 01:17:35 +00:00
|
|
|
import setuptools
|
2013-11-15 22:35:32 -08:00
|
|
|
|
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-13 01:17:35 +00:00
|
|
|
deps = [
|
|
|
|
'certauth>=1.1.0',
|
|
|
|
'warctools',
|
2016-03-03 18:58:52 +00:00
|
|
|
'kafka-python>=1.0.1',
|
2016-02-25 01:36:36 +00:00
|
|
|
'surt>=0.3b4',
|
2015-11-13 01:17:35 +00:00
|
|
|
'rethinkstuff',
|
|
|
|
'PySocks',
|
|
|
|
]
|
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',
|
2016-06-24 20:04:27 -05:00
|
|
|
version='2.0.dev10',
|
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',
|
2016-06-24 20:04:27 -05:00
|
|
|
'Programming Language :: Python :: 3.5',
|
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
|
|
|
|