Skip to content

Commit 74e80d8

Browse files
committed
added support for the pixi python-packages manager
1 parent 3c87a5b commit 74e80d8

3 files changed

Lines changed: 58 additions & 0 deletions

File tree

pixi_env/.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
.pixi
2+
pixi.lock

pixi_env/README.md

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# Python environment managed by the pixi
2+
3+
This is a Python-centered project, and naturaly comes with dependencies--additional packages.
4+
Clearly, there are several packages managers for Python. Some keep their environments outside
5+
the project tree (e.g. conda or mamba) and one has to remember which environment to activate;
6+
some keep the environment(s) inside the project tree and make it clear which environment to use.
7+
8+
This folder here offers to control the dependecies with [the pixi](https://pixi.sh/) manager.
9+
10+
11+
# Using pixi with this project
12+
13+
The pixi is controlled with `pixi.toml` configuration file, which ideally is kept synchronized
14+
with the requirements defined in the root folder.
15+
16+
To start the (pixi-governed) environment in this folder:
17+
18+
```bash
19+
cd path_to_this_repo/pixi_env
20+
pixi shell
21+
```
22+
23+
or, to start it in the root folder:
24+
25+
```bash
26+
cd path_to_this_repo
27+
pixi shell --manifest-path pixi_env/pixi.toml
28+
```
29+
30+
Both examples normally give the conda/mamba-like-env-activated prompt... :+1:
31+

pixi_env/pixi.toml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
[workspace]
2+
name = "py-ctcmetrics"
3+
description = "Metrics for Cell Tracking Challenges"
4+
authors = ["Timo Kaiser <kaiser@tnt.uni-hannover.de>"]
5+
repository = "https://github.com/CellTrackingChallenge/py-ctcmetrics.git"
6+
version = "1.3.1"
7+
8+
readme = "../README.md"
9+
license = "BSD-2-Clause"
10+
license-file = "../LICENSE.txt"
11+
12+
platforms = ["win-64", "linux-64", "osx-64", "osx-arm64"]
13+
channels = ["conda-forge"]
14+
15+
[dependencies]
16+
numpy = ">=2.3.2,<3"
17+
scikit-learn = ">=1.7.1,<2"
18+
tifffile = ">=2025.8.28,<2026"
19+
imagecodecs = ">=2025.8.2,<2026"
20+
pandas = ">=2.3.2,<3"
21+
scipy = ">=1.16.1,<2"
22+
py-opencv = ">=4.12.0,<5"
23+
24+
[pypi-dependencies]
25+
py-ctcmetrics = { path = "..", editable = true }

0 commit comments

Comments
 (0)