forked from SwissDataScienceCenter/renku-python
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
346 lines (319 loc) · 9.91 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
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
# -*- coding: utf-8 -*-
#
# Copyright 2017-2023 - Swiss Data Science Center (SDSC)
# A partnership between École Polytechnique Fédérale de Lausanne (EPFL) and
# Eidgenössische Technische Hochschule Zürich (ETHZ).
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
[tool]
[tool.poetry]
name = "renku"
version = "0.0.0" # placeholder, see poetry-dynamic-versioning
description = "Python SDK and CLI for the Renku platform."
license = "Apache License 2.0"
keywords = ["Renku", "CLI"]
classifiers = [
"Environment :: Web Environment",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: Apache Software License",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Topic :: Internet :: WWW/HTTP :: Dynamic Content",
"Topic :: Software Development :: Libraries :: Python Modules",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Development Status :: 4 - Beta",
]
homepage = "https://github.com/swissdatasciencecenter/renku-python"
documentation = "https://renku-python.rtfd.io/"
authors = ["Swiss Data Science Center <contact@datascience.ch>"]
include = ["renku/*", "renku/**/*", "CHANGES.rst", "AUTHORS.rst"]
readme = "README.rst"
[tool.poetry.urls]
Changelog = "https://github.com/swissdatasciencecenter/renku-python/blob/master/CHANGES.rst"
[tool.poetry.dependencies]
python = ">=3.8.1,<3.12"
attrs = ">=21.1.0,<23.2.0"
bashlex = ">=0.16,<0.17"
calamus = ">=0.3.13,<0.5"
click = ">=8.0,<8.1.4"
click-option-group = "<0.6.0,>=0.5.2"
click-plugins = "==1.1.1"
coverage = { version = "<6.5,>=4.5.3", extras=["toml"], optional = true }
cryptography = ">=38.0.0,<42.0.0"
cwl-utils = ">=0.27,<0.28"
cwltool = "==3.1.20230425144158"
deal = ">=4.24.0,<5.0.0"
deepdiff = ">=5.8,<7.0"
deepmerge = "==1.0.1"
docker = "<6,>=3.7.2"
gitpython = "==3.1.27"
grandalf = "==0.8"
humanize = ">=3.0.0,<4.1.0"
importlib-resources = ">=5.12.0,<5.13.0"
inject = "<4.4.0,>=4.3.0"
jinja2 = { version = ">=2.11.3,<3.1.3" }
networkx = ">=2.6.0,<3.2"
packaging = "<24.0,>=23.0"
pathspec = "<1.0.0,>=0.8.0"
patool = "==1.12"
pluggy = "==1.0.0"
portalocker = ">=2.2.1,<2.8"
poetry-dynamic-versioning = "0.21.5"
psutil = ">=5.4.7,<5.9.2"
pydantic = "==1.10.7"
pyjwt = ">=2.1.0,<2.5.0"
pyld = "==2.0.3"
pyshacl = ">=0.17.2,<0.19.2"
python-dateutil = "<2.8.3,>=2.6.1"
python-gitlab = ">=2.10.1,<3.8.2"
pyyaml = "<6.1.0,>=5.4"
rdflib = "<7.0,>=6.0.0"
requests = ">=2.23.0,<2.31.1"
rich = ">=9.3.0,<13.4.0"
shellingham = "1.5.0.post1"
tabulate = ">=0.7.7,<0.9.1"
toil = "==5.10.0"
tqdm = ">=4.48.1,<4.65.1"
werkzeug = ">=1.0.0,<2.2.4"
yagup = ">=0.1.1"
yaspin = "==2.1.0"
"zc.relation" = ">=1.1,<2.1"
zodb = "==5.8.0"
zstandard = ">=0.16.0,<0.22.0"
# service dependencies:
apispec = { version = ">=6.3.0,<6.4.0", optional = true }
apispec-oneofschema = { version = ">=3.0.0,<4.0.0", optional = true}
apispec-webframeworks = { version = "<0.6,>=0.5.2", optional = true }
circus = { version = "==0.18.0", optional = true }
flask = { version = "==2.2.5", optional = true }
gunicorn = { version = "*", optional = true }
marshmallow = { version = ">=3.18.0,<3.20.0", optional = true }
marshmallow-oneofschema = { version = ">=3.0.1,<4.0.0", optional = true }
pillow = { version = ">=9.0.0,<9.6", optional = true }
python-dotenv = { version = ">=0.19.0,<0.21.0", optional = true }
redis = { version = ">=3.5.3,<4.6.0,!=4.5.5", optional = true }
rq = { version = "==1.15.0", optional = true }
sentry-sdk = { version = ">=1.5.11,<1.26.0", extras = ["flask"], optional = true }
walrus = { version = ">=0.8.2,<0.10.0", optional = true }
[tool.poetry.group.dev.dependencies]
black = "==23.1.0"
flake8 = ">=6.0.0,<7.0.0"
Flake8-pyproject = "==1.2.2"
isort = "<5.10.2,>=5.3.2"
mypy = ">=1.2.0,<2.0"
poetry-lock-package = "^0.5.0"
pre-commit = ">=2.20,<4.0"
types-PyYAML = "<6.1.0,>=5.4"
types-python-dateutil = "^2.8.10"
types-redis = ">=3.5.3,<4.1.0"
types-requests = ">=2.23.0,<2.28.12"
types-tabulate = ">=0.7.7,<0.9.1"
[tool.poetry.group.tests]
optional = true
[tool.poetry.group.tests.dependencies]
coverage = { version = "<6.5,>=4.5.3", extras=["toml"] }
fakeredis = { version = ">=1.4.1,<2.11.2", extras = ["lua"]}
flaky = "==3.7.0"
pexpect = "<4.9.0,>=4.8.0"
pydocstyle = "<6.1.2,>=4.0.1"
pyte = ">=0.8.0,<0.9.0"
pytest = ">=4.0.0,<7.1.4"
pytest-black = "<0.3.13,>=0.3.10"
pytest-cache = "==1.0"
pytest-cov = "<3.1.0,>=2.5.1"
pytest-flake8 = ">=1.0.6,<1.1.2"
pytest-lazy-fixture = ">=0.6.3,<0.7.0"
pytest-mock = ">=3.2.0,<3.11.0"
pytest-pep8 = "==1.0.6"
pytest-recording = "==0.12.2"
pytest-timeout = "==2.1.0"
pytest-xdist = ">=1.34.0,<3.4.0"
responses = ">=0.22.0,<0.24.0"
[tool.poetry.group.docs]
optional = true
[tool.poetry.group.docs.dependencies]
plantweb = ">=1.2.1,<1.3.0"
renku-sphinx-theme = ">=0.2.0"
sphinx-click = "^4.3.0"
sphinx-rtd-theme = "<1.1,>=0.5.0"
sphinx-tabs = "==3.2.0"
sphinxcontrib-spelling = ">=7,<9"
[tool.poetry.extras]
service = [
"apispec",
"apispec-oneofschema",
"apispec-webframeworks",
"circus",
"flask",
"gunicorn",
"marshmallow",
"marshmallow-oneofschema",
"pillow",
"python-dotenv",
"redis",
"rq",
"sentry-sdk",
"walrus"
]
[tool.poetry.scripts]
renku = "renku.ui.cli:cli"
[tool.black]
line-length = 120
target-version = ["py36", "py37", "py38"]
include = '\.pyi?$'
exclude = '''
(
/(
\.eggs
| \.git
| \.hg
| \.mypy_cache
| \.tox
| \.venv
| _build
| buck-out
| build
| dist
)/
| docs/conf.py
)
'''
[tool.pydocstyle]
add_ignore = ["D105", "D107", "D202", "D401"]
[tool.bandit]
skips = ["B101", "B603", "B607", "B404"]
[tool.isort]
multi_line_output = 3
include_trailing_comma = true
force_grid_wrap = 0
use_parentheses = true
line_length = 120
[tool.poetry-dynamic-versioning]
enable = true
vcs = "git"
dirty = true
format-jinja = """
{%- if distance == 0 -%}
{{ base }}{{"-%s"|format(stage) if stage else ""}}{{".%s"|format(revision) if revision else ""}}{{"+dirty" if dirty else ""}}
{%- else -%}
{{ base }}{{"-%s"|format(stage) if stage else ""}}{{".%s"|format(revision) if revision else ""}}.dev{{distance}}+g{{commit}}{{"-dirty" if dirty else ""}}
{%- endif -%}
"""
pattern = """(?x) (?# ignore whitespace)
^v(?P<base>\\d+(\\.\\d+)*) (?# v1.2.3)
(-?((?P<stage>[a-zA-Z0-9]+)?\\.?(?P<revision>(pre|post)\\d+)?))? (?# b0)
(\\+(?P<tagged_metadata>.+))?$ (?# e.g., +linux)
"""
[tool.pytest.ini_options]
addopts = "--doctest-glob=\"*.rst\" --doctest-modules --cov --cov-report=term-missing --ignore=docs/cheatsheet/"
doctest_optionflags = "ALLOW_UNICODE"
flake8-ignore = ["*.py", "E121", "E126", "E203", "E226", "E231", "W503", "W504", "docs/conf.py", "docs/cheatsheet/conf.py", "ALL"]
flake8-max-line-length = 120
testpaths = ["docs", "tests", "conftest.py"]
markers = [
"integration: mark a test as a integration.",
"jobs: mark a test as a job test.",
"migration: mark a test as a migration test.",
"publish: mark tests that publish datasets to external providers.",
"redis: mark tests that need a running redis",
"remote_repo: used to specify which remote to use in test fixtures.",
"serial: mark a test that can not be run in parallel",
"service: mark a test as service test.",
"shaky: mark an integration test that might fail due to dataset providers' failures.",
"shelled: mark a test as a shelled test."
]
filterwarnings = [
"ignore:<class 'pytest_black.BlackItem'> is not using a cooperative constructor:pytest.PytestDeprecationWarning",
"ignore:distutils Version classes are deprecated. Use packaging.version instead:DeprecationWarning"
]
[tool.mypy]
python_version = "3.10"
files = [
"renku/**/*.py",
"tests/**/*.py"
]
pretty = true
show_column_numbers = true
show_error_codes = true
show_error_context = true
warn_unreachable = true
check_untyped_defs = true
[[tool.mypy.overrides]]
module = [
"apispec.*",
"apispec_oneofschema.*",
"apispec_webframeworks.*",
"appdirs",
"BTrees.*",
"bashlex.*",
"calamus.*",
"deepdiff",
"deepmerge",
"docker",
"click_option_group",
"click_plugins",
"circus",
"fakeredis",
"flaky",
"grandalf.*",
"gunicorn.*",
"humanize",
"lazy_object_proxy",
"marshmallow_oneofschema",
"networkx.*",
"pathspec",
"patoolib.*",
"persistent.*",
"pexpect",
"PIL",
"pluggy",
"psutil",
"pyld",
"pyshacl",
"pyte",
"ruamel",
"rq",
"shellingham",
"toil.*",
"tqdm",
"urllib3.*",
"walrus",
"yagup.*",
"yaspin",
"zc.*",
"ZODB.*",
"zope.*"
]
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = "renku.core.migration.*"
ignore_errors = true
[[tool.mypy.overrides]]
module = "renku.command.schema.calamus.*"
ignore_errors = true
[tool.coverage.run]
omit = ["renku/conftest.py", "renku/data/*", "docs/*", "tests/*"]
relative_files = true
[tool.flake8]
max-line-length = 120
show-source = true
ignore = ["E121", "E126", "E203", "E226", "E231", "W503", "W504", "E121", "E126", "E203", "E226", "E231", "W503", "W504", "E121", "E126", "E203", "E226", "E231", "W503", "W504"]
exclude = ["docs"]
[build-system]
requires = ["poetry-core>=1.3.0<1.7.0", "poetry-dynamic-versioning==0.21.5", "gitpython==3.1.24"]
build-backend = "poetry_dynamic_versioning.backend"