Poetry seems to be resolving the wrong dev package version #6766
Unanswered
erichjzimmerman
asked this question in
Q&A
Replies: 2 comments 9 replies
-
|
I'll have to ask @dimbleby or @radoering to confirm, but I suspect it's the use of local labels, which are defined by PEP 440 to be considered a newer version than a version without a local label, as I understand it. |
Beta Was this translation helpful? Give feedback.
7 replies
-
|
Can you reproduce it with poetry 1.2? (There have been many bugfixes, some also concerning the handling of pre-releases.) |
Beta Was this translation helpful? Give feedback.
2 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.
-
I am currently using Poetry 1.1.14 (not the latest). Honestly, the jump from 1.0.x to 1.1.x was difficult, so we're not in a big hurry to get to 1.2.x, although I'm sure we will eventually.
We are installing from a local repository, which has the following packages:
In our pyproject.toml, we specify:
my-testcore = "15.0.0b14"
When I try
poetry lock -vvv, eventually I see the following line:private: 1 packages found for sonos-testcore 15.0.0b14And later, when dependencies are being resolved, I see
1: fact: my-testcore (15.0.0b14.dev1+swpbl181056normalizingversion.9f23458d) depends on allure-pytest (2.6.5)Apparently, it is resolving to that dev package, when I would THINK it would resolve to the non-dev package if one is available (15.0.0b14).
We don't seem to run into this problem when using non-beta version (e.g. 16.0.0 vs 15.0.0b14), so I'm wondering if there is an issue with the resolution process.
Is this expected behavior, and I'm just not doing something right?
It's complicated, because we are using pre-release versions AND dev packages, so I'm just trying to navigate this.
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions