You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It means the latest commit on the main branch is 81fb2e2, and it's 69 commits since the latest tag on the main branch (v0.14.0 because v0.14.2 was not created on the main branch).
PR #3828 is the potential solution to address the issue. The key difference is that, after we release v0.14.0, what's the expected string for the next version? v0.14.1.dev0 or v0.15.0.dev0. Currently, it's v0.14.1.dev0 and as shown in this issue, it causes troubles when we have patch releases not on the main branch. PR #3828 fixes the issue by setting version_scheme=release-branch-semver, then the next dev version is v0.15.0.dev0.
The key difference is that, after we release v0.14.0, what's the expected string for the next version? v0.14.1.dev0 or v0.15.0.dev0.
Trying to read long PEP440, but it's still unclear to me which one is recommended for dev versions. Since we have a separate branch (e.g., v0.14.x) for patch releases and the main branch is always targeted for the next minor release, I feel v0.15.0.dev0 is more suitable.
The version history on TestPyPI looks correct. The dev documentation still shows v0.14.1.dev70. We need to wait for the next docs builds to verify that it works.
Activity
seisman commentedon Feb 28, 2025
I also noticed the issue. It's very likely due to limitations in the setuptools_scm packages
seisman commentedon Feb 28, 2025
The issue is that, v0.14.2 was created from the v0.14.x branch, rather than the main branch.
The setuptools_scm package uses the following git command (https://setuptools-scm.readthedocs.io/en/latest/config/#setuptools_scm.git.DEFAULT_DESCRIBE) to extract the version information:
It means the latest commit on the main branch is 81fb2e2, and it's 69 commits since the latest tag on the main branch (v0.14.0 because v0.14.2 was not created on the main branch).
PR #3828 is the potential solution to address the issue. The key difference is that, after we release v0.14.0, what's the expected string for the next version?
v0.14.1.dev0orv0.15.0.dev0. Currently, it'sv0.14.1.dev0and as shown in this issue, it causes troubles when we have patch releases not on the main branch. PR #3828 fixes the issue by settingversion_scheme=release-branch-semver, then the next dev version isv0.15.0.dev0.seisman commentedon Feb 28, 2025
Trying to read long PEP440, but it's still unclear to me which one is recommended for dev versions. Since we have a separate branch (e.g.,
v0.14.x) for patch releases and the main branch is always targeted for the next minor release, I feelv0.15.0.dev0is more suitable.seisman commentedon Mar 3, 2025
The issue should be fixed by PR #3828.
The version history on TestPyPI looks correct. The dev documentation still shows v0.14.1.dev70. We need to wait for the next docs builds to verify that it works.
seisman commentedon Mar 5, 2025
Now the dev version at https://www.pygmt.org/dev/ is correct.
yvonnefroehlich commentedon Mar 11, 2025
Looks good! Thanks @seisman!