diff --git a/.copier-answers.yaml b/.copier-answers.yaml index c5e50b5..1685f87 100644 --- a/.copier-answers.yaml +++ b/.copier-answers.yaml @@ -1,5 +1,5 @@ # Changes here will be overwritten by Copier -_commit: a03224b +_commit: 9642da9 _src_path: https://github.com/python-project-templates/base.git add_docs: true add_extension: rust diff --git a/.github/workflows/wiki.yaml b/.github/workflows/wiki.yaml index 1588acd..d5f3b74 100644 --- a/.github/workflows/wiki.yaml +++ b/.github/workflows/wiki.yaml @@ -22,6 +22,6 @@ jobs: steps: - uses: actions/checkout@v4 - run: cp README.md docs/wiki/Home.md - - uses: Andrew-Chen-Wang/github-wiki-action@v4 + - uses: Andrew-Chen-Wang/github-wiki-action@v5 with: path: docs/wiki diff --git a/Makefile b/Makefile index 9ac8fa4..b40b3ab 100644 --- a/Makefile +++ b/Makefile @@ -10,6 +10,17 @@ develop-rs: develop: develop-rs develop-py ## setup project for development +.PHONY: requirements-py requirements-rs requirements +requirements-py: ## install prerequisite python build requirements + python -m pip install --upgrade pip toml + python -m pip install `python -c 'import toml; c = toml.load("pyproject.toml"); print("\n".join(c["build-system"]["requires"]))'` + python -m pip install `python -c 'import toml; c = toml.load("pyproject.toml"); print(" ".join(c["project"]["optional-dependencies"]["develop"]))'` + +requirements-rs: ## install prerequisite rust build requirements + make -C rust requirements + +requirements: requirements-rs requirements-py ## setup project for development + .PHONY: build-py build-rs build dev build-py: maturin build diff --git a/rust/Makefile b/rust/Makefile index 4045115..9951d42 100644 --- a/rust/Makefile +++ b/rust/Makefile @@ -1,11 +1,13 @@ -.PHONY: develop build -develop: ## install required dev dependencies +.PHONY: requirements develop build +requirements: ## install required dev dependencies rustup component add rustfmt rustup component add clippy - cargo install cargo-nextest + cargo install cargo-nextest cargo install cargo-llvm-cov +develop: requirements ## install required dev dependencies + build: ## build release cargo build --release --all-features