@@ -10,7 +10,7 @@ develop-rust:
1010
1111develop : develop-rust develop-py # # setup project for development
1212
13- .PHONY : build-py build-rust build
13+ .PHONY : build-py build-rust build dev
1414build-py :
1515 maturin build
1616
@@ -41,10 +41,11 @@ lint-py: ## run python linter with ruff
4141 python -m ruff check rust_template
4242 python -m ruff format --check rust_template
4343
44- lint-rust : # # run the rust linter
44+ lint-rust : # # run rust linter
4545 make -C rust lint
4646
4747lint : lint-rust lint-py # # run project linters
48+
4849# alias
4950lints : lint
5051
@@ -57,6 +58,7 @@ fix-rust: ## fix rust formatting
5758 make -C rust fix
5859
5960fix : fix-rust fix-py # # run project autoformatters
61+
6062# alias
6163format : fix
6264
@@ -79,26 +81,30 @@ annotate: ## run python type annotation checks with mypy
7981# ########
8082# TESTS #
8183# ########
82- .PHONY : test test-py coverage-py tests
83-
84+ .PHONY : test-py tests-py coverage-py
8485test-py : # # run python tests
8586 python -m pytest -v rust_template/tests --junitxml=junit.xml
87+
8688# alias
8789tests-py : test-py
8890
8991coverage-py : # # run python tests and collect test coverage
9092 python -m pytest -v rust_template/tests --junitxml=junit.xml --cov=rust_template --cov-branch --cov-fail-under=50 --cov-report term-missing --cov-report xml
9193
94+ .PHONY : test-rust tests-rust coverage-rust
9295test-rust : # # run rust tests
9396 make -C rust test
97+
9498# alias
9599tests-rust : test-rust
96100
97101coverage-rust : # # run rust tests and collect test coverage
98102 make -C rust coverage
99103
104+ .PHONY : test coverage tests
100105test : test-py test-rust # # run all tests
101106coverage : coverage-py coverage-rust # # run all tests and collect test coverage
107+
102108# alias
103109tests : test
104110
@@ -122,18 +128,21 @@ major: ## bump a major version
122128# #######
123129# DIST #
124130# #######
125- .PHONY : dist dist-build dist-sdist dist-local-wheel publish
131+ .PHONY : dist-py-wheel dist-py-sdist dist-rust dist-check dist publish
132+
133+ dist-py-wheel : # build python wheel
134+ python -m cibuildwheel --output-dir dist
126135
127- dist-build-py : # build python dists
128- python -m build -w -s
136+ dist-py-sdist : # build python sdist
137+ python -m build --sdist -o dist
129138
130- dist-build- rust : # build rust dists
139+ dist-rust : # build rust dists
131140 make -C rust dist
132141
133142dist-check : # # run python dist checker with twine
134143 python -m twine check dist/*
135144
136- dist : clean build dist-build- rust dist-build-py dist-check # # build all dists
145+ dist : clean build dist-rust dist-py-wheel dist-py-sdist dist-check # # build all dists
137146
138147publish : dist # publish python assets
139148
0 commit comments