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

Support Python 3.9 #2154

Closed
2 tasks done
cjolowicz opened this issue Mar 8, 2020 · 2 comments
Closed
2 tasks done

Support Python 3.9 #2154

cjolowicz opened this issue Mar 8, 2020 · 2 comments
Labels
kind/feature Feature requests/implementations

Comments

@cjolowicz
Copy link

  • I have searched the issues of this repo and believe that this is not a duplicate.
  • I have searched the documentation and believe that my question is not covered.

Feature Request

It would be great if Poetry could support Python 3.9 early on, to allow testing projects against the upcoming Python version. Python 3.9 is currently in its alpha phase, with the final release planned for 2020-10-05 (see Release Schedule).

Currently Poetry cannot be run under Python 3.9 because this Python version is not included in the vendorized dependencies. The workaround for this is to install Poetry using pip. Here is a minimal Dockerfile to reproduce the issue:

FROM python:3.9.0a4
RUN curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py | python
ENV PATH /root/.poetry/bin:$PATH
ENTRYPOINT ["poetry"]
$ docker build -t poetry .

$ docker run --rm -ti poetry --version
Traceback (most recent call last):
  File "/root/.poetry/bin/poetry", line 12, in <module>
    from poetry.console import main
  File "/root/.poetry/lib/poetry/console/__init__.py", line 1, in <module>
    from .application import Application
  File "/root/.poetry/lib/poetry/console/application.py", line 1, in <module>
    from cleo import Application as BaseApplication
ModuleNotFoundError: No module named 'cleo'

$ docker run --rm -ti --entrypoint sh poetry
# ls /root/.poetry/lib/poetry/_vendor
py2.7  py3.5  py3.6  py3.7  py3.8
@cjolowicz
Copy link
Author

Fixed in #2696

Copy link

github-actions bot commented Mar 3, 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 3, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
kind/feature Feature requests/implementations
Projects
None yet
Development

No branches or pull requests

1 participant