@@ -9,14 +9,14 @@ authors = [
99 {name = " scverse" },
1010]
1111maintainers = [
12- {
name =
" scverse " ,
email =
" [email protected] " },
12+ {
name =
" Tim Treis " ,
email =
" [email protected] " },
1313]
1414urls.Documentation = " https://spatialdata.scverse.org/projects/plot/en/latest/index.html"
1515urls.Source = " https://github.com/scverse/spatialdata-plot.git"
1616urls.Home-page = " https://github.com/scverse/spatialdata-plot.git"
17- requires-python = " >=3.10 "
17+ requires-python = " >=3.11 "
1818dynamic = [
19- " version" # allow version to be set by git tags
19+ " version" # allow version to be set by git tags
2020]
2121license = {file = " LICENSE" }
2222readme = " README.md"
@@ -30,7 +30,16 @@ dependencies = [
3030
3131[project .optional-dependencies ]
3232dev = [
33- " bump2version" ,
33+ " jupyterlab" ,
34+ " notebook" ,
35+ " ipykernel" ,
36+ " ipywidgets" ,
37+ " jupytext" ,
38+ " pytest" ,
39+ " pytest-cov" ,
40+ " pooch" ,
41+ " ruff" ,
42+ " pre-commit" ,
3443]
3544docs = [
3645 " sphinx>=4.5" ,
@@ -47,12 +56,9 @@ docs = [
4756test = [
4857 " pytest" ,
4958 " pytest-cov" ,
59+ " pytest-xdist" ,
5060 " pooch" , # for scipy.datasets module
5161]
52- # this will be used by readthedocs and will make pip also look for pre-releases, generally installing the latest available version
53- pre = [
54- " spatialdata>=0.1.0-pre0"
55- ]
5662
5763[tool .coverage .run ]
5864source = [" spatialdata_plot" ]
@@ -143,30 +149,45 @@ unfixable = ["B", "UP", "C4", "BLE", "T20", "RET"]
143149 "tests/*" = [" D" , " PT" , " B024" ]
144150 "*/__init__.py" = [" F401" , " D104" , " D107" , " E402" ]
145151 "docs/*" = [" D" ," B" ," E" ," A" ]
146- # "src/spatialdata/transformations/transformations.py" = ["D101","D102", "D106", "B024", "T201", "RET504"]
147152 "tests/conftest.py" = [" E402" , " RET504" ]
148153 "src/spatialdata_plot/pl/utils.py" = [" PGH003" ]
149154
150155[tool .ruff .lint .pydocstyle ]
151156convention = " numpy"
152157
153- [tool .bumpver ]
154- current_version = " 0.0.2"
155- version_pattern = " MAJOR.MINOR.PATCH"
156- commit_message = " bump version {old_version} -> {new_version}"
157- tag_message = " {new_version}"
158- tag_scope = " default"
159- pre_commit_hook = " "
160- post_commit_hook = " "
161- commit = true
162- tag = true
163- push = false
164-
165- [tool .bumpver .file_patterns ]
166- "pyproject.toml" = [
167- ' current_version = "{version}"' ,
168- ]
169- "README.md" = [
170- " {version}" ,
171- " {pep440_version}" ,
172- ]
158+ [tool .pixi .workspace ]
159+ channels = [" conda-forge" ]
160+ platforms = [" osx-arm64" , " linux-64" ]
161+
162+ [tool .pixi .dependencies ]
163+ python = " >=3.11"
164+
165+ [tool .pixi .pypi-dependencies ]
166+ spatialdata-plot = { path = " ." , editable = true }
167+
168+ # for gh-actions
169+ [tool .pixi .feature .py311 .dependencies ]
170+ python = " 3.11.*"
171+
172+ [tool .pixi .feature .py313 .dependencies ]
173+ python = " 3.13.*"
174+
175+ [tool .pixi .environments ]
176+ # 3.11 lane (for gh-actions)
177+ dev-py311 = { features = [" dev" , " test" , " py311" ], solve-group = " py311" }
178+ docs-py311 = { features = [" docs" , " py311" ], solve-group = " py311" }
179+
180+ # 3.13 lane
181+ default = { features = [" py313" ], solve-group = " py313" }
182+ dev-py313 = { features = [" dev" , " test" , " py313" ], solve-group = " py313" }
183+ docs-py313 = { features = [" docs" , " py313" ], solve-group = " py313" }
184+ test-py313 = { features = [" test" , " py313" ], solve-group = " py313" }
185+
186+ [tool .pixi .tasks ]
187+ lab = " jupyter lab"
188+ kernel-install = " python -m ipykernel install --user --name pixi-dev --display-name \" sdata-plot (dev)\" "
189+ test = " pytest -v --color=yes --tb=short --durations=10"
190+ lint = " ruff check ."
191+ format = " ruff format ."
192+ pre-commit-install = " pre-commit install"
193+ pre-commit-run = " pre-commit run --all-files"
0 commit comments