Skip to content

Commit 8523a07

Browse files
committed
Move to pixi/hatchling
1 parent e889e44 commit 8523a07

32 files changed

+78
-27
lines changed

.gitattributes

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# SCM syntax highlighting & preventing 3-way merges
2+
pixi.lock merge=binary linguist-language=YAML linguist-generated=true

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,6 @@ client_id
77
poetry.lock
88
dolang.egg-info
99
setup.py
10-
.venv/*
10+
.venv/*# pixi environments
11+
.pixi/*
12+
!.pixi/config.toml

pixi.toml

Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
[workspace]
2+
authors = ["Pablo Winant <pablo.winant@gmail.com>","Ousema Bouaneni <ousema.bouaneni@polytechnique.edu>"]
3+
description = "Dolo Modeling Language"
4+
channels = ["conda-forge"]
5+
preview = ["pixi-build"]
6+
platforms = ["linux-64"]
7+
8+
[package]
9+
name = "dolang"
10+
version = "0.0.21"
11+
12+
[dependencies]
13+
dolang = { path = "." }
14+
15+
[package.run-dependencies]
16+
python = ">=3.9,<3.13"
17+
numpy = ">=2.2.6,<3"
18+
sympy = ">=1.14.0,<2"
19+
lark = ">=1.2.2,<2"
20+
pyyaml = ">=6.0.2,<7"
21+
numba = ">=0.61.2,<0.62"
22+
# add optional numba
23+
24+
[package.build]
25+
backend = { name = "pixi-build-python", version = "==0.3.2" }
26+
27+
[package.host-dependencies]
28+
hatchling = "==1.26.3"
29+
python = "<3.13,>=3.10"
30+
31+
[feature.test.dependencies]
32+
pytest = ">=8.3.3"
33+
coverage = ">=6.4.4"
34+
pytest-cov = ">=4.0.0"
35+
36+
[feature.test.tasks]
37+
test = "pytest"
38+
durations = "pytest --durations=0 -vv"
39+
cov = "pytest --cov=./ --cov-report=xml"
40+
41+
[feature.lint.dependencies]
42+
mypy = ">=1.0.0"
43+
pandas-stubs = ">=2.2.2"
44+
scipy-stubs = ">=1.12.0"
45+
types-mock = ">=5.0.0.0"
46+
types-pyyaml = ">=6.0.12"
47+
black = ">=24.10.0"
48+
49+
[feature.lint.tasks]
50+
typecheck = "mypy dolang --ignore-missing-imports"
51+
black = "black"
52+
ci-qc = "black . --check"
53+
54+
[feature.docs.dependencies]
55+
mkdocs = ">=1.6.1"
56+
mkdocstrings-python = ">=1.16.0"
57+
mkdocs-material = ">=9.6.0"
58+
pymdown-extensions = ">=10.12"
59+
python-markdown-math = ">=0.8"
60+
61+
[feature.docs.tasks]
62+
docs = "mkdocs serve"
63+
64+
65+
[environments]
66+
prod = []
67+
test = ["test"]
68+
dev = ["test", "lint", "docs"]

pyproject.toml

Lines changed: 5 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,12 @@
1-
[tool.poetry]
1+
[project]
22
name = "dolang"
33
version = "0.0.21"
4+
requires-python = ">= 3.10,<3.14"
45
description = "Dolo Modeling Language"
56
readme = "README.md"
6-
authors = ["Winant Pablo <pablo.winant@gmail.com>"]
7+
authors = [{name="Winant Pablo", email="pablo.winant@gmail.com"}]
78
license="BSD-2-Clause"
89

9-
[tool.poetry.dependencies]
10-
python = ">=3.9,<3.13"
11-
numpy = ">=2.0.0"
12-
sympy = "^1.12.1"
13-
lark = "^1.1.2"
14-
PyYAML = "^6.0"
15-
numba = {version = "^0.60.0", optional = true}
16-
17-
[tool.poetry.extras]
18-
compile = ['numba']
19-
20-
[tool.poetry.dev-dependencies]
21-
pytest = "^7.1.3"
22-
black = "^24.3.0"
23-
pylint = "^2.6.0"
24-
mkdocs = "^1.1.2"
25-
ipython = "^8.10.1"
26-
ipykernel = "^5.3.4"
27-
coverage = "^5.3"
28-
pytest-cov = "^2.10.1"
29-
numba = "^0.60.0"
30-
3110
[build-system]
32-
requires = ["poetry>=1.8"]
33-
build-backend = "poetry.masonry.api"
11+
build-backend = "hatchling.build"
12+
requires = ["hatchling"]
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)