forked from move-coop/parsons
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
86 lines (80 loc) · 2.86 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
import os
from setuptools import find_packages
from distutils.core import setup
def main():
limited_deps = os.environ.get("PARSONS_LIMITED_DEPENDENCIES", "")
if limited_deps.strip().upper() in ("1", "YES", "TRUE", "ON"):
install_requires = [
"petl",
"python-dateutil",
"requests",
"requests_oauthlib",
"simplejson",
]
extras_require = {
"airtable": ["airtable-python-wrapper"],
"alchemer": ["surveygizmo"],
"azure": ["azure-storage-blob"],
"box": ["boxsdk"],
"braintree": ["braintree"],
"civis": ["civis"],
"facebook": ["joblib", "facebook-business"],
"geocode": ["censusgeocode"],
"github": ["PyGitHub"],
"google": [
"apiclient",
"google-api-python-client",
"google-cloud-bigquery",
"google-cloud-storage",
"gspread",
"httplib2",
"oauth2client",
"validate-email",
],
"mysql": ["mysql-connector-python", "SQLAlchemy"],
"newmode": ["newmode"],
"ngpvan": ["suds-py3"],
"postgres": ["psycopg2-binary", "SQLAlchemy"],
"redshift": ["boto3", "psycopg2-binary", "SQLAlchemy"],
"s3": ["boto3"],
"salesforce": ["simple-salesforce"],
"sftp": ["paramiko"],
"slack": ["slackclient"],
"smtp": ["validate-email"],
"targetsmart": ["xmltodict"],
"twilio": ["twilio"],
"zoom": ["PyJWT"],
}
extras_require["all"] = sorted({
lib
for libs in extras_require.values()
for lib in libs
})
else:
THIS_DIR = os.path.abspath(os.path.dirname(__file__))
with open(os.path.join(THIS_DIR, 'requirements.txt')) as reqs:
install_requires = reqs.read().strip().split('\n')
# No op for forward-compatibility
extras_require = {"all": []}
setup(
name="parsons",
version='0.19.0',
author="The Movement Cooperative",
author_email="[email protected]",
url='https://github.com/movementcoop/parsons',
keywords=['PROGRESSIVE', 'API', 'ETL'],
packages=find_packages(),
install_requires=install_requires,
extras_require=extras_require,
classifiers=[
'Development Status :: 3 - Alpha',
'Intended Audience :: Developers',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10'
],
python_requires=">=3.7.0,<3.11.0",
)
if __name__ == "__main__":
main()