diff --git a/.copier-answers.yml b/.copier-answers.yml index c02a0ec..294f2a9 100644 --- a/.copier-answers.yml +++ b/.copier-answers.yml @@ -1,5 +1,5 @@ # Changes here will be overwritten by Copier -_commit: 679102d +_commit: 573d8d6 _src_path: https://github.com/python-project-templates/base.git add_extension: rust email: 3105306+timkpaine@users.noreply.github.com diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 42cac77..39e4d07 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -14,3 +14,12 @@ updates: labels: - "lang: python" - "part: dependencies" + + - package-ecosystem: "cargo" + directory: "/" + schedule: + interval: "monthly" + labels: + - "lang: rust" + - "part: dependencies" + diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index abb9fbb..3eb5076 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -117,6 +117,8 @@ jobs: run: | make dist-py-wheel make dist-check + env: + CIBW_ENVIRONMENT_MACOS: MACOSX_DEPLOYMENT_TARGET=11.0 if: matrix.os != 'ubuntu-latest' - uses: actions/upload-artifact@v4 diff --git a/Makefile b/Makefile index a3ddf9e..028bfca 100644 --- a/Makefile +++ b/Makefile @@ -65,7 +65,7 @@ format: fix ################ # Other Checks # ################ -.PHONY: check-manifest checks check annotate +.PHONY: check-manifest checks check check-manifest: ## check python sdist manifest with check-manifest check-manifest -v @@ -75,9 +75,6 @@ checks: check-manifest # alias check: checks -annotate: ## run python type annotation checks with mypy - python -m mypy ./python_template_rust - ######### # TESTS # ######### diff --git a/README.md b/README.md index 18b7499..addace7 100644 --- a/README.md +++ b/README.md @@ -11,5 +11,5 @@ A Rust-Python project template ## Overview -> \[!NOTE\] +> [!NOTE] > This library was generated using [copier](https://copier.readthedocs.io/en/stable/) from the [Base Python Project Template repository](https://github.com/python-project-templates/base). diff --git a/pyproject.toml b/pyproject.toml index 69afb6f..38b23df 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -18,7 +18,6 @@ classifiers = [ "Programming Language :: Python :: Implementation :: CPython", "Programming Language :: Python :: Implementation :: PyPy", "Programming Language :: Python :: 3", - "Programming Language :: Python :: 3.8", "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.11", @@ -77,6 +76,8 @@ ignore = [ ".copier-answers.yml", "Makefile", "setup.py", + "docs/**/*", + "rust/.config/*", "rust/Cargo.lock", "rust/README.md", ] @@ -95,6 +96,7 @@ archs = "x86_64" [tool.cibuildwheel.macos] archs = "x86_64 arm64" +environment = {MACOS_DEPLOYMENT_TARGET=11.0} [tool.cibuildwheel.windows] environment = {PATH="$UserProfile\\.cargo\bin;$PATH"} diff --git a/rust/.config/nextest.toml b/rust/.config/nextest.toml new file mode 100644 index 0000000..88457dc --- /dev/null +++ b/rust/.config/nextest.toml @@ -0,0 +1,2 @@ +[profile.default.junit] +path = "junit.xml" diff --git a/rust/Makefile b/rust/Makefile index 0f691f9..4045115 100644 --- a/rust/Makefile +++ b/rust/Makefile @@ -29,12 +29,13 @@ checks: check .PHONY: test tests test-ci tests-ci test: ## run the tests - cargo llvm-cov nextest + cargo llvm-cov nextest --cobertura --output-path junit.xml + # alias tests: test coverage: - cargo llvm-cov --lcov --output-path coverage nextest + cargo llvm-cov nextest --lcov --output-path coverage .PHONY: dist publish dist: ## create dist