Skip to content

python2 deprecation warning break scripts that read from stdout #2754

@NateScarlet

Description

@NateScarlet
  • I am on the latest Poetry version.
  • I have searched the issues of this repo and believe that this is not a duplicate.
  • If an exception occurs when executing a command, I executed it again in debug mode (-vvv option).
  • OS version and name: debian and windows7
  • Poetry version: 1.1.0b2
  • Link of a Gist with the contents of your pyproject.toml file: not required

Issue

poetry run python --version > test.txt

test.txt

Python 2.7 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 2.7 projects by using the env command.
See https://python-poetry.org/docs/managing-environments/ for more information.

Python 2.7.17

I want suppress this warning but found no way to do that.

poetry -q run python --version > test.txt create a empty file.

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/bugSomething isn't working as expected

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions