PEP 440: Make examples clearer (#2898)
The PEP 440 version matching examples are confusing to read and the `1.1a1` in `== 1.1.*` is dependent on whether the user requested pre-releases or not, which I've clarified (https://github.com/pypa/packaging/issues/617)
This commit is contained in:
parent
d226c15c82
commit
a703204b82
|
@ -919,7 +919,7 @@ following clauses would match or not as shown::
|
|||
|
||||
== 1.1 # Not equal, so 1.1a1 does not match clause
|
||||
== 1.1a1 # Equal, so 1.1a1 matches clause
|
||||
== 1.1.* # Same prefix, so 1.1a1 matches clause
|
||||
== 1.1.* # Same prefix, so 1.1a1 matches clause if pre-releases are requested
|
||||
|
||||
An exact match is also considered a prefix match (this interpretation is
|
||||
implied by the usual zero padding rules for the release segment of version
|
||||
|
|
Loading…
Reference in New Issue