forked from meltano/sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
209 lines (190 loc) · 6.21 KB
/
pyproject.toml
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
200
201
202
203
204
205
206
207
208
209
[tool.poetry]
name = "singer-sdk"
version = "0.8.0"
description = "A framework for building Singer taps"
authors = ["Meltano Team and Contributors"]
maintainers = ["Meltano Team and Contributors"]
readme = "README.md"
homepage = "https://sdk.meltano.com/en/latest/"
repository = "https://github.com/meltano/sdk"
documentation = "https://sdk.meltano.com/en/latest/"
keywords = [
"Meltano",
"Meltano SDK",
"ELT",
]
classifiers = [
"Intended Audience :: Developers",
"License :: OSI Approved :: Apache Software License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: Implementation :: CPython",
"Topic :: Software Development :: Libraries :: Application Frameworks",
"Typing :: Typed",
]
license = "Apache 2.0"
[tool.poetry.urls]
"Issue Tracker" = "https://github.com/meltano/sdk/issues"
"Twitter" = "https://twitter.com/meltanodata/"
"Changelog" = "https://github.com/meltano/sdk/blob/main/CHANGELOG.md"
"Slack" = "https://meltano.com/slack"
"Youtube" = "https://www.youtube.com/meltano"
[tool.poetry.dependencies]
python = "<3.11,>=3.7.1"
pipelinewise-singer-python = "1.2.0"
backoff = ">=1.8.0,<2.0"
pendulum = "^2.1.0"
click = "~=8.0"
PyJWT = "~=2.4"
requests = "^2.25.1"
cryptography = ">=3.4.6,<38.0.0"
importlib-metadata = {version = "*", markers = "python_version < \"3.8\""}
memoization = ">=0.3.2,<0.5.0"
jsonpath-ng = "^1.5.3"
joblib = "^1.0.1"
inflection = "^0.5.1"
sqlalchemy = "^1.4"
python-dotenv = "^0.20.0"
typing-extensions = "^4.2.0"
# Sphinx dependencies installed as optional 'docs' extras
# https://github.com/readthedocs/readthedocs.org/issues/4912#issuecomment-664002569
sphinx = {version = ">=4.5,<6.0", optional = true}
sphinx-rtd-theme = {version = ">=0.5.2,<1.1.0", optional = true}
sphinx-copybutton = {version = ">=0.3.1,<0.6.0", optional = true}
myst-parser = {version = ">=0.17.2,<0.19.0", optional = true}
sphinx-autobuild = {version = "^2021.3.14", optional = true}
[tool.poetry.extras]
docs = [
"sphinx",
"sphinx-rtd-theme",
"sphinx-copybutton",
"myst-parser",
"sphinx-autobuild",
]
[tool.poetry.dev-dependencies]
# snowflake-connector-python = "2.0.4" # Removed: Too many version conflicts!
pytest = "^7.1.2"
xdoctest = "^1.0.1"
mypy = "^0.971"
cookiecutter = "^2.1.1"
PyYAML = "^6.0"
pyarrow = "^9.0.0"
freezegun = "^1.2.1"
viztracer = "^0.15.3"
requests-mock = "^1.9.3"
sqlalchemy2-stubs = {version = "^0.0.2a25", allow-prereleases = true}
types-python-dateutil = "^2.8.19"
types-requests = "^2.28.8"
coverage = {extras = ["toml"], version = "^6.4"}
# Cookiecutter tests
black = "^22.6"
darglint = "^1.8.0"
flake8 = "^3.9.0"
flake8-annotations = "^2.9.1"
flake8-docstrings = "^1.6.0"
[tool.black]
exclude = ".*simpleeval.*"
[tool.isort]
profile = "black"
multi_line_output = 3 # Vertical Hanging Indent
src_paths = "singer_sdk"
known_first_party = ["tests", "samples"]
[tool.pytest.ini_options]
addopts = '-vvv --ignore=singer_sdk/helpers/_simpleeval.py -m "not external"'
markers = [
"external: Tests relying on external resources",
]
[tool.commitizen]
name = "cz_customize"
version = "0.8.0"
tag_format = "v$major.$minor.$patch$prerelease"
version_files = [
"docs/conf.py",
"pyproject.toml:^version =",
"cookiecutter/tap-template/{{cookiecutter.tap_id}}/pyproject.toml:singer-sdk",
"cookiecutter/target-template/{{cookiecutter.target_id}}/pyproject.toml:singer-sdk",
".github/ISSUE_TEMPLATE/bug.yml:^ placeholder:",
]
[tool.commitizen.customize]
message_template = "{{change_type}}: {{message}}"
commit_parser = '^(?P<change_type>feat|fix|refactor|perf|break|docs)(?:\((?P<scope>[^()\r\n]*)\)|\()?(?P<breaking>!)?:\s(?P<message>.*)?'
schema_pattern = '(feat|fix|refactor|perf|break|docs|ci|chore|style|revert|test|build)(?:\((?P<scope>[^()\r\n]*)\)|\()?(?P<breaking>!)?:(\s.*)'
schema = """
<type>(<scope>): <subject>
<BLANK LINE>
<body>
<BLANK LINE>
(BREAKING CHANGE: )<footer>"""
change_type_order = [
"BREAKING CHANGES",
"✨ New",
"🐛 Fixes",
"⚙️ Under the Hood",
"⚡ Performance Improvements",
"📚 Documentation Improvements",
]
[tool.commitizen.customize.change_type_map]
break = "BREAKING CHANGES"
feat = "✨ New"
fix = "🐛 Fixes"
refactor = "⚙️ Under the Hood"
docs = "📚 Documentation Improvements"
perf = "⚡ Performance Improvements"
[[tool.commitizen.customize.questions]]
type = "list"
name = "change_type"
choices = [
{ value = "feat", name = "feat: A new feature." },
{ value = "fix", name = "fix: A bug fix." },
{ value = "refactor", name = "refactor: A code change that neither fixes a bug nor adds a feature." },
{ value = "perf", name = "perf: A code change that improves performance." },
{ value = "docs", name = "docs: A documentation change." },
{ value = "break", name = "break: A breaking change." },
{ value = "chore", name = "chore: A change that doesn't affect the meaning of the codebase." },
{ value = "style", name = "style: A code style change." },
{ value = "revert", name = "revert: Revert to a commit." },
{ value = "test", name = "test: A test change." },
{ value = "build", name = "build: A build system change." },
{ value = "ci", name = "ci: A change to CI/CD." },
]
message = "Select the type of change you are committing"
[[tool.commitizen.customize.questions]]
type = "input"
name = "message"
message = "Subject"
[tool.coverage.paths]
source = [
"singer_sdk/",
"*/singer_sdk",
]
tests = [
"tests/",
"*/tests",
]
[tool.coverage.run]
branch = true
source = ["singer_sdk", "tests"]
omit = [
"tests/*",
"samples/*",
"singer_sdk/helpers/_compat.py",
]
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"def __repr__",
"raise AssertionError",
"raise NotImplementedError",
"if __name__ == .__main__.:",
'''class .*\bProtocol\):''',
]
fail_under = 82
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
[tool.poetry.scripts]
# Sample CLI declaration:
# sdk-tap-countries-sample = 'singer_sdk.samples.sample_tap_countries.countries_tap:SampleTapCountries.cli'