forked from cylc/cylc-flow
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
273 lines (249 loc) · 8.49 KB
/
Copy pathpyproject.toml
File metadata and controls
273 lines (249 loc) · 8.49 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
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
[build-system]
requires = ["setuptools"]
build-backend = "setuptools.build_meta"
[project]
name = "cylc-flow"
authors = [
{name = "Earth Sciences New Zealand & British Crown (Met Office) & Contributors"},
]
description = "A workflow engine for cycling systems"
readme = "README.md"
requires-python = ">=3.12"
keywords = [
"cycling-workflows",
"hpc",
"job-scheduler",
"metascheduler",
"workflow-automation",
"workflow-engine",
"workflow-management",
"scheduling",
]
license = "GPL-3.0-or-later"
license-files = ["COPYING", "CONTRIBUTING.md"]
classifiers = [
"Environment :: Console",
"Environment :: Web Environment",
"Intended Audience :: Developers",
"Intended Audience :: System Administrators",
"Intended Audience :: Science/Research",
"Operating System :: POSIX :: Linux",
"Programming Language :: Python",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: Implementation :: CPython",
"Topic :: Scientific/Engineering :: Atmospheric Science",
]
dependencies = [
"ansimarkup>=1.0.0",
"colorama>=0.4,<1",
"graphql-core>=3.2,<3.3",
"graphene>=3.4.0,<3.5",
"jinja2>=3.1",
"metomi-isodatetime>=1!3.0.0,<1!3.2.0",
# Constrain protobuf version for compatible Scheduler-UIS comms across hosts
"packaging",
"protobuf>=5,<8",
"psutil>=5.6.0",
"pyzmq>=22",
# NOTE: exclude two urwid versions that were not compatible with Tui
"urwid>=2.2,!=2.6.2,!=2.6.3,<5",
]
dynamic = ["version"]
[project.optional-dependencies]
graph = [
"pillow",
]
main_loop-log_data_store = [
"pympler",
"matplotlib",
]
main_loop-log_main_loop = [
"matplotlib",
]
main_loop-log_memory = [
"pympler",
"matplotlib",
]
main_loop-log_db = [
"sqlparse",
]
report-timings = [
"pandas>=2,<4",
"matplotlib",
]
tests = [
"aiosmtpd",
"async_generator",
"bandit>=1.7.0",
"coverage>=7.9.0",
"flake8-broken-line>=0.3.0",
"flake8-bugbear>=21.0.0",
"flake8-builtins>=1.5.0",
"flake8-comprehensions>=3.5.0",
"flake8-debugger>=4.0.0",
# https://github.com/flake8-implicit-str-concat/flake8-implicit-str-concat/issues/82
"flake8-implicit-str-concat>=0.4,!=0.7.0",
"flake8-mutable>=1.2.0",
"flake8-simplify>=0.14.0; python_version<'3.14'",
"flake8-type-checking",
"flake8>=3.0.0",
"mypy>=0.910",
# https://github.com/pytest-dev/pytest-asyncio/issues/706
"pytest-asyncio>=0.21.2,!=0.23.*",
"pytest-cov>=2.8.0",
"pytest-xdist>=2",
"pytest-mock>=3.7",
"pytest>=6",
"testfixtures>=6.11.0",
"towncrier>=24.7.0",
# Type annotation stubs
# http://mypy-lang.blogspot.com/2021/05/the-upcoming-switch-to-modular-typeshed.html
"types-Jinja2>=0.1.3",
"types-protobuf>=0.1.10,!=5.29.1.20250402",
]
tutorials = [
"h5py",
"requests",
]
all = ["cylc-flow[graph,main_loop-log_data_store,main_loop-log_db,main_loop-log_main_loop,main_loop-log_memory,tests,tutorials,report-timings]"]
[project.scripts]
# top level shell commands
clyc = "cylc.flow.scripts.cylc:main"
cylc = "cylc.flow.scripts.cylc:main"
[project.entry-points."cylc.command"]
# cylc subcommands
broadcast = "cylc.flow.scripts.broadcast:main"
cat-log = "cylc.flow.scripts.cat_log:main"
check-versions = "cylc.flow.scripts.check_versions:main"
clean = "cylc.flow.scripts.clean:main"
client = "cylc.flow.scripts.client:main"
completion-server = "cylc.flow.scripts.completion_server:main"
config = "cylc.flow.scripts.config:main"
cycle-point = "cylc.flow.scripts.cycle_point:main"
diff = "cylc.flow.scripts.diff:main"
dump = "cylc.flow.scripts.dump:main"
ext-trigger = "cylc.flow.scripts.ext_trigger:main"
get-resources = "cylc.flow.scripts.get_resources:main"
function-run = "cylc.flow.scripts.function_run:main"
get-workflow-contact = "cylc.flow.scripts.get_workflow_contact:main"
get-workflow-version = "cylc.flow.scripts.get_workflow_version:main"
graph = "cylc.flow.scripts.graph:main"
hold = "cylc.flow.scripts.hold:main"
install = "cylc.flow.scripts.install:main"
jobs-kill = "cylc.flow.scripts.jobs_kill:main"
jobs-poll = "cylc.flow.scripts.jobs_poll:main"
jobs-submit = "cylc.flow.scripts.jobs_submit:main"
kill = "cylc.flow.scripts.kill:main"
lint = "cylc.flow.scripts.lint:main"
list = "cylc.flow.scripts.list:main"
message = "cylc.flow.scripts.message:main"
pause = "cylc.flow.scripts.pause:main"
ping = "cylc.flow.scripts.ping:main"
play = "cylc.flow.scripts.play:main"
poll = "cylc.flow.scripts.poll:main"
profiler = "cylc.flow.scripts.profiler:main"
psutils = "cylc.flow.scripts.psutil:main"
reinstall = "cylc.flow.scripts.reinstall:main"
release = "cylc.flow.scripts.release:main"
reload = "cylc.flow.scripts.reload:main"
remote-init = "cylc.flow.scripts.remote_init:main"
remote-tidy = "cylc.flow.scripts.remote_tidy:main"
remove = "cylc.flow.scripts.remove:main"
report-timings = "cylc.flow.scripts.report_timings:main" # report-timings
scan = "cylc.flow.scripts.scan:cli"
show = "cylc.flow.scripts.show:main"
set = "cylc.flow.scripts.set:main"
stop = "cylc.flow.scripts.stop:main"
subscribe = "cylc.flow.scripts.subscribe:main"
verbosity = "cylc.flow.scripts.verbosity:main"
workflow-state = "cylc.flow.scripts.workflow_state:main"
tui = "cylc.flow.scripts.tui:main"
trigger = "cylc.flow.scripts.trigger:main"
validate = "cylc.flow.scripts.validate:main"
view = "cylc.flow.scripts.view:main"
vip = "cylc.flow.scripts.validate_install_play:main"
vr = "cylc.flow.scripts.validate_reinstall:main"
[project.entry-points."cylc.main_loop"]
# async functions to run within the scheduler main loop
health_check = "cylc.flow.main_loop.health_check"
auto_restart = "cylc.flow.main_loop.auto_restart"
log_data_store = "cylc.flow.main_loop.log_data_store" # main_loop-log_data_store
log_db = "cylc.flow.main_loop.log_db" # main_loop-log_db
log_main_loop = "cylc.flow.main_loop.log_main_loop" # main_loop-log_main_loop
log_memory = "cylc.flow.main_loop.log_memory" # main_loop-log_memory
reset_bad_hosts = "cylc.flow.main_loop.reset_bad_hosts"
log_tracemalloc = "cylc.flow.main_loop.log_tracemalloc"
# NOTE: all entry points should be listed here even if Cylc Flow does not
# provide any implementations, to make entry point scraping easier
[project.entry-points."cylc.pre_configure"]
global_template_variables = "cylc.flow.plugins.global_template_variables:pre_configure"
[project.entry-points."cylc.post_install"]
log_vc_info = "cylc.flow.plugins.log_vc_info:main"
[project.entry-points."cylc.xtriggers"]
# NOTE: Built-in xtrigger modules
# - must contain a function (the xtrigger) with the same name as the module
# - and may contain a "validate" function to check arguments
echo = "cylc.flow.xtriggers.echo"
wall_clock = "cylc.flow.xtriggers.wall_clock"
workflow_state = "cylc.flow.xtriggers.workflow_state"
suite_state = "cylc.flow.xtriggers.suite_state"
xrandom = "cylc.flow.xtriggers.xrandom"
[project.urls]
Home = "https://cylc.org/"
Documentation = "https://cylc.github.io/cylc-doc/"
Source = "https://github.com/cylc/cylc-flow"
Tracker = "https://github.com/cylc/cylc-flow/issues"
[tool.setuptools]
include-package-data = true
[tool.setuptools.dynamic]
version = {attr = "cylc.flow.__version__"}
[tool.setuptools.packages.find]
include = ["cylc*"]
namespaces = true
[tool.towncrier]
directory = "changes.d"
name = "Cylc"
package = "cylc.flow"
filename = "CHANGES.md"
template = "changes.d/changelog-template.jinja"
underlines = ["", "", ""]
title_format = "## __cylc-{version} (Released {project_date})__"
issue_format = "[#{issue}](https://github.com/cylc/cylc-flow/pull/{issue})"
ignore = ["changelog-template.jinja"]
# These changelog sections will be shown in the defined order:
[[tool.towncrier.type]]
directory = "break" # NB this is just the filename not directory e.g. 123.break.md
name = "⚠ Breaking Changes"
showcontent = true
[[tool.towncrier.type]]
directory = "feat"
name = "🚀 Enhancements"
showcontent = true
[[tool.towncrier.type]]
directory = "fix"
name = "🔧 Fixes"
showcontent = true
# Not mandated to use these tools, but if you do:
[tool.ruff]
line-length = 79
target-version = "py312"
[tool.ruff.format]
quote-style = "preserve"
[tool.black]
line-length = 79
target-version = ['py312']
skip-string-normalization = true
[tool.isort]
profile = "black"
line_length = 79
force_grid_wrap = 2
lines_after_imports = 2
combine_as_imports = true
force_sort_within_sections = true
[tool.ruff.lint.isort]
# force-grid-wrap = 2 # astral-sh/ruff#2601
lines-after-imports = 2
combine-as-imports = true
force-sort-within-sections = true