Skip to content

Commit

Permalink
build: install hatch during semantic release execution
Browse files Browse the repository at this point in the history
  • Loading branch information
kmontag committed Jul 2, 2024
1 parent bbc20df commit e3ee436
Show file tree
Hide file tree
Showing 3 changed files with 57 additions and 4 deletions.
3 changes: 0 additions & 3 deletions .github/workflows/test_and_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
53 changes: 53 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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))
5 changes: 4 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit e3ee436

Please sign in to comment.