11.DEFAULT_GOAL := help
2- .PHONY : develop requirements build install lint-py lint-docs lint lints fix-py fix-docs fix format check-dist check-types checks check test tests coverage show-version patch minor major dist dist-build dist-py-wheel dist-py-sdist dist-check test-dist publish deep-clean clean help
2+ .PHONY : develop requirements build install lint-py lint-docs lint lints fix-py fix-docs fix format check-dist check-types checks check test tests coverage show-version patch minor major dist dist-build dist-py-wheel dist-py-sdist dist-check publish deep-clean clean help
33
44develop : # # install dependencies and build library
55 uv pip install -e ' .[develop]'
@@ -14,16 +14,16 @@ install: ## install library
1414 uv pip install .
1515
1616lint-py : # # lint Python with ruff
17- python -m ruff check python_template_cython .github/scripts
18- python -m ruff format --check python_template_cython .github/scripts
17+ python -m ruff check python_template_cython
18+ python -m ruff format --check python_template_cython
1919
2020lint-docs : # # lint documentation
2121 python -m mdformat --check README.md docs/development.md
2222 python -m codespell_lib README.md docs/development.md
2323
2424fix-py : # # autoformat Python code
25- python -m ruff check --fix python_template_cython .github/scripts
26- python -m ruff format python_template_cython .github/scripts
25+ python -m ruff check --fix python_template_cython
26+ python -m ruff format python_template_cython
2727
2828fix-docs : # # autoformat documentation
2929 python -m mdformat README.md docs/development.md
@@ -34,8 +34,8 @@ lints: lint
3434fix : fix-py fix-docs # # run all autoformatters
3535format : fix
3636
37- check-dist : # # check sdist and wheel contents
38- check-dist -v --rebuild
37+ check-dist : # # check python sdist and wheel with check-dist
38+ check-dist -v
3939
4040check-types : # # check Python types (advisory)
4141 ty check python_template_cython
@@ -66,18 +66,15 @@ major: ## bump a major version
6666dist-build : # # build local Python distributions
6767 python -m build -w -s
6868
69- dist-py-wheel : dist-py-sdist # # build portable native wheels from the sdist
70- python -m cibuildwheel --output-dir dist dist/ * .tar.gz
69+ dist-py-wheel : # # build python wheel
70+ python -m cibuildwheel --output-dir dist
7171
72- dist-py-sdist : # # build a source distribution
73- python -m build --sdist --outdir dist
72+ dist-py-sdist : # # build python sdist
73+ python -m build --sdist -o dist
7474
75- dist-check : # # check distribution metadata
75+ dist-check : # # run python dist checker with twine
7676 python -m twine check dist/*
7777
78- test-dist : # # test installed wheels and rebuild source distributions
79- python .github/scripts/test-distributions.py
80-
8178dist : # # build and check local distributions
8279 $(MAKE ) clean
8380 $(MAKE ) dist-build
0 commit comments