-
Notifications
You must be signed in to change notification settings - Fork 21
/
Copy pathsetup.cfg
236 lines (217 loc) · 6.5 KB
/
setup.cfg
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
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you 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.
[metadata]
name = apache-dolphinscheduler
version = attr: pydolphinscheduler.__version__
url = https://dolphinscheduler.apache.org/python/main/index.html
description = pydolphinscheduler is Apache DolphinScheduler Python API.
long_description = file: README.md
long_description_content_type = text/markdown
author = Apache Software Foundation
author_email = [email protected]
license = Apache License 2.0
license_files =
file: LICENSE
keywords =
dolphinscheduler
workflow
scheduler
taskflow
# complete classifier list: http://pypi.python.org/pypi?%3Aaction=list_classifiers
classifiers =
Development Status :: 4 - Beta
Environment :: Console
Intended Audience :: Developers
License :: OSI Approved :: Apache Software License
Operating System :: Unix
Operating System :: POSIX
Operating System :: Microsoft :: Windows
Programming Language :: Python
Programming Language :: Python :: 3.9
Programming Language :: Python :: 3.10
Programming Language :: Python :: 3.11
Programming Language :: Python :: 3.12
Programming Language :: Python :: 3.13
Programming Language :: Python :: Implementation :: CPython
Programming Language :: Python :: Implementation :: PyPy
Topic :: Software Development :: User Interfaces
project_urls =
Homepage = https://dolphinscheduler.apache.org/python/main/index.html
Documentation = https://dolphinscheduler.apache.org/python/main/index.html
Source = https://github.com/apache/dolphinscheduler-sdk-python
Issue Tracker = https://github.com/apache/dolphinscheduler-sdk-python/issues
Twitter = https://twitter.com/dolphinschedule
[options]
python_requires = >=3.9
include_package_data = True
zip_safe = true
platforms = any
package_dir =
=src
packages =
find:
install_requires =
boto3>=1.23.10
oss2>=2.16.0
python-gitlab>=2.10.1
click>=8.0.0
py4j~=0.10
ruamel.yaml
stmdency>=0.0.2
# 23.0 not support python 3.6
packaging>=21.3
[options.packages.find]
where=src
[options.package_data]
pydolphinscheduler =
default_config.yaml
version_ext
[options.entry_points]
console_scripts =
pydolphinscheduler = pydolphinscheduler.cli.commands:cli
[options.extras_require]
build =
build
setuptools>=42
wheel
test =
pytest>=6.2
freezegun>=1.1
coverage>=6.1
pytest-cov>=3.0
docker>=5.0.3
style =
black>=22.8
ruff>=0.3
doc =
sphinx>=4.3
sphinx_rtd_theme>=1.0
sphinx-click>=3.0
sphinx-inline-tabs
sphinx-copybutton>=0.4.0
# Unreleased package have a feature we want(use correct version package for API ref), so we install from
# GitHub directly, see also:
# https://github.com/Holzhaus/sphinx-multiversion/issues/42#issuecomment-1210539786
sphinx-multiversion @ git+https://github.com/Holzhaus/sphinx-multiversion#egg=sphinx-multiversion
sphinx-github-changelog
dev =
# build
apache-dolphinscheduler[build]
# test
apache-dolphinscheduler[test]
# style
apache-dolphinscheduler[style]
# doc
apache-dolphinscheduler[doc]
# ---------------------------------------------
# Test Settings
# ---------------------------------------------
[tool:pytest]
# add path here to skip pytest scan it
norecursedirs =
tests/testing
# Integration test run seperated which do not calculate coverage, it will run in `tox -e integrate-test`
tests/integration
[coverage:run]
command_line = -m pytest
omit =
# Ignore all test cases in tests/
tests/*
# Ignore examples directory
*/pydolphinscheduler/examples/*
# TODO. Temporary ignore java_gateway file, because we could not find good way to test it.
*/pydolphinscheduler/java_gateway.py
[coverage:report]
# Mark no cover for typing.TYPE_CHECKING, see details https://github.com/nedbat/coveragepy/issues/831
exclude_lines =
pragma: no cover
if TYPE_CHECKING:
# Don’t report files that are 100% covered
skip_covered = True
show_missing = True
precision = 2
# Report will fail when coverage under 90.00%
fail_under = 90
# ---------------------------------------------
# TOX Settings
# ---------------------------------------------
[tox:tox]
envlist =
local-ci
auto-lint
lint
doc-build
doc-build-multi
code-test
integrate-test
local-integrate-test
py{39,310,311,312,313}
[testenv]
allowlist_externals =
make
git
find
[testenv:auto-lint]
extras = style
commands =
python -m black .
python -m ruff check --fix .
[testenv:lint]
extras = style
commands =
python -m black --check .
python -m ruff check .
[testenv:code-test]
extras = test
# Run both tests and coverage
commands =
python -m pytest --cov=pydolphinscheduler --cov-report term --cov-report xml:coverage.xml tests/
[testenv:doc-build]
extras = doc
commands =
make -C {toxinidir}/docs clean
make -C {toxinidir}/docs html
# Remove sensitive information from the generated documentation
commands_post =
find {toxinidir}/docs -type f -name "environment.pickle" -exec rm -rf \{\} \;
[testenv:doc-build-multi]
extras = doc
commands =
# Get all tags for `multiversion` subcommand
git fetch --tags
make -C {toxinidir}/docs clean
make -C {toxinidir}/docs multiversion
# Remove sensitive information from the generated documentation
commands_post =
find {toxinidir}/docs -type f -name "environment.pickle" -exec rm -rf \{\} \;
[testenv:integrate-test]
extras = test
commands =
python -m pytest tests/integration/
[testenv:local-integrate-test]
extras = test
setenv =
skip_launch_docker = true
commands =
{[testenv:integrate-test]commands}
# local-ci do not build `doc-build-multi`
[testenv:local-ci]
extras = dev
commands =
{[testenv:lint]commands}
{[testenv:code-test]commands}
{[testenv:doc-build]commands}