python-poetry / poetry

Python packaging and dependency management made easy
https://python-poetry.org
MIT License
31.48k stars 2.27k forks source link

poetry install fails on pre-release #1876

Closed hixus closed 2 years ago

hixus commented 4 years ago

Issue

When I run poetry add cloudml-hypertune everything works but when ci-machine runs poetry install it fails with "Because model-xxx depends on cloudml-hypertune (^0.1.0-alpha.6) which doesn't match any versions, version solving failed."

Running poetry update cloudml-hypertune also installs latest pre-release version (0.1.0.dev6) correctly

hixus commented 4 years ago

Workaround in ci is to run poetry remove cloudml-hypertune && poetry install && poetry add --allow-prereleases cloudml-hypertune

hixus commented 4 years ago

Actually better solution is to use just {version = "*", allow-prereleases = true} Not sure if this is a issue with poetry old the cloudml-hypertune package. Poetry says Installing cloudml-hypertune (0.1.0.dev6) but in the pyproject.toml we get cloudml-hypertune = {version = "^0.1.0.dev6", allow-prereleases = true}

abn commented 2 years ago

Your linked pyproject.toml file has ^0.1.0-alpha.6 which is a nonexistant version. So, I'd imagine your CI tries to use the pyproject file to try find the version and fails.

mkniewallner commented 2 years ago

Closing, since it's a quite old issue that is most likely obsolete, and we didn't hear back from the author.

If you still reproduce the issue with recent versions of Poetry, feel free to reopen the issue.

github-actions[bot] commented 7 months ago

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.