Closed phdenzel closed 3 months ago
We should probably introduce a pre-release versioning scheme, so we don't have conflicts with PyPI and especially Test PyPI.
We should probably introduce a pre-release versioning scheme, so we don't have conflicts with PyPI and especially Test PyPI.
We could add the git hash to the version, but I don't see an immediate option to achieving this with hatch / pip / build.
We should probably introduce a pre-release versioning scheme, so we don't have conflicts with PyPI and especially Test PyPI.
We could add the git hash to the version, but I don't see an immediate option to achieving this with hatch / pip / build.
I figured out how to skip the test-pypi build when the version already exists... so, if we need to test a new build, we just have to change the version manually. I think that's good enough for now, everything else is automated.
We should probably introduce a pre-release versioning scheme, so we don't have conflicts with PyPI and especially Test PyPI.
We could add the git hash to the version, but I don't see an immediate option to achieving this with hatch / pip / build.
I figured out how to skip the test-pypi build when the version already exists... so, if we need to test a new build, we just have to change the version manually. I think that's good enough for now, everything else is automated.
Never mind my previous reply, there is hatch version [version string]
. The version string has to be PEP440 compliant. PEP440 defines both a "public" and a "local" version string.
So, after a release, we could bumb the patch version and add a dev1
. E.g. 0.0.1 -> 0.0.2.dev1
Then, using the local version, we can do the following: 0.0.2.dev1+[commit hash]
Workflow "executive summary":
0.0.1.dev3 -> 0.0.1.dev4
)0.0.1 -> 0.0.2
)Ready to be merged from my side.