-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpixi.toml
More file actions
72 lines (60 loc) · 1.97 KB
/
Copy pathpixi.toml
File metadata and controls
72 lines (60 loc) · 1.97 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
70
71
72
[workspace]
authors = ["Amirhossein Davoody <amirhossein.davoody@gmail.com>"]
channels = [
"https://prefix.dev/conda-forge",
"conda-forge",
]
platforms = ["linux-64", "osx-64", "osx-arm64", "win-64"]
preview = ["pixi-build"]
[dependencies]
dataclass-argparser = {path = "."}
ipython = ">=9.6.0,<10"
pre-commit = ">=4.5.0,<5"
pytest = ">=9.0.1,<10"
pytest-cov = ">=6.0.0,<7"
python-build = ">=1.0.0,<2"
result = ">=0.17.0,<0.18"
twine = ">=5.1.0"
pydantic = ">=2.13.4,<3"
[tasks]
# Testing tasks
test = "pytest tests/"
test-coverage = "pytest --cov=src/dataclass_argparser --cov-report=html --cov-report=term --cov-report=xml tests/"
test-verbose = "pytest -v tests/"
# Example tasks
run-basic-example = "python examples/basic_example.py --help"
run-override-example = "python examples/override_example.py --help"
# Build tasks
build = "pixi build --clean --output-dir dist/"
build-pypi = "python -m build"
clean = "rm -rf build/ dist/ *.egg-info/ __pycache__/ .pytest_cache/ htmlcov/"
update-version = "scripts/update_version.sh"
[tasks.test-all]
cmd = """
pytest tests/ && \
python examples/basic_example.py --name test --temperature 25.0 && \
python examples/override_example.py --config examples/example_config.json && \
python examples/custom_flags_example.py --config examples/example_config.json
"""
[tasks.demo]
cmd = """
echo "Running basic example with default values:" &&
python examples/basic_example.py --name "Demo Run" --temperature 30.0 --num-simulations 50 &&
echo "" &&
echo "Running override example with config file:" &&
python examples/override_example.py --config examples/example_config.json
"""
[package]
description = "A utility for creating command-line argument parsers from dataclasses"
name = "dataclass-argparser"
version = "2026.6.30.0"
[package.build.backend]
name = "pixi-build-python"
version = ">=0.4.0"
[package.build-dependencies]
pytest = ">=8.4.1,<9"
[package.host-dependencies]
hatchling = "*"
[package.run-dependencies]
python = ">=3.7"
pyyaml = ">=6.0.2,<7"