1
0
mirror of https://github.com/webrecorder/pywb.git synced 2025-03-15 00:03:28 +01:00
pywb/setup.py

135 lines
4.0 KiB
Python
Raw Normal View History

2013-12-09 11:58:50 -08:00
#!/usr/bin/env python
# vim: set sw=4 et:
from setuptools import setup, find_packages
from setuptools.command.test import test as TestCommand
import glob
2013-12-09 11:58:50 -08:00
2015-03-23 11:04:41 -07:00
from pywb import __version__
# Fix for TypeError: 'NoneType' object is not callable" error
# when running 'python setup.py test'
try:
import multiprocessing
except ImportError:
pass
2014-03-10 19:11:19 -07:00
long_description = open('README.rst').read()
class PyTest(TestCommand):
user_options = []
def finalize_options(self):
2015-11-04 16:33:19 -08:00
TestCommand.finalize_options(self)
self.test_suite = ' '
def run_tests(self):
import pytest
import sys
import os
os.environ.pop('PYWB_CONFIG_FILE', None)
cmdline = ' --cov-config .coveragerc --cov pywb'
cmdline += ' -v --doctest-module ./pywb/ tests/'
errcode = pytest.main(cmdline)
sys.exit(errcode)
setup(
name='pywb',
2015-03-23 11:04:41 -07:00
version=__version__,
url='https://github.com/ikreymer/pywb',
author='Ilya Kreymer',
2014-03-12 17:57:54 -07:00
author_email='ikreymer@gmail.com',
2015-03-23 11:04:41 -07:00
description='Python WayBack for web archive replay and live web proxy',
long_description=long_description,
license='GPL',
packages=find_packages(),
zip_safe=True,
provides=[
'pywb',
'pywb.utils',
'pywb.cdx',
'pywb.warc',
'pywb.rewrite',
2014-03-12 18:35:21 -07:00
'pywb.framework',
'pywb.manager',
'pywb.perms',
'pywb.webapp',
'pywb.apps',
'pywb.webagg',
'pywb.recorder',
'pywb.urlrewrite'
],
package_data={
'pywb': ['static/flowplayer/*', 'static/*.*', 'templates/*', '*.yaml'],
},
data_files=[
('sample_archive/cdx', glob.glob('sample_archive/cdx/*')),
('sample_archive/cdxj', glob.glob('sample_archive/cdxj/*')),
('sample_archive/non-surt-cdx', glob.glob('sample_archive/non-surt-cdx/*')),
('sample_archive/zipcdx', glob.glob('sample_archive/zipcdx/*')),
('sample_archive/warcs', glob.glob('sample_archive/warcs/*')),
('sample_archive/text_content',
glob.glob('sample_archive/text_content/*')),
],
install_requires=[
2016-02-16 16:14:10 -08:00
'six',
'chardet',
'requests',
'redis',
'jinja2',
'surt>=0.3.0',
'brotlipy',
'pyyaml',
'webencodings',
'gevent==1.1.2',
'webassets==0.12.0',
#'pyamf'
],
dependency_links=[
'git+https://github.com/ikreymer/webassets.git@pyinstaller#egg=webassets-0.12.0',
#'git+https://github.com/t0m/pyamf.git@python3#egg=pyamf-0.8.0'
],
tests_require=[
'pytest',
'WebTest',
'pytest-cov',
'fakeredis',
'mock',
'urllib3',
'bottle',
'werkzeug',
],
cmdclass={'test': PyTest},
test_suite='',
entry_points="""
[console_scripts]
wayback = pywb.apps.cli:wayback
cdx-server = pywb.apps.cli:cdx_server
live-rewrite-server = pywb.apps.cli:live_rewrite_server
cdx-indexer = pywb.warc.cdxindexer:main
wb-manager = pywb.manager.manager:main_wrap_exc
webagg-server = pywb.apps.cli:webagg
2014-03-10 19:19:41 -07:00
""",
2014-03-10 19:11:19 -07:00
classifiers=[
'Development Status :: 4 - Beta',
'Environment :: Web Environment',
'License :: OSI Approved :: GNU General Public License (GPL)',
'License :: OSI Approved :: GNU General Public License v3 (GPLv3)',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Topic :: Internet :: Proxy Servers',
'Topic :: Internet :: WWW/HTTP',
'Topic :: Internet :: WWW/HTTP :: WSGI',
'Topic :: Internet :: WWW/HTTP :: WSGI :: Application',
'Topic :: Internet :: WWW/HTTP :: WSGI :: Middleware',
'Topic :: Internet :: WWW/HTTP :: WSGI :: Server',
'Topic :: Software Development :: Libraries :: Python Modules',
'Topic :: System :: Archiving',
'Topic :: System :: Archiving :: Backup',
'Topic :: Utilities',
])