Skip to content

Latest commit

 

History

History
29 lines (19 loc) · 1.05 KB

README.md

File metadata and controls

29 lines (19 loc) · 1.05 KB

Poetry Plugin: Python 2 Environment Compatibility Patch

This is a rudimentary Poetry plugin to allow users impacted by changes in Poetry 1.2.0 that removes support for management of Python 2.7 project environments.

Compatibility is maintained by vendoring an older version of tags.py for execution via monkey patching poetry.utils.env.VirtualEnv.get_supported_tags method.

Once installed and activated, plugin auto-detects a Python 2.7 environment when discovering tags.

Installation

The easiest way to install the compat-env-py2 plugin is via the self add command of Poetry.

poetry self add poetry-plugin-compat-env-py2

If you used pipx to install Poetry you can add the plugin via the pipx inject command.

pipx inject poetry poetry-plugin-compat-env-py2

Otherwise, if you used pip to install Poetry you can add the plugin packages via the pip install command.

pip install poetry-plugin-compat-env-py2