Add constraint and version utils#1375
Conversation
fd68e4c to
6adcec1
Compare
|
what problem is this solving and how does it relate to #1268? |
|
| @@ -0,0 +1,48 @@ | |||
| """ | |||
There was a problem hiding this comment.
this looks like duplicated code from semver/constraint_utils.py.
There was a problem hiding this comment.
The difference is that this uses Version.parse whereas the constraint code uses parse_single_constraint and, AFAIK, the constraints are not versions (although versions can be constraints, the distinction stands).
| ("*", True), | ||
| ("*.*", True), | ||
| ("v*.*", True), | ||
| ("*.x.*", True), |
There was a problem hiding this comment.
i don't know these and they look strange to me.
There was a problem hiding this comment.
They are present elsewhere in poetry tests, this is a copy-n-paste and I don't know where they come from either. The point of this is just to use what poetry already has in it's tests on the methods wrapped by the boolean utils.
| ("1.2.3b5", True), | ||
| (">= 1.2.3", True), | ||
| (">dev", True), | ||
| ("n.a.n", False), |
There was a problem hiding this comment.
same comment as above, these are already in poetry tests; only added an n.a.n to be sure that it doesn't match a constraint because it's all chars but otherwise matches the pattern.
6adcec1 to
2ee6526
Compare
|
@funkyfuture - thanks for code review, tried to address most of the requests, just a couple questions or tweaks remain; will follow-up if time permits. |
2ee6526 to
6577287
Compare
- boolean checks for a constraint/version string - filter & sort a sequence of constraint/version strings - use existing poetry methods for constraints & versions
6577287 to
af60778
Compare
|
This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
|
Thanks for marking my contributions as stale. Despite my best efforts to contribute, the poetry review and merge cycles are too slow. This is discouraging for updating and further contributions. |
|
I make no comment on whether this MR was stale or useful when the stalebot involved itself - but it certainly is stale now. I expect that contributor has no interest in reviving this and it can now safely be closed. |
|
Closing as stale (and probably merging hell at this point). |
|
Yea, I've totally lost interest in contributing to poetry. |
|
This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Add constraint/version utils for boolean checks and sorting