How to disable Poetry 1.1 warnings?
See original GitHub issueI’d like to hide:
Python 3.5 will no longer be supported in the next feature release of Poetry (1.2).
You should consider updating your Python version to a supported one.
Note that you will still be able to manage Python 3.5 projects by using the env command.
See https://python-poetry.org/docs/managing-environments/ for more information.
Issue Analytics
- State:
- Created 3 years ago
- Reactions:2
- Comments:16 (5 by maintainers)
Top Results From Across the Web
Introduction | Documentation | Poetry - Python dependency ...
Warning. Poetry 1.1 series releases are not able to update in-place to 1.2 or newer series releases. To migrate to newer releases, uninstall...
Read more >Dependency Management With Python Poetry
When creating a new Poetry project, you'll receive a basic folder structure right away. Remove ads. Inspect the Project Structure. The rp_poetry ......
Read more >poetry - PyPI
Poetry : Python packaging and dependency management made easy ... Poetry helps you declare, manage and install dependencies of Python projects, ensuring you...
Read more >CVE-2022-36070 Detail - NVD
References to Advisories, Solutions, and Tools ; https://github.com/python-poetry/poetry/releases/tag/1.1.9, Release Notes Third Party Advisory.
Read more >Poetry fails whenever I try to run cicd in GitHub Actions
toml. You may be getting outdated dependencies. Run update to update them. . I've tried to delete poetry.lock and run poetry ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Is there any chance of getting
get-poetry.pyto usepython3when it exists, in preference topython, especially now that python 2 support will be deprecated? Maybe at least ifget-poetry.pyis itself run underpython3? This has been an issue for ages (#1042, #1257, #1494, #1878, #2106, #2222, #2352, #2547, among others); it was even briefly fixed in master until reverted by #2544. There was some more recent discussion about it in https://github.com/python-poetry/poetry/pull/2547#discussion_r449025727 too.Specifically,
I don’t think that’s what actually happens in this case – it uses the first executable it finds that works, so even if the active interpreter for
get-poetry.pyispython3, if there’s apythoninstalled it uses it instead, causing this issue.On all the Ubuntu 18.04 and 20.04 systems I run,
pythonis 2.7,python3is 3.x, and Poetry won’t usepython3unless there’s nopythonavailable at all, no matter what the installer is run with. Consequently I still have to leave a note in my installation instructions to tell people to modify the shebang in.poetry/bin/poetryto usepython3which I’d really like to avoid. It’s not a great first experience of using Poetry!I originally posted this as a comment in #3184 (closed).
I would also expect that if running get-poetry.py with python3,
python3would be used for the shebang line. Even when I explicitly use python3 to install Poetry, I still get bothered by a big warning that Python 2 support is about to be dropped.Sure, it’s easy enough to adjust the shebang line manually, but not when installing Poetry in an automated way.
How about simply changing the following line in get-poetry.py
to
This first tries Python 3, which doesn’t spit out a big warning message. In fact, this is how it is done for Windows:
Is there any reason why this would need to be different in Windows and Linux/MacOS?