This repository has been archived by the owner on Aug 27, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 141
/
setup.py
101 lines (93 loc) · 3.3 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 """
import os
import re
from setuptools import find_packages, setup
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_TEST = open(os.path.join(HERE, "requirements_test.txt")).readlines()
REQUIREMENTS = [
"smart_open[s3,http]",
"boto3>=1.7.0",
# beaker needs this
"cryptography",
"distlib",
"paste",
"passlib>=1.7",
"pyramid>=2",
"pyramid_beaker",
"pyramid_duh",
"pyramid_jinja2",
"pyramid_rpc",
"pyramid_tm",
"requests",
"transaction",
"zope.sqlalchemy",
]
EXTRAS = {
"ldap": ["python-ldap"],
"dynamo": ["flywheel>=0.2.0"],
"redis": ["redis"],
"gcs": [
"google-cloud-storage>=1.10.0",
"smart_open[gcs]>=6.3.0", # ref #320
],
"azure-blob": [
"azure-storage-blob>=12.5.0",
"smart_open[azure]>=6.1.0", # ref #304
],
}
EXTRAS["all_plugins"] = sum(EXTRAS.values(), [])
EXTRAS["server"] = ["waitress"]
if __name__ == "__main__":
setup(
name="pypicloud",
version="1.3.12",
description="Private PyPI backed by S3",
long_description=README + "\n\n" + CHANGES,
classifiers=[
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"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="stevearc@stevearc.com",
url="http://pypicloud.readthedocs.org/",
keywords="pypi s3 cheeseshop package",
platforms="any",
zip_safe=False,
python_requires=">=3.7",
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 + REQUIREMENTS_TEST,
test_suite="tests",
extras_require=EXTRAS,
)