From 0c358892ecd12fee6a226d71a5d357ad5b837aed Mon Sep 17 00:00:00 2001 From: Matthew Broadway Date: Sun, 8 Jun 2025 16:04:43 +0100 Subject: [PATCH] Release 0.3.0 --- Changelog.md | 6 ++++-- Contributing.md | 8 +++++--- pyproject.toml | 2 +- tests/test_import_hook/test_site.py | 6 ------ 4 files changed, 10 insertions(+), 12 deletions(-) diff --git a/Changelog.md b/Changelog.md index b9d2999..0f3cadc 100644 --- a/Changelog.md +++ b/Changelog.md @@ -7,12 +7,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +## [0.3.0] + - fix issue with running scripts installed on Windows (can handle non-directories in `sys.path`) [#21](https://github.com/PyO3/maturin-import-hook/issues/21) [#23](https://github.com/PyO3/maturin-import-hook/pull/23) - improve handling of TOML parsing errors [#20](https://github.com/PyO3/maturin-import-hook/pull/20) - raise minimum maturin to 1.8.4 [#22](https://github.com/PyO3/maturin-import-hook/pull/22) -- update to maturin 1.8.2 - remove `--detect-uv` argument to `maturin_import_hook site install` because maturin now automatically detects uv environments @@ -35,6 +36,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 Initial release of the import hook. -[Unreleased]: https://github.com/pyo3/maturin-import-hook/compare/v0.2.0...HEAD +[Unreleased]: https://github.com/pyo3/maturin-import-hook/compare/v0.3.0...HEAD +[0.3.0]: https://github.com/pyo3/maturin-import-hook/compare/v0.2.0...v0.3.0 [0.2.0]: https://github.com/pyo3/maturin-import-hook/compare/v0.1.0...v0.2.0 [0.1.0]: https://github.com/pyo3/maturin-import-hook/compare/c2689735a61a322998f7304a113b7c74b8108ab3...v0.1.0 diff --git a/Contributing.md b/Contributing.md index 4a77fad..c7fa30e 100644 --- a/Contributing.md +++ b/Contributing.md @@ -48,7 +48,9 @@ a PR, but generally stick to conforming to the suggested linter rules. 1. Bump the version number in `pyproject.toml`. 2. Update `Changelog.md` to reflect the new changes. -3. Check out the commit you want to make a release from. -4. Run `git tag ` e.g. `git tag v0.1.0`. -5. Run `git push origin ` e.g. `git push origin v0.1.0`. +3. Make a pull request for the changes and get it merged. + - tag the pull request with CI-test-all +4. Check out the latest changes on the `main` branch. +5. Run `git tag ` e.g. `git tag v0.1.0`. +6. Run `git push origin ` e.g. `git push origin v0.1.0`. - This will trigger the 'release' github action which will upload to PyPi. diff --git a/pyproject.toml b/pyproject.toml index 94b9865..ba0eb65 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -5,7 +5,7 @@ authors = [ {name = "Matthew Broadway", email = "mattdbway@gmail.com"} ] readme = "README.md" -version = "0.2.0" +version = "0.3.0" requires-python = ">=3.9" dependencies = [ "filelock", diff --git a/tests/test_import_hook/test_site.py b/tests/test_import_hook/test_site.py index df35da0..d61fadd 100644 --- a/tests/test_import_hook/test_site.py +++ b/tests/test_import_hook/test_site.py @@ -1,4 +1,3 @@ -import logging from pathlib import Path from textwrap import dedent @@ -12,11 +11,6 @@ from .common import capture_logs -script_dir = Path(__file__).resolve().parent -maturin_import_hook_root = script_dir.parent.parent - -log = logging.getLogger(__name__) - def test_automatic_site_installation(tmp_path: Path) -> None: sitecustomize = tmp_path / "sitecustomize.py"