internal library dosen't get version from git repo
See original GitHub issue-
I am on the latest Poetry version.
-
I have searched the issues of this repo and believe that this is not a duplicate.
-
If an exception occurs when executing a command, I executed it again in debug mode (
-vvv
option). -
OS version and name: MacOS 11.1 (20C69)
-
Poetry version:
1.1.13
(tried also on1.2.0b1
) -
- Link of a Gist with the contents of your pyproject.toml file: in the issues
Issue
I have a repo A
that is using 2 other repos B
and C
C
is also using B
A’s pyproject.toml
B = {git = "<B's github repo>", branch = "my-branch"}
C = {version="^0.5.8"}
B’s pyproject.toml (in my-branch
branch)
[tool.poetry]
name = "B"
version = "0.31.0"
C’s pyproject.toml
B = {version=">=0.30"}
The current versions of B
in my PyPI server are (0.30.0 || 0.30.1 || 0.30.2 || 0.30.3 || 0.30.4)
It seems that when locking C
inside A
, C’s not aware B
’s version is acceptable
Because no versions of B match >0.30,<0.30.1 || >0.30.1,<0.30.2 || >0.30.2,<0.30.3 || >0.30.3,<0.30.4 || >0.30.4
and B (0.30.0) depends on B (0.30.0), B (>=0.30,<0.30.1 || >0.30.1,<0.30.2 || >0.30.2,<0.30.3 || >0.30.3,<0.30.4 || >0.30.4) requires B (0.30.0).
And because B (0.30.1) depends on B (0.30.1)
and B (0.30.2) depends on B (0.30.2), B (>=0.30,<0.30.3 || >0.30.3,<0.30.4 || >0.30.4) requires B (0.30.0 || 0.30.1 || 0.30.2).
And because B (0.30.3) depends on B (0.30.3)
and B (0.30.4) depends on B (0.30.4), B (>=0.30) requires B (0.30.0 || 0.30.1 || 0.30.2 || 0.30.3 || 0.30.4).
Because no versions of C match >0.5.8
and C (0.5.8) depends on B (>=0.30), C (>=0.5.8) requires B (>=0.30).
Thus, C (>=0.5.8) requires B (0.30.0 || 0.30.1 || 0.30.2 || 0.30.3 || 0.30.4).
And because B (rev my-branch) depends on B (rev my-branch), C (>=0.5.8) is incompatible with B (rev my-branch).
So, because A depends on both B (branch my-branch) and C (>=0.5.8), version solving failed.
I tried to publish my-branch
as a beta branch, changed A
’s to use this version, and still had the same issue
Issue Analytics
- State:
- Created a year ago
- Reactions:4
- Comments:17 (8 by maintainers)
Top Results From Across the Web
Get current version of repository - git - Stack Overflow
Get the last version of a repository (online). I can only compare the two, but it doesn't give me any information about the...
Read more >git - How do you put different versions of your library under ...
Before using version control, I used to do something like this. I had a folder with the name of the library, inside many...
Read more >It is possible to add a dependency of a private git repo? #835
I've just stated to use poetry, I quite like some of the features, but i'm now stuck since installing a private repo doesn't...
Read more >Git - Submodules - Git SCM
Submodules allow you to keep a Git repository as a subdirectory of another Git repository. This lets you clone another repository into your...
Read more >Source Control with Git in Visual Studio Code
Make sure Git is installed. VS Code will use your machine's Git installation (at least version 2.0.0 ), so you need to install...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I removed the problematic sckitlearn package and now the solving is finishes successfully 100% of the time the issue now is that it can’t get a valid version of
uvicorn
(albus is from my private repo)but reading the
-vvv
logs I do see that it found a valid versionright after locking the file, I see those logs (and those are the only libs with extras)
Albus’s pyproject
pyproject of the repo I’m trying to update
full logs are attached poetry.log
@dimbleby still no repo but a major update