Replies: 2 comments 1 reply
|
Due to Poetry's version parsing method, it interprets the version as being >= 0.1.4 and < 0.1.5, and it seems to give higher priority to versions with a "-sha" identifier. if connections with this, I found the following command in the official documentation. It is recommanded to specify the version using the following command: poetry add 'package==0.1.4'
I hope this helps. Have a great day! |
1 reply
|
According to the standard What you want is called "arbitrary equality" by the standard and not supported by Poetry. See #7256. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Problem:
When specifying a poetry add package@version i.e. (package@0.1.4) it will match package@0.1.4-sha instead of package@0.1.4 (seems like poetry assumes anything with the extra value is later than the bare version number).
Expectation:
I would expect poetry to match my exact version number I specified rather than attempting to grab a potentially earlier or later version number
Extra Info:
I did in fact verify that the bare version package is marked as latest in our server. So it's not a matter of what is marked as latest.
Is there any syntax that will actively do what is expected? Perhaps specifying with a parameter or with the use of quotes?
All reactions