Poetry Python Version
This is a proof-of-concept work. Please add tests for your use-case. Thank you!
This plugins reads .python-version file and sets the python version for the project where it is used.
Installation
poetry self add poetry-python-version
# if you use pipx to install poetry
pipx inject poetry poetry-python-version
Usage
If you are using .python-version file you might want to set the python
version for the project automatically. This plugin does exactly that.
It targets application developers that don't want to define Python version
in multiple places and their preferred way is to use .python-version file.
Once you have correctly installed this plugin and your project contains
.python-version file you will see following output when you run poetry install:
Setting Python version from .python-version file
Current Package Python versions: 3.11.*
Current PyProject dependencies Python: 3.11.*
New Package Python versions: 3.11.3
New PyProject dependencies Python: 3.11.3
Development
Long TODO list
- tests
- configuration options
- documentation
Metadata
Release files for poetry-python-version 0.0.6
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| poetry_python_version-0.0.6.tar.gz | 2.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| poetry_python_version-0.0.6-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details |
Total release size: 6.4 kB
Release files / poetry_python_version-0.0.6.tar.gz
| Download URL | poetry_python_version-0.0.6.tar.gz |
|---|---|
| Size | 2.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6a989edd1ebf3eddd2331b4523c2fc582caec4d9e58b52233b7a6eea5e526a07
|
|
BLAKE2b-256 checksum How to use checksums |
d638c6931885405ceeb9e0428b80a9e57903f09b9775cc1ad1a5f59b6fdfd773
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/4.0.1 CPython/3.11.4
|
Release files / poetry_python_version-0.0.6-py2.py3-none-any.whl
| Download URL | poetry_python_version-0.0.6-py2.py3-none-any.whl |
|---|---|
| Size | 3.6 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
6800e7b7b00631b3131d9619182535f969cbd6ea4eb39b128b6914155af4c49e
|
|
BLAKE2b-256 checksum How to use checksums |
c5ba51fd8e81a478d1a7cabf02773ac36e690995cde1ca927ab4950ece0d6698
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/4.0.1 CPython/3.11.4
|