-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpixi.toml
145 lines (114 loc) · 4.55 KB
/
pixi.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
#--------------------------------------------------------------------------------------------------#
############################################## PIXI ################################################
#__________________________________________________________________________________________________#
[project]
name = "orcestra-downloader"
channels = ["conda-forge"]
platforms = ["osx-arm64", "linux-64", "win-64", "osx-64"]
[environments]
dev = { features = ["dev", "test", "quality", "docs", "media", "release", "build"], solve-group = "default" }
quality = { features = ["quality"], solve-group = "default" }
docs = { features = ["docs", "media"], solve-group = "default" }
publish = { features = ["build", "release"], solve-group = "default" }
py310 = { features = ["test", "py310"] }
py311 = { features = ["test", "py311"] }
py312 = { features = ["test", "py312"] }
py313 = { features = ["test", "py313"] }
############################################# DEFAULT #############################################
[pypi-dependencies]
orcestra-downloader = { path = ".", editable = true }
[dependencies]
python = ">=3.10"
####################################### PYTHON VERSIONS ###########################################
[feature.py310.dependencies]
python = "3.10.*"
[feature.py311.dependencies]
python = "3.11.*"
[feature.py312.dependencies]
python = "3.12.*"
[feature.py313.dependencies]
python = "3.13.*"
############################################# DEV ##################################################
[feature.dev.dependencies]
ipython = "*"
ipykernel = "*"
jupyterlab = "*"
pip = "*"
ipywidgets = "*"
############################################## TEST ################################################
[feature.test.dependencies]
pytest = "*"
pytest-cov = "*"
pytest-xdist = "*"
[feature.test.tasks.test]
cmd = "pytest -c config/pytest.ini"
inputs = ["src", "tests", "config/pytest.ini", "config/coverage.toml"]
outputs = ["coverage-report/coverage.xml"]
description = "Run pytest"
[feature.test.tasks.coverage]
cmd = "coverage report --rcfile=config/coverage.toml"
inputs = ["src", "tests", "coverage-report/coverage.xml"]
description = "Generate generated coverage report"
depends-on = ["test"]
############################################## QUALITY ###############################################
# Quality includes linting, type checking, and formatting
[feature.quality.dependencies]
ruff = ">=0.4.4"
mypy = ">=1.13.0,<2"
[feature.quality.pypi-dependencies]
pydoctest = ">=0.2.1, <0.3"
[feature.quality.tasks]
ruff-check.cmd = ["ruff", "--config", "config/ruff.toml", "check", "src"]
ruff-check.inputs = ["config/ruff.toml", "src"]
ruff-check.description = "Run ruff check"
ruff-format.cmd = ["ruff", "--config", "config/ruff.toml", "format", "src"]
ruff-format.inputs = ["config/ruff.toml", "src"]
ruff-format.depends_on = ["ruff-check"]
ruff-format.description = "Run ruff format, run check first"
type-check.cmd = ["mypy", "--config-file", "config/mypy.ini"]
type-check.inputs = ["config/mypy.ini", "src"]
type-check.description = "Run mypy type check."
qc.depends_on = ["ruff-format", "ruff-check", "type-check"]
qc.description = "Quality check: ruff & mypy"
############################################## DOCS ################################################
# Available tasks: doc-build, doc-serve, doc-deploy
[feature.docs.dependencies]
mkdocs = "*"
mike = "*"
[feature.docs.tasks.doc-build]
cmd = "mkdocs build -f mkdocs.yaml"
inputs = ["docs"]
outputs = ["site"]
[feature.docs.tasks.doc-serve]
cmd = "mkdocs serve -f mkdocs.yaml"
inputs = ["docs"]
[feature.docs.tasks.doc-deploy]
cmd = "mkdocs gh-deploy -f mkdocs.yaml --force"
inputs = ["docs"]
[feature.media.target.unix.dependencies]
ttyd = "*"
vhs = "*"
[feature.media.tasks.update-gif]
cmd = "vhs tapes/orcestra-downloader.tape"
#################################### RELEASE & BUILD ###############################################
[feature.release.dependencies]
python-semantic-release = ">=8.5.1"
[feature.release.tasks]
semver = 'echo "Next Version is: $(semantic-release -c config/releaserc.toml version --print)"'
release = "semantic-release -c config/releaserc.toml version"
[feature.build.dependencies]
hatch = "*"
rattler-build = ">=0.32.0,<0.33"
[feature.build.tasks]
# Builds the package and publishes it to the test.pypi.org repository
build = { cmd = "hatch build --clean", inputs = ["src"], outputs = ["dist/*"] }
publish-pypi = { cmd = "hatch publish --yes --repo main", inputs = [
"dist/*",
], depends-on = [
"build",
] }
publish-test = { cmd = "hatch publish --yes --repo test", inputs = [
"dist/*",
], depends-on = [
"build",
] }