Skip to content

Commit d2fd79a

Browse files
authored
ci: derive beta package version from UTC date-time (PEP 440) (#1648)
Replace commit-count suffix after 199b6c3 with YYYYMMDDHHMM UTC so PyPI/conda beta builds are time-stamped and sortable. Made-with: Cursor
1 parent b22ae63 commit d2fd79a

3 files changed

Lines changed: 5 additions & 4 deletions

File tree

.github/ISSUE_TEMPLATE/beta_report.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ body:
2626
attributes:
2727
label: Version
2828
description: Please specify the version of the Activity Browser you are using.
29-
placeholder: e.g. 3.0.0b940
29+
placeholder: e.g. 3.0.0b202503221430 (from About / pip show)
3030
- type: dropdown
3131
id: distribution
3232
attributes:

.github/workflows/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,8 @@ The Activity Browser project uses five GitHub Actions workflows to automate test
7171
**Purpose:** Publishes beta versions to PyPI (test and production) and Anaconda Cloud.
7272

7373
### Version Scheme
74-
- Beta version format: `3.0.0b<N>` where N is the commit count since commit `199b6c3`
75-
- Calculated dynamically: `git rev-list 199b6c3..HEAD --count`
74+
- Beta version format: `3.0.0b<YYYYMMDD><HHMM>` (UTC), e.g. `3.0.0b202503221430` = 2025-03-22 14:30 UTC
75+
- Set in CI: `date -u +%Y%m%d%H%M` (compact so the string is a valid [PEP 440](https://packaging.python.org/en/latest/specifications/version-specifiers/) pre-release)
7676

7777
### Steps
7878
1. Checkout with full git history (`fetch-depth: "0"`)

.github/workflows/python-package-deploy.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,9 @@ jobs:
2020
- uses: actions/checkout@v4
2121
with:
2222
fetch-depth: "0"
23+
# PEP 440 beta: 3.0.0b + YYYYMMDDHHMM (UTC). Sortable; no hyphens (invalid in public versions).
2324
- name: Set version
24-
run: echo "VERSION=3.0.0b$(git rev-list 199b6c3..HEAD --count)" >> $GITHUB_ENV
25+
run: echo "VERSION=3.0.0b$(date -u +%Y%m%d%H%M)" >> $GITHUB_ENV
2526
- name: Set up Python 3.11
2627
uses: actions/setup-python@v5
2728
with:

0 commit comments

Comments
 (0)