From e3ee4363122fbec47283bf8812742ffa32a3bdd0 Mon Sep 17 00:00:00 2001 From: Kevin Montag Date: Tue, 2 Jul 2024 09:45:51 +0200 Subject: [PATCH] build: install hatch during semantic release execution --- .github/workflows/test_and_release.yml | 3 -- CHANGELOG.md | 53 ++++++++++++++++++++++++++ pyproject.toml | 5 ++- 3 files changed, 57 insertions(+), 4 deletions(-) create mode 100644 CHANGELOG.md diff --git a/.github/workflows/test_and_release.yml b/.github/workflows/test_and_release.yml index 204ac3d..52ba622 100644 --- a/.github/workflows/test_and_release.yml +++ b/.github/workflows/test_and_release.yml @@ -53,9 +53,6 @@ jobs: with: python-version: 3.12 - # `python-semantic-release` will run `hatch build`. - - run: python -m pip install hatch - # Publishing steps adapted from # https://python-semantic-release.readthedocs.io/en/latest/migrating_from_v7.html#removal-of-pypi-token-repository-username-and-repository-password-inputs. - name: Update package version if needed diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 0000000..098ce5e --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,53 @@ +# CHANGELOG + +## v0.0.2 (2024-07-02) + +### Build + +* build: install hatch during semantic release execution ([`c551a23`](https://github.com/kmontag/alpacks/commit/c551a2386661f181e3c819d813c4dedf8b2e8200)) + +* build: update semantic release build command ([`bbc20df`](https://github.com/kmontag/alpacks/commit/bbc20df150279d3055651952c7692344e16870e5)) + +* build: use standard actions for PyPi and GitHub Releases publish ([`c73227d`](https://github.com/kmontag/alpacks/commit/c73227d3a8f9a2c20ce8a31fa35cd12fdcd950e1)) + +### Chore + +* chore: fixes in semantic release workflow ([`a145bbe`](https://github.com/kmontag/alpacks/commit/a145bbe583c4fa0dd252561b8c635e0a23edf2c5)) + +* chore: update fetch depth in semantic release action ([`dfdd7f6`](https://github.com/kmontag/alpacks/commit/dfdd7f69d4d10762b469182a7ed3f0b363a37fb2)) + +### Refactor + +* refactor: add semantic release and PyPi upload (#2) ([`be088ec`](https://github.com/kmontag/alpacks/commit/be088eceed561ffe7c7a6ceca828682d719224ee)) + +## v0.0.1 (2024-07-02) + +### Unknown + +* v0.0.1 ([`11f9beb`](https://github.com/kmontag/alpacks/commit/11f9beb244c5ec65004befec4807fc5cd09eee57)) + +* Add github workflows (#1) + +* Add github workflow for testing/linting + +* Change test command + +* Drop python 3.8, fixes for pre-3.12 versions + +* Remove Tuple import + +* Rename workflow file, add badge to README ([`f06e324`](https://github.com/kmontag/alpacks/commit/f06e3240660f604c810676c686445c97e83bd997)) + +* Linter fixes ([`258e7f0`](https://github.com/kmontag/alpacks/commit/258e7f0bc70c8a10e363189ca50806a534d60e42)) + +* Bump version ([`bc7d608`](https://github.com/kmontag/alpacks/commit/bc7d608d205f04143f9613067431947f28d6a782)) + +* Fix errors when writing async packs ([`5d4d461`](https://github.com/kmontag/alpacks/commit/5d4d461beccd879a164c7615d846c6d14de4e5d2)) + +* Change package name again, needs to differ sufficiently from 'alpacka' ([`e39bfcd`](https://github.com/kmontag/alpacks/commit/e39bfcd7c59180fd03c48db59d23dce29eaf0b29)) + +* Ignore build artifacts ([`ad8e5bf`](https://github.com/kmontag/alpacks/commit/ad8e5bf870cdd5946e7fa2913b18fdd3b4262e23)) + +* Change package name, the original is taken ([`2b713e7`](https://github.com/kmontag/alpacks/commit/2b713e7bab13f80edd782caff7f01312aa648907)) + +* Initial commit ([`8ab60af`](https://github.com/kmontag/alpacks/commit/8ab60af515761bf4bb29bb74c677f025294dc2e5)) diff --git a/pyproject.toml b/pyproject.toml index b90a670..605f073 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -80,7 +80,10 @@ extend-ignore = ["E501"] [tool.semantic_release] assets = [] -build_command = "python -m hatch build" +# Work around not being able to install packages preemptively in the +# semantic_release environment. See +# https://github.com/python-semantic-release/python-semantic-release/issues/723. +build_command = "pip install hatch && hatch build" build_command_env = [] commit_message = "{version}\n\nAutomatically generated by python-semantic-release" commit_parser = "angular"