-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Poetry doesn't handle developmental releases #2963
Comments
Hello @hoefling, can you try it with poetry 1.1.0rc1 please? fin swimmer |
Hi @finswimmer, indeed, adding dev releases to dependencies works with 1.1.0rc1, e.g. |
@finswimmer As a FYI, in case it's helpful: I am having this same problem with the latest
Have this in my pyproject.toml file:
This works on poetry |
@joshorr the combination of the above two PRs should fix the issue. $ poetry add [email protected]
Updating dependencies
Resolving dependencies... (0.5s)
Writing lock file
Package operations: 7 installs, 0 updates, 0 removals
• Installing asgiref (3.3.4)
• Installing pytz (2021.1)
• Installing sqlparse (0.4.1)
• Installing django (3.2)
• Installing django-filter (2.4.0)
• Installing djangorestframework (3.12.4)
• Installing djangorestframework-filters (1.0.0.dev0) |
These PRs should also resolve this issue. $ poetry add tf-nightly
Creating virtualenv fizz in /tmp/fizz/.venv
Using version ^2.6.0-dev.20210422 for tf-nightly
Updating dependencies
Resolving dependencies... (26.0s)
Writing lock file
Package operations: 38 installs, 0 updates, 0 removals
• Installing certifi (2020.12.5)
• Installing chardet (4.0.0)
• Installing idna (2.10)
• Installing pyasn1 (0.4.8)
• Installing urllib3 (1.26.4)
• Installing cachetools (4.2.1)
• Installing oauthlib (3.1.0)
• Installing pyasn1-modules (0.2.8)
• Installing requests (2.25.1)
• Installing rsa (4.7.2)
• Installing setuptools (56.0.0)
• Installing six (1.15.0)
• Installing google-auth (1.29.0)
• Installing requests-oauthlib (1.3.0)
• Installing absl-py (0.12.0)
• Installing google-auth-oauthlib (0.4.4)
• Installing grpcio (1.37.0)
• Installing markdown (3.3.4)
• Installing numpy (1.19.5)
• Installing protobuf (3.15.8)
• Installing tensorboard-data-server (0.6.0)
• Installing tensorboard-plugin-wit (1.8.0)
• Installing werkzeug (1.0.1)
• Installing wheel (0.36.2)
• Installing astunparse (1.6.3)
• Installing flatbuffers (1.12)
• Installing gast (0.4.0)
• Installing google-pasta (0.2.0)
• Installing h5py (3.1.0)
• Installing keras-nightly (2.6.0.dev2021042200)
• Installing keras-preprocessing (1.1.2)
• Installing opt-einsum (3.3.0)
• Installing tb-nightly (2.5.0a20210419)
• Installing termcolor (1.1.0)
• Installing tf-estimator-nightly (2.6.0.dev2021042201)
• Installing typing-extensions (3.7.4.3)
• Installing wrapt (1.12.1)
• Installing tf-nightly (2.6.0.dev20210422) |
@abn that worked! Thank you so much!!!! When using gemfury (3rd party private pypi) with this latest master, it's much faster (80 seconds vs 19 seconds to resolve everything via The other other thing that's not working is when a version requirement is like this:
This works on 1.1.6, see this poetry doc about "^0": https://python-poetry.org/docs/versions/ I have a work around though, I just do a ">=0.0.0,<1.0.0" instead, that works. I'll try to make a new issue if you desire later today. I don't see any other issues about the "^0" problem. |
Maybe raise another issue with the details so we can figure out if it's an issue. Happy to take a look :) |
* dependency: mark unstable releases as prerelease Relates-to: python-poetry/poetry#2963 * semver: fix base class checks Relates-to: python-poetry/poetry#2963
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
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: Fedora 32
Poetry version: 1.0.10 / 1.1.b3 / master are all affected
Link of a Gist with the contents of your pyproject.toml file:
Issue
To reproduce from scratch:
This is the first problem, looks like the same issue though:
tf-estimator-nighlty
dependency can't be resolved. Adding it manually seems to be a quick workaround:$ poetry add tf-estimator-nightly Using version ^2.4.0-alpha.2020092501 for tf-estimator-nightly Updating dependencies Resolving dependencies... (0.2s) Writing lock file Package operations: 10 installs, 0 updates, 0 removals ... - Installing tf-estimator-nightly (2.4.0.dev2020092501)
Note the discrepancy between versions: the correct one is installed (
2.4.0.dev2020092501
), the one recorded inpyproject.toml
(2.4.0-alpha.2020092501
) doesn't exist.Now adding the actual dependency works:
$ poetry add tf-nightly Using version ^2.4.0-alpha.20200925 for tf-nightly Updating dependencies Resolving dependencies... (1.2s) Writing lock file Package operations: 33 installs, 0 updates, 0 removals ... - Installing tf-nightly (2.4.0.dev20200925)
Inspecting the metadata of a wheel built with
poetry build
:An attempt to install the wheel now fails:
The reason for this is that
2.4.0-alpha.20200925
is normalized to2.4.0a20200925
according to PEP 440, which is a prerelease, not a developmental release. Surely, "publishing developmental releases on a public index is discouraged", but still possible, and this is one example of resulting dependency resolution failure.The text was updated successfully, but these errors were encountered: