Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Add support for beta releases (eg 3.12.0b1+) #1982

Closed
patrick91 opened this issue Jun 6, 2023 · 6 comments
Closed

Add support for beta releases (eg 3.12.0b1+) #1982

patrick91 opened this issue Jun 6, 2023 · 6 comments
Labels
⭐ enhancement Improvements for existing features

Comments

@patrick91
Copy link

I think this is the same issue as python-poetry/poetry#6925

I'm trying to use python 3.12 with pdm, but I'm getting No python is found meeting the requirement python error when doing:

pdm use python3.12

I believe it is because my installation of python has a + in the version name, 3.12.0b1+ and it is not getting parsed properly.

I installed it using asdf :)

@patrick91 patrick91 added the ⭐ enhancement Improvements for existing features label Jun 6, 2023
@frostming
Copy link
Collaborator

Does it show any candidates after Interpreters found but not matching:?

@patrick91
Copy link
Author

@frostming no, here's the full error:

pdm use /Users/patrick/.asdf/installs/python/3.12-dev/bin/python
[NoPythonVersion]: No Python interpreter matching
/Users/patrick/.asdf/installs/python/3.12-dev/bin/python is found.

btw I found that installing the version in this way:

asdf install python 3.12.0b1

make the issue go away, as the python version won't include the +, so maybe it is not worth adding support for the plus in the name?

@frostming
Copy link
Collaborator

But it is already stripped: https://github.com/frostming/findpython/blob/e440430d11053aaa2969fc117462931feadae7d7/src/findpython/python.py#L165-L168

What is the value of requires-python in pyproject.toml?

@patrick91
Copy link
Author

But it is already stripped: https://github.com/frostming/findpython/blob/e440430d11053aaa2969fc117462931feadae7d7/src/findpython/python.py#L165-L168

oh, that's odd :) maybe I can add some logs tomorrow

What is the value of requires-python in pyproject.toml?

I think it was `python>=3.7<4"

@frostming
Copy link
Collaborator

Hi, any updates? What PDM version are you on?

@frostming
Copy link
Collaborator

Closing due to no further info.

@frostming frostming closed this as not planned Won't fix, can't repro, duplicate, stale Jun 25, 2023
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
⭐ enhancement Improvements for existing features
Projects
None yet
Development

No branches or pull requests

2 participants