Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions .github/workflows/release-please.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,19 @@ jobs:
uv build
uv run --no-project --with packaging python tests/inspect_wheel_metadata.py dist/*.whl

# release-please's own Python updater misses a version with a dotted prerelease suffix (2.0.0-alpha.1), so
# src/copick_shared_ui/__init__.py carries an x-release-please-version marker; refuse to upload if it was still missed.
- name: Check the built version is the release's
env:
RELEASE_VERSION: ${{ needs.release-please.outputs.version }}
run: >
uv run --no-project --with packaging python -c
"import glob, os, sys; from packaging.version import Version;
want = Version(os.environ['RELEASE_VERSION']);
got = Version(os.path.basename(glob.glob('dist/*.whl')[0]).split('-')[1]);
print(f'release {want}, built {got}');
sys.exit(0 if got == want else f'Built {got}, but the release is {want}: src/copick_shared_ui/__init__.py was not bumped.')"

- name: Publish distribution 📦 to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
Expand Down
1 change: 1 addition & 0 deletions release-please.config.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
"packages": {
".": {
"package-name": "copick-shared-ui",
"extra-files": [{ "type": "generic", "path": "src/copick_shared_ui/__init__.py" }],
"tag-prefix": "v",
"release-type": "python",
"separate-pull-requests": true,
Expand Down
1 change: 1 addition & 0 deletions release-please.prerelease.config.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
"packages": {
".": {
"package-name": "copick-shared-ui",
"extra-files": [{ "type": "generic", "path": "src/copick_shared_ui/__init__.py" }],
"tag-prefix": "v",
"release-type": "python",
"versioning": "prerelease",
Expand Down
2 changes: 1 addition & 1 deletion src/copick_shared_ui/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"""Copick shared UI components for cross-platform visualization."""

__version__ = "2.0.0-alpha.1"
__version__ = "2.0.0-alpha.1" # x-release-please-version

# Core components
from copick_shared_ui.core import (
Expand Down
Loading