forked from reddit/baseplate.py
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
79 lines (75 loc) · 2.78 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
import itertools
from setuptools import find_packages
from setuptools import setup
extras_require = {
"amqp": ["kombu>=4.0.0,<5.0"],
"cassandra": ["cassandra-driver>=3.13.0,<4.0"],
"cqlmapper": ["reddit-cqlmapper>=0.3.0,<1.0"],
"kafka": ["confluent-kafka>=1.3,<2.0"],
"memcache": ["pymemcache>=1.3.0,<1.4.4"],
"prometheus": ["prometheus-client>=0.12.0,<1.0"],
"pyramid": ["pyramid>=1.9.0,<2.0"],
"redis": ["redis>=2.10.0,<4.0.0"],
"redis-py-cluster": ["redis-py-cluster>=2.1.2,<3.0.0"],
"refcycle": ["objgraph>=3.0,<4.0"],
"requests": ["advocate>=1.0.0,<2.0"],
"s3fetcher": ["boto3>=1.18"], # Kept for backwards compatibility, these are now main requirements
"sentry": ["sentry-sdk>=0.19,<2.0"],
"sql": ["sqlalchemy>=1.1.0,<2.0"],
"zookeeper": ["kazoo>=2.5.0,<3.0"],
}
extras_require["all"] = list(itertools.chain.from_iterable(extras_require.values()))
setup(
name="baseplate",
description="reddit's python service framework",
long_description=open("README.md").read(),
long_description_content_type="text/markdown",
author="reddit",
license="BSD",
url="https://github.com/reddit/baseplate.py",
project_urls={
"Documentation": "https://baseplate.readthedocs.io/en/stable/",
"Source": "https://github.com/reddit/baseplate.py",
},
use_scm_version=True,
packages=find_packages(exclude=["tests", "tests.*"]),
python_requires=">=3.7",
setup_requires=["setuptools_scm"],
install_requires=[
"boto3>=1.18",
"posix_ipc>=1.0.0,<2.0",
"python-json-logger>=2.0,<3.0",
"requests>=2.21.0,<3.0",
"thrift>=0.14.1,<1.0",
"gevent>=20.5.0",
"prometheus-client>=0.12.0",
],
extras_require=extras_require,
scripts=[
"bin/baseplate-script",
"bin/baseplate-serve",
"bin/baseplate-shell",
"bin/baseplate-tshell",
"bin/baseplate-healthcheck",
],
# the thrift compiler must be able to find baseplate.thrift to build
# services which extend BaseplateService.
package_data={"baseplate": ["py.typed"], "baseplate.thrift": ["*.thrift"]},
zip_safe=False,
entry_points={
"distutils.commands": [
"build_thrift = baseplate.frameworks.thrift.command:BuildThriftCommand"
],
},
classifiers=[
"Development Status :: 5 - Production/Stable",
"License :: OSI Approved :: BSD License",
"Operating System :: POSIX :: Linux",
"Programming Language :: Python",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Topic :: Software Development :: Libraries",
"Topic :: Software Development :: Libraries :: Application Frameworks",
],
)