Repository navigation
Expand file tree
/
Copy pathpyproject.toml
More file actions
199 lines (166 loc) · 4.29 KB
/
Copy pathpyproject.toml
File metadata and controls
199 lines (166 loc) · 4.29 KB
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
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
[build-system]
requires = ["setuptools>=64", "setuptools_scm>=8"]
build-backend = "setuptools.build_meta"
[tool.setuptools_scm]
version_file = "records_mover/version.py"
[tools.setuptools]
py_modules = ["records_mover"]
[tool.setuptools.packages.find]
where = ["."]
[tool.setuptools.package-data]
records_mover = ["py.typed"]
[project]
name = "records-mover"
urls = { Repository = "https://github.com/bluelabsio/records-mover" }
description = "Records mover is a command-line tool and Python library you can use to move relational data from one place to another."
dynamic = ["version"]
readme = "README.md"
license = { file = "LICENSE" }
requires-python = ">=3.8"
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"Topic :: Database :: Front-Ends",
"License :: OSI Approved :: Apache Software License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
]
dependencies = [
"timeout_decorator",
"PyYAML>=3.10",
"db-facts>=5",
"chardet>=3",
"tenacity>=8.0.1",
# NOTE: library no longer under active development, don't want to be surprised
"config-resolver>=5.0.1,<6",
"typing_inspect",
"typing-extensions",
]
[project.scripts]
mvrec = "records_mover.records.cli:main"
[project.optional-dependencies]
google-api-client = [
'google-api-python-client>=1.8.0',
'grpcio<2.0dev,>=1.29.0',
]
pytest = [
"pytest<8.2",
"pytest-cov",
]
itest = [
"jsonschema",
"pytz",
"wheel",
"parameterized",
"records-mover[pytest,google-api-client]",
]
airflow = [
"apache-airflow>=2",
"apache-airflow-providers-amazon",
"apache-airflow-providers-google"
]
db = [
"sqlalchemy>=1.4,<2",
"sqlalchemy_privileges>=0.2.0",
]
smart-open = [
"smart_open>=2",
]
gcs = [
"google-cloud-storage",
"records-mover[smart-open]",
]
bigquery = [
"sqlalchemy-bigquery",
"records-mover[gcs,db]",
]
aws = [
# pip seems to struggle to find the latest version. Give it some help
"awscli>=1.32.14",
"boto3",
"s3-concat>=0.1.7",
"records-mover[smart-open]",
]
gsheets = [
"google",
"google_auth_httplib2",
"PyOpenSSL",
"records-mover[google-api-client]",
]
parquet = [
"pyarrow",
]
pandas = [
# This was pinned to <2, perhaps this will be some new form of hell?!
# Notes: Dockerfile does not currently have this pinned. Thus this
# causes a pandas uninstall to something <2. We're not ready for it yet, dockerfile probably
# shouldn't have it either
"pandas>=1.3.5,<2",
"numpy<2", # RM-133: once pandas supports numpy 2+ remove this
]
mysql = [
"pymysql",
"records-mover[db]",
]
redshift-base = [
"sqlalchemy-redshift>=0.7.7",
"records-mover[aws,db]",
]
redshift-binary = [
"psycopg2-binary",
"records-mover[redshift-base]",
]
redshift-source = [
"psycopg2",
"records-mover[redshift-base]",
]
postgres-base = [
"records-mover[db]",
]
postgres-binary = [
"psycopg2-binary",
"records-mover[postgres-base]",
]
postgres-source = [
"psycopg2",
"records-mover[postgres-base]",
]
cli = [
"odictliteral",
"jsonschema",
"docstring_parser",
"requests",
]
vertica = [
"sqlalchemy-vertica-python>=0.5.5",
"records-mover[db]",
]
alldb = [
"records-mover[vertica,postgres-binary,redshift-binary,bigquery,mysql]",
]
typecheck = [
"mypy>=1.7.1",
# update to build from mypy without version qualifier soon
"lxml", # needed by mypy HTML coverage reporting
"sqlalchemy-stubs>=0.3",
"types-pytz",
"types-mock",
]
unittest = [
"coverage",
"mock",
"records-mover[pytest,cli,airflow,gsheets,alldb,aws,pandas,gcs]"
]
docs = [
"sphinx>=5", # used to generate and upload docs -
# need 5.0 or later for compatibility with other packages
"sphinx-rtd-theme>=1", # used to style docs for readthedocs.io
"sphinx-argparse", # used to generate documentation of CLI options
"readthedocs-sphinx-ext>=2", # also used by readthedocs
"recommonmark", # used to be able to use sphinx with markdown
# Needed for readthedocs.io to evaluate modules and generate docs
"records-mover[db,airflow,aws,cli]",
]