Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/abn/poetry-plugin-compat-env-py2
Poetry Plugin: Python 2 Environment Compatibility Patch
https://github.com/abn/poetry-plugin-compat-env-py2
Last synced: 7 days ago
JSON representation
Poetry Plugin: Python 2 Environment Compatibility Patch
- Host: GitHub
- URL: https://github.com/abn/poetry-plugin-compat-env-py2
- Owner: abn
- Created: 2022-04-29T16:00:22.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-04-29T19:29:19.000Z (over 2 years ago)
- Last Synced: 2024-11-18T07:50:03.696Z (about 1 month ago)
- Language: Python
- Size: 33.2 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Poetry Plugin: Python 2 Environment Compatibility Patch
This is a rudimentary Poetry plugin to allow users impacted by [changes in Poetry 1.2.0](https://github.com/python-poetry/poetry/issues/4752)
that removes support for management of Python 2.7 project environments.Compatibility is maintained by vendoring an older version of [`tags.py`](src/poetry_plugin_compat_env_py2/vendored/README.md)
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.
```bash
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.
```bash
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.
```bash
pip install poetry-plugin-compat-env-py2
```