forked from snakemake/snakemake
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
280 lines (249 loc) · 8.14 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
[build-system]
requires = ["setuptools>=64", "setuptools-scm>=8"]
build-backend = "setuptools.build_meta"
[project]
name = "snakemake"
dynamic = ["version"]
description = "Workflow management system to create reproducible and scalable data analyses"
readme = { content-type = "text/markdown", text = """
Snakemake is a workflow management system that aims to reduce the
complexity of creating workflows by providing a fast and comfortable
execution environment, together with a clean and modern specification
language in python style. Snakemake workflows are essentially Python
scripts extended by declarative code to define rules. Rules describe
how to create output files from input files.
""" }
requires-python = ">= 3.11"
license = { text = "MIT" }
authors = [{ name = "Johannes Köster", email = "[email protected]" }]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Environment :: Console",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: MIT License",
"Natural Language :: English",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: Scientific/Engineering",
]
dependencies = [
"appdirs",
"immutables",
"configargparse",
"connection_pool>=0.0.3",
"docutils",
"gitpython",
"humanfriendly",
"jinja2>=3.0,<4.0",
"jsonschema",
"nbformat",
"packaging",
"psutil",
"pulp>=2.3.1,<3.1",
"pyyaml",
"requests>=2.8.1,<3.0",
"reretry",
"smart-open>=4.0,<8.0",
"snakemake-interface-executor-plugins>=9.3.2,<10.0",
"snakemake-interface-common>=1.17.0,<2.0",
"snakemake-interface-storage-plugins>=4.1.0,<5.0",
"snakemake-interface-report-plugins>=1.1.0,<2.0.0",
"snakemake-interface-logger-plugins>=1.1.0,<2.0.0",
"tabulate",
"throttler",
"wrapt",
"yte>=1.5.5,<2.0",
"dpath>=2.1.6,<3.0.0",
"conda-inject>=1.3.1,<2.0",
]
[project.urls]
Homepage = "https://snakemake.github.io"
Documentation = "https://snakemake.readthedocs.io"
Source = "https://github.com/snakemake/snakemake"
[project.optional-dependencies]
messaging = ["slack_sdk"]
pep = ["eido", "peppy"]
reports = ["pygments"]
all = ["slack_sdk", "eido", "peppy", "pygments"]
[project.scripts]
snakemake = "snakemake.cli:main"
[tool.setuptools_scm]
version_file = "src/snakemake/_version.py"
# Ignore Git hash
local_scheme = "no-local-version"
[tool.codespell]
# Ref: https://github.com/codespell-project/codespell#using-a-config-file
skip = '.git,*.pdf,*.svg,versioneer.py,*.css,test_*'
check-hidden = true
ignore-regex = '^\s*"image/\S+": ".*|\b[Mm]anuel[. ][Hh]oltgrewe\b'
ignore-words-list = 'testin'
####################################################################
# Pixi Configuration
####################################################################
[tool.pixi.project]
channels = ["conda-forge", "bioconda"]
platforms = ["linux-64", "osx-arm64", "win-64", "osx-64", "linux-aarch64"]
[tool.pixi.pypi-dependencies]
snakemake = { path = ".", editable = true, extras = ["all"] }
[tool.pixi.environments]
dev = { features = ["test", "docs", "style"] }
py311 = { features = ["py311", "test"] }
py312 = { features = ["py312", "test"] }
docs = { features = ["docs"] }
quality = { features = ["style"] }
publish = { features = ["publish"] }
# Python Envs
[tool.pixi.feature.py311.dependencies]
python = ">=3.11.0,<3.12"
[tool.pixi.feature.py312.dependencies]
python = ">=3.12.0,<3.13"
# Test
[tool.pytest.ini_options]
addopts = "--verbose --show-capture=stderr" # --exitfirst
markers = [
# (use '-m "not needs_envmodules"' to skip these tests)
"needs_envmodules: marks tests that require environment modules",
"needs_s3: marks tests that require S3 credentials",
]
[tool.pixi.feature.test]
channels = ["conda-forge", "bioconda", "nodefaults"]
[tool.pixi.feature.test.tasks.test-simple]
cmd = [
"pytest",
"-m",
"not needs_envmodules",
"-k",
"not test_conda_global",
"tests/tests.py",
]
description = "Run tests only for tests/tests.py"
[tool.pixi.feature.test.target.osx-arm64.tasks.test-simple]
cmd = [
"pytest",
"-m",
"not (needs_s3 or needs_envmodules)", # needs_s3 is not supported on osx-arm64
"-k",
"not (test_conda_global or queue)", # queue is buggy on osx-arm64
"tests/tests.py",
]
[tool.pixi.feature.test.tasks.test-all]
description = "Run all tests in the tests directory"
cmd = [
"pytest",
"tests",
# TODO for the two excluded tests, see https://github.com/snakemake/snakemake/pull/3369#issuecomment-2718056637
"-m",
"not needs_envmodules",
"-k",
"not test_conda_global",
"tests/tests.py", # tested in test-simple
"tests/tests_using_conda.py",
"tests/test_expand.py",
"tests/test_io.py",
"tests/test_schema.py",
"tests/test_linting.py",
"tests/test_executor_test_suite.py",
"tests/test_api.py",
"tests/test_internals.py",
# the tests below were never tested in the old CI and currently fail
# "tests/test_args.py",
# "tests/test_output_index.py",
# "tests/test_path_modifier.py",
# "tests/test_persistence.py"
# "tests/test_prefix_lookup.py",
# "tests/test_script.py",
# "tests/test_sourcecache.py",
]
[tool.pixi.feature.test.dependencies]
pytest = ">=8.3.5,<9"
pytest-mock = ">=3.14.0,<4"
pytest-cov = ">=6.0.0,<7"
pytest-split = ">=0.10.0,<0.11"
graphviz = ">=12.2.1,<13"
oauth2client = ">=4.1.3,<5"
numpy = ">=2.2.3,<3"
glpk = ">=5.0,<6"
pulp = ">=2.8.0,<3"
boto3 = ">=1.37.9,<2"
responses = ">=0.25.6,<0.26"
pytools = ">=2024.1.6,<2026"
pandoc = ">=3.6.3,<4"
crc32c = ">=2.7.1,<3"
filelock = ">=3.17.0,<4"
humanfriendly = ">=10.0,<11"
pandas = ">=2.2.3,<3"
pygments = ">=2.19.1,<3"
pysftp = ">=0.2.9,<0.3"
yte = ">=1.5.7,<2"
ftputil = ">=5.1.0,<6"
httpretty = ">=1.1.4,<2"
polars = ">=1.24.0,<2"
requests-mock = ">=1.12.1,<2"
docutils = ">=0.20.1,<0.22"
conda = "*"
pip = "*"
[tool.pixi.feature.test.pypi-dependencies]
snakemake-executor-plugin-cluster-generic = "*"
snakemake-storage-plugin-http = { git="https://github.com/snakemake/snakemake-storage-plugin-http.git" }
snakemake-storage-plugin-s3 = { git="https://github.com/snakemake/snakemake-storage-plugin-s3.git" }
snakemake-storage-plugin-fs = { git="https://github.com/snakemake/snakemake-storage-plugin-fs.git" }
[tool.pixi.feature.test.target.linux-64.pypi-dependencies]
snakemake-storage-plugin-xrootd = { git="https://github.com/snakemake/snakemake-storage-plugin-xrootd.git" }
[tool.pixi.feature.test.target.linux-64.dependencies]
# environment-modules = "*"
xorg-libxrender = "*"
xorg-libxext = "*"
xorg-libxau = "*"
xorg-libxdmcp = "*"
xorg-libsm = "*"
stress-ng = "*"
nodejs = "*"
squashfuse = "*"
cwltool = "*"
cwl-utils = "*"
# # moved to pixi from main.yaml installing via apt
apptainer = "*"
git = "*"
wget = "*"
dash = "*"
openmpi = "*"
xrootd = ">=5.7.3,<6"
# Docs
[tool.pixi.feature.docs.dependencies]
sphinx = ">=7.2.6,<8"
sphinx-argparse = ">=0.4.0,<0.6"
sphinx_rtd_theme = ">=3.0.1,<4"
sphinxawesome-theme = ">=5.2.0,<6"
recommonmark = ">=0.7.1,<0.8"
commonmark = ">=0.9.1,<0.10"
myst-parser = ">=3.0.1,<5"
sphinxcontrib-napoleon = ">=0.7,<0.8"
sphinx-autobuild = ">=2024.10.3,<2025"
sphinx-tabs = ">=3.4.1,<4"
sphinx-autodoc-typehints = ">=2.0.1,<3"
[tool.pixi.feature.docs.tasks.build-docs]
description = "Build the documentation in the docs/ directory"
cwd = "docs"
cmd = 'make html SPHINXOPTS="-W --keep-going -n"'
[tool.pixi.feature.docs.tasks.docs]
description = "Serve the documentation on http://localhost:8000 with live reload"
cmd = "sphinx-autobuild docs/ docs/_build/html --host 0.0.0.0 --port 8000 --watch docs"
[tool.pixi.feature.docs.tasks.build-apidocs]
description = "Build the API documentation in the apidocs/ directory"
cwd = "apidocs"
cmd = 'make html SPHINXOPTS="--keep-going -n"'
# Style
[tool.pixi.feature.style.dependencies]
black = "*"
[tool.pixi.feature.style.tasks]
format = { cmd = "black src/ tests/*.py", description = "Format the code" }
# Publish
[tool.pixi.feature.publish.dependencies]
twine = ">=6.1.0,<7"
python-build = ">=1.2.2,<2"
[tool.pixi.feature.publish.tasks]
build = { cmd = "python -m build", description = "Build the package into the dist/ directory" }
check-build = { cmd = "python -m twine check dist/*", depends-on = [
"build",
], description = "Check that the package can be uploaded" }