-
Notifications
You must be signed in to change notification settings - Fork 9
Semver compliance is broken #5
Comments
OK- There is one mention of |
Same issue here. We use semantic versioning, but the final semver is from our 'master' branch, while we have a pre-release branch called 'develop' as well. Each PRs merged into our pre-release 'develop' branch receives an auto-generated semver of '..-develop.'. So I agree, the pattern should allow anything after ... I personally would like to include this full version (incl the pre-release postfix) in the PKG-INFO, so that we will know from the logs that it's a pre-release. $ poetry build |
I am seeing the same thing:
This issue is breaking setup-scmversion. We use semantic_version to validate a well-formed semantic version, while poetry just checks if a string matches a def __init__(self, version): # type: (str) -> None
# Validate the version and parse it into pieces
match = VERSION_PATTERN.match(version)
if not match:
raise InvalidVersion("Invalid version: '{0}'".format(version)) Would it be too much to ask to have the version compliance validation delegated to some library outside of poetry, or at the very least use poetry's own |
Same use case I think, I want to create a version from the git hash as pre-release
to create temporary versions of a library, but poetry doesn't consider it valid |
Same thing here. What are the updates on this? |
Seems to me that poetry implements PEP 440, which disagress with SemVer. |
Is there any update on this? Thanks |
Hello? |
@simonsuthers @ypicard You might not be lucky in receiving an answer here, as the separate Disclaimer: I am part of neither project. |
According to semver 2.0 specification (mentioned in official poetry docs), there is no special requirements for pre-release suffix- namely:
https://semver.org/#spec-item-9
Therefore a version like:
is valid and should be treated as
pre-release
one. In other words when semver range specified like this:such pre-release should be ommited. That would suggest necessity of adding
development
flag to mix to also support suchpre-release
versions (for example the same way as helm charts do).In my case I'm unable to send such library with exception as follows:
And there is no mention of treating pre-release packages according to scheme I/semver docs describe above.
The text was updated successfully, but these errors were encountered: