-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathpyproject.toml
More file actions
69 lines (57 loc) · 2.13 KB
/
pyproject.toml
File metadata and controls
69 lines (57 loc) · 2.13 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
[project]
name = "snakemake-software-deployment-plugin-envmodules"
version = "0.2.0"
authors = [{ name = "Johannes Köster", email = "johannes.koester@uni-due.de" }]
description = "Software deployment plugin for Snakemake using environment modules."
readme = "README.md"
requires-python = ">=3.11,<4.0"
dependencies = [
"snakemake-interface-common (>=1.17.4,<2.0.0)",
"snakemake-interface-software-deployment-plugins (>=0.12.0,<1.0)",
]
[tool.pixi.pypi-dependencies]
snakemake-software-deployment-plugin-envmodules = { path = ".", editable = true }
#snakemake-interface-software-deployment-plugins = { path = "../snakemake-interface-software-deployment-plugins", editable = true }
[project.urls]
repository = "https://github.com/snakemake/snakemake-software-deployment-plugin-envmodules"
documentation = "https://snakemake.github.io/snakemake-plugin-catalog/plugins/software-deployment/envmodules.html"
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.pixi.workspace]
channels = ["conda-forge"]
platforms = ["osx-arm64", "linux-64"]
[tool.pixi.environments]
dev = { features = ["dev"] }
publish = { features = ["publish"] }
[tool.pixi.feature.dev.dependencies]
pytest = ">=8.3.5,<9"
ruff = ">=0.10.0,<0.11"
pytest-cov = ">=6.0.0,<7"
pyrefly = ">=0.52.0,<0.53"
[tool.pixi.feature.dev.tasks]
format = "ruff format"
lint = "ruff check"
typecheck = "pyrefly check"
qc = { depends-on = ["format", "lint"] }
coverage-report = "coverage report -m"
[tool.pixi.feature.dev.tasks.test]
cmd = [
"pytest",
"--cov=snakemake_software_deployment_plugin_envmodules",
"--cov-report=xml:coverage-report/coverage.xml",
"--cov-report=term-missing",
"tests/test_plugin.py",
]
[tool.coverage.report]
exclude_lines = ["pass", "\\.\\.\\."]
fail_under = 70.0
# 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" }