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 does not correctly parse platform_release marker #8175

Closed
4 tasks done
antoinea-cnty opened this issue Jul 9, 2023 · 2 comments
Closed
4 tasks done

Poetry does not correctly parse platform_release marker #8175

antoinea-cnty opened this issue Jul 9, 2023 · 2 comments
Labels
kind/bug Something isn't working as expected status/triage This issue needs to be triaged

Comments

@antoinea-cnty
Copy link

  • Poetry version: 1.5.1
  • Python version: 3.9.1
  • OS version and name: Ubuntu 20.04.1
  • I am on the latest stable Poetry version, installed using a recommended method.
  • I have searched the issues of this repo and believe that this is not a duplicate.
  • I have consulted the FAQ and blog for any relevant entries or release notes.
  • If an exception occurs when executing a command, I executed it again in debug mode (-vvv option) and have included the output below.

Issue

Trying any operation with this :

torchvision = [
    {version = "^0.15.2+cpu", markers = "platform_release != '5.19.0-1025'"}
]

in the pyprojet.toml, results in a Could not parse version constraint: 5.15.0-76-generic error.

The issue seem to be triggered by the "-gerneric" part of the string. As putting any platform release with anything else than a version number seems to trigger the issue.

At the best of my knowledge this is a PEP 508 compliant string for platform_release and should be accepted by Poetry.

@antoinea-cnty antoinea-cnty added kind/bug Something isn't working as expected status/triage This issue needs to be triaged labels Jul 9, 2023
@dimbleby
Copy link
Contributor

dimbleby commented Jul 9, 2023

duplicate #7418

@Secrus Secrus closed this as not planned Won't fix, can't repro, duplicate, stale Jul 9, 2023
Copy link

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 Feb 29, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
kind/bug Something isn't working as expected status/triage This issue needs to be triaged
Projects
None yet
Development

No branches or pull requests

3 participants