-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Extend PEP440 to include (_/-) as dev/post/pre-release separator (#334)
* Extend PEP400 to include (_/-) as pre-release seperator * lint * Simplify regex * Fix issue with repeating values * lint
- Loading branch information
Showing
15 changed files
with
137 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
"""Test for issue #333.""" | ||
|
||
# https://github.com/ludeeus/awesomeversion/issues/333 | ||
from awesomeversion import AwesomeVersion | ||
from awesomeversion.strategy import AwesomeVersionStrategy | ||
|
||
|
||
def test() -> None: | ||
"""Test for issue #333.""" | ||
version = AwesomeVersion("v3.4-rc5") | ||
assert version < "v3.6-rc2" | ||
assert version.release_candidate | ||
assert version.strategy != AwesomeVersionStrategy.UNKNOWN |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
{ | ||
"alpha": false, | ||
"beta": false, | ||
"dev": true, | ||
"major": "1", | ||
"micro": null, | ||
"minor": null, | ||
"modifier_type": "dev", | ||
"modifier": "dev1", | ||
"patch": null, | ||
"prefix": null, | ||
"release_candidate": false, | ||
"sections": 1, | ||
"simple": false, | ||
"strategy": "PEP 440", | ||
"string": "1-dev1", | ||
"valid": true, | ||
"year": "1" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
{ | ||
"alpha": false, | ||
"beta": false, | ||
"dev": true, | ||
"major": "1", | ||
"micro": null, | ||
"minor": "1", | ||
"modifier_type": "dev", | ||
"modifier": "dev1", | ||
"patch": null, | ||
"prefix": null, | ||
"release_candidate": false, | ||
"sections": 2, | ||
"simple": false, | ||
"strategy": "PEP 440", | ||
"string": "1.1-dev1", | ||
"valid": true, | ||
"year": "1" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
{ | ||
"alpha": false, | ||
"beta": false, | ||
"dev": true, | ||
"major": "1", | ||
"micro": null, | ||
"minor": "1", | ||
"modifier_type": null, | ||
"modifier": null, | ||
"patch": null, | ||
"prefix": null, | ||
"release_candidate": false, | ||
"sections": 2, | ||
"simple": false, | ||
"strategy": "PEP 440", | ||
"string": "1.1_dev1", | ||
"valid": true, | ||
"year": "1" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
{ | ||
"alpha": false, | ||
"beta": false, | ||
"dev": true, | ||
"major": "1", | ||
"micro": null, | ||
"minor": null, | ||
"modifier_type": null, | ||
"modifier": null, | ||
"patch": null, | ||
"prefix": null, | ||
"release_candidate": false, | ||
"sections": 1, | ||
"simple": false, | ||
"strategy": "PEP 440", | ||
"string": "1_dev1", | ||
"valid": true, | ||
"year": "1" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -47,6 +47,9 @@ | |
"1.0.post456.dev34", | ||
"1.0.post456", | ||
"1.1.dev1", | ||
"1.1-dev1", | ||
"1.1dev1", | ||
"1.1_dev1", | ||
) | ||
], | ||
*[ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters