Skip to content
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 appears to install the incorrect version. #5030

Closed
blueforesticarus opened this issue Jan 12, 2022 · 3 comments · Fixed by python-poetry/poetry-core#264
Closed

Poetry appears to install the incorrect version. #5030

blueforesticarus opened this issue Jan 12, 2022 · 3 comments · Fixed by python-poetry/poetry-core#264
Labels
area/core Related to the poetry-core library kind/bug Something isn't working as expected

Comments

@blueforesticarus
Copy link

blueforesticarus commented Jan 12, 2022

With this in pyproject.toml

[tool.poetry.dependencies]
javascript = "1!0.2.14"

poetry appears to install version "1!0.2.1" instead.
when running poetry install after deleting poetry.lock and running poetry env remove on the existing env, it prints:
• Installing javascript (1!0.2.1)

additionally, it doesn't actually install it, just creates a bdist-info folder in the virtual-env
I have verified that I cannot import javascript from an interpreter started in the poetry shell

$ pwd
/home/.cache/pypoetry/virtualenvs/test-D_mNwSVp-py3.9/lib/python3.9/site-packages
$ fd javascript
javascript-1!0.2.1.dist-info

pypi link: https://pypi.org/project/javascript/1!0.2.14/

using python 3.9.9, installed as non-default.
poetry version 1.1.12

@blueforesticarus blueforesticarus added kind/bug Something isn't working as expected status/triage This issue needs to be triaged labels Jan 12, 2022
@blueforesticarus
Copy link
Author

[tool.poetry]
name = "test"
version = "0.1.0"
description = ""
authors = ["Erich Spaker <[email protected]>"]

[tool.poetry.dependencies]
python = ">=3.8,<3.10"
javascript = "1!0.2.14"

[tool.poetry.dev-dependencies] 

[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"

@radoering
Copy link
Member

It seems that version epochs are not supported currently. Probably duplicate of #892.

Copy link

github-actions bot commented Mar 2, 2024

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.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 2, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area/core Related to the poetry-core library kind/bug Something isn't working as expected
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants