Is there a way to create a requirement spec which includes all ( `*` ,`x`) _pre-releases_ ? ie: ```python v = semantic_version.Version('1.0.0-rc.1') ss1 = semantic_version.SimpleSpec('>=1.0.0-*') # => Exception ``` The only thing that works is the following: ```python ss2 = semantic_version.SimpleSpec('>=1.0.0-rc') ``` It satisfies all `1.0.0-rc.*` _Versions_ including `1.0.0`
Activity
rbarrois commentedon Jan 1, 2020
Not currently; this doesn't exist for two reasons:
SimpleSpecimplements an ad-hoc matching specification, many corner cases may have been forgotten.How would you intuitively express "I want 1.0.0, including any pre-release"? Maybe we can include that in the ad-hoc spec and implement it :)
This should also:
Thanks ;)