forked from move-coop/parsons
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
109 lines (103 loc) · 3.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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
import os
from distutils.core import setup
from pathlib import Path
from setuptools import find_packages
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": ["pyairtable"],
"alchemer": ["surveygizmo"],
"azure": ["azure-storage-blob"],
"box": ["boxsdk"],
"braintree": ["braintree"],
"catalist": ["paramiko"],
"civis": ["civis"],
"dbt-redshift": ["dbt-redshift", "slackclient<2"],
"dbt-bigquery": ["dbt-bigquery", "slackclient<2"],
"dbt-postgres": ["dbt-postgres", "slackclient<2"],
"dbt-snowflake": ["dbt-snowflake", "slackclient<2"],
"facebook": ["joblib", "facebook-business"],
"geocode": ["censusgeocode", "urllib3==1.26.19"],
"github": ["PyGitHub"],
"google": [
"apiclient",
"google-api-python-client",
"google-cloud-bigquery",
"google-cloud-storage",
"google-cloud-storage-transfer",
"gspread",
"httplib2",
"oauth2client",
"validate-email",
],
"mysql": [
"mysql-connector-python",
"sqlalchemy >= 1.4.22, != 1.4.33, < 2.0.0",
],
"newmode": ["newmode"],
"ngpvan": ["suds-py3"],
"mobilecommons": ["bs4"],
"postgres": [
"psycopg2-binary>=2.9.9",
"sqlalchemy >= 1.4.22, != 1.4.33, < 2.0.0",
],
"redshift": [
"boto3",
"psycopg2-binary>=2.9.9",
"sqlalchemy >= 1.4.22, != 1.4.33, < 2.0.0",
],
"s3": ["boto3"],
"salesforce": ["simple-salesforce"],
"sftp": ["paramiko"],
"slack": ["slackclient<2"],
"smtp": ["validate-email"],
"targetsmart": ["xmltodict"],
"twilio": ["twilio"],
"ssh": [
"sshtunnel",
"psycopg2-binary>=2.9.9",
"sqlalchemy >= 1.4.22, != 1.4.33, < 2.0.0",
],
}
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": []}
this_directory = Path(__file__).parent
long_description = (this_directory / "README.md").read_text()
setup(
name="parsons",
version="3.2.0",
author="The Movement Cooperative",
author_email="[email protected]",
url="https://github.com/move-coop/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.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
],
python_requires=">=3.8.0,<3.13.0",
long_description=long_description,
long_description_content_type="text/markdown",
)
if __name__ == "__main__":
main()