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
When i'm on a feature branch i use : semantic-release -vv version --push --no-vcs-release --no-changelog --build-metadata $(git branch --show-current) to generate my feature alpha version in order to avoid conflict with other developer who start from the same version as i , however when i push the generated wheel to artifact it convert v0.1.2-alpha1+abcd to 0.1.2.a1 , so another developer who create his branch starting from the same version v0.1.1 would have the same python package version as i and can't deploy his package to artifact since the version already exists
Is there any solution to avoid this conflict , i tried to insert the version package in the pyproject.toml file using version params but the generated version does not respect pep440 format (0.1.2.a1+abcd), so the current version will point at it which is no good for production purpose
the idea is when building the python package it will convert v0.1.2-alpha1+abcd to 0.1.2.a1.devabcd or something like this
The text was updated successfully, but these errors were encountered:
@intex46, first thing to note is that both the wheel builder and PSR are adhering to PEP440 format.
The version scheme you describe falls under the category of Local Version Identifiers. Local identifiers allow for build metadata to be appended to the version via a +. This is what PSR is doing when it stamps the version into pyproject.toml. Given the intent of build metadata, this is the correct behavior of PSR.
Since the build metadata is not allowed in Public Version Identifiers, the wheel build drops it upon build. This is also correct behavior.
To still accomplish your workflow, I would recommend modifying the build command that you supply PSR to call an internal script or sed command that will convert the + to a . in the version number field of pyproject.toml and then call your build command. This script would enable PSR to stamp the version in and then call your script as the build step.
Hello, i use multibranch releases to create alpha python packages, here my pyproject.toml config:
When i'm on a feature branch i use :
semantic-release -vv version --push --no-vcs-release --no-changelog --build-metadata $(git branch --show-current)
to generate my feature alpha version in order to avoid conflict with other developer who start from the same version as i , however when i push the generated wheel to artifact it convertv0.1.2-alpha1+abcd
to0.1.2.a1
, so another developer who create his branch starting from the same versionv0.1.1
would have the same python package version as i and can't deploy his package to artifact since the version already existsIs there any solution to avoid this conflict , i tried to insert the version package in the pyproject.toml file using version params but the generated version does not respect
pep440
format (0.1.2.a1+abcd
), so the current version will point at it which is no good for production purposethe idea is when building the python package it will convert
v0.1.2-alpha1+abcd
to0.1.2.a1.devabcd
or something like thisThe text was updated successfully, but these errors were encountered: