diff --git a/.gitignore b/.gitignore index d539b7d..7e46452 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,3 @@ -# we create this for the release message -releasenotes.md - # Created by https://www.toptal.com/developers/gitignore/api/python,vim # Edit at https://www.toptal.com/developers/gitignore?templates=python,vim diff --git a/justfile b/justfile index af95755..e85e3e0 100644 --- a/justfile +++ b/justfile @@ -66,19 +66,43 @@ bump segment: uv version --bump {{ segment }} [private] -release segment *release_name: - #!/usr/bin/env fish - test -f releasenotes.md; and set -l body "$(cat releasenotes.md)"; or set -l body "" - set -l tag (uv version --short --output-format text --bump {{ segment }}) +release segment: + #!/usr/bin/env bash + export body=$(cat changelog.md) + export tag=$(uv version --short --output-format text --bump {{ segment }}) git add pyproject.toml uv.lock git commit -m "Release version $tag" - git tag "v$tag" + git tag v$tag git push - git push origin tag "v$tag" + git push origin tag v$tag uv build --wheel --clear - fj release create "v$tag: $release_name" --pre-release --tag "v$tag" --attach dist/*.whl --body "$body" - # uv run twine upload --config-file ~/.config/pypirc --repository code.cbo dist/*.whl + fj release create "v$tag: $release_name" --tag "v$tag" --attach dist/*.whl --body "$body" + uv run twine upload --config-file ~/.config/pypirc --repository code.cbo dist/*.whl + + + + + + + + + + + + + + + + + + + + + + + +# diff --git a/pyproject.toml b/pyproject.toml index 27f4e4c..83271a8 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "teilchensammler-cli" -version = "0.4.7" +version = "0.4.6" description = "Build up and maintain an inventory of electronics parts and tools." readme = "README.md" requires-python = ">=3.14,<4.0" diff --git a/uv.lock b/uv.lock index d0e0fb4..a2f0f36 100644 --- a/uv.lock +++ b/uv.lock @@ -1153,7 +1153,7 @@ wheels = [ [[package]] name = "teilchensammler-cli" -version = "0.4.7" +version = "0.4.6" source = { editable = "." } dependencies = [ { name = "ciso8601" },