forked from stevearc/pypicloud
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
101 lines (95 loc) · 3.26 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
""" Setup file """
from setuptools import setup, find_packages
import os
import re
HERE = os.path.abspath(os.path.dirname(__file__))
README = open(os.path.join(HERE, 'README.rst')).read()
CHANGES = open(os.path.join(HERE, 'CHANGES.rst')).read()
# Remove custom RST extensions for pypi
CHANGES = re.sub(r'\(\s*:(issue|pr|sha):.*?\)', '', CHANGES)
CHANGES = re.sub(r':ref:`(.*?) <.*>`', r'\1', CHANGES)
REQUIREMENTS = [
'boto3>=1.7.0',
# beaker needs this
'cryptography',
# We're doing enough subclassing and monkey patching to where we really do
# need to lock this in to a specific version.
'distlib==0.2.5',
'paste',
'passlib>=1.7',
'pyramid',
'pyramid_beaker',
'pyramid_duh>=0.1.1',
'pyramid_jinja2',
'pyramid_rpc',
'pyramid_tm',
'six',
'transaction',
'zope.sqlalchemy',
]
TEST_REQUIREMENTS = [
'flywheel',
'mock',
'mockldap',
'moto',
'nose',
'redis',
'requests',
'webtest',
]
if __name__ == "__main__":
setup(
name='pypicloud',
version='1.0.6',
description='Private PyPI backed by S3',
long_description=README + '\n\n' + CHANGES,
classifiers=[
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Development Status :: 4 - Beta',
'Framework :: Pyramid',
'Intended Audience :: System Administrators',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Topic :: Internet :: WWW/HTTP',
'Topic :: System :: Systems Administration',
],
license='MIT',
author='Steven Arcangeli',
author_email='[email protected]',
url='http://pypicloud.readthedocs.org/',
keywords='pypi s3 cheeseshop package',
platforms='any',
zip_safe=False,
include_package_data=True,
packages=find_packages(exclude=('tests',)),
entry_points={
'console_scripts': [
'pypicloud-gen-password = pypicloud.scripts:gen_password',
'pypicloud-make-config = pypicloud.scripts:make_config',
'ppc-gen-password = pypicloud.scripts:gen_password',
'ppc-make-config = pypicloud.scripts:make_config',
'ppc-migrate = pypicloud.scripts:migrate_packages',
'ppc-export = pypicloud.scripts:export_access',
'ppc-import = pypicloud.scripts:import_access',
'ppc-create-s3-sync = pypicloud.lambda_scripts:create_sync_scripts',
'ppc-build-lambda-bundle = pypicloud.lambda_scripts:build_lambda_bundle',
],
'paste.app_factory': [
'main = pypicloud:main',
],
},
install_requires=REQUIREMENTS,
tests_require=REQUIREMENTS + TEST_REQUIREMENTS,
test_suite='tests',
extras_require={
'ldap': ['pyldap'],
'server': ['waitress'],
'dynamo': ['flywheel >= 0.2.0'],
'redis': ['redis'],
},
)