Poetry plugin to read Python version from .python-version file
Project description
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
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file poetry_python_version-0.0.4.tar.gz
.
File metadata
- Download URL: poetry_python_version-0.0.4.tar.gz
- Upload date:
- Size: 2.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/4.0.1 CPython/3.11.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1a5e4d7a4abdcf3256db8ebd93531b3330cacf20e4c068966d9eec831b6bfbc0 |
|
MD5 | e6b7cf51130099c0a9d542947f867adb |
|
BLAKE2b-256 | dc7acc69fef4988b0630ecadea3537d4a562a52c98e4803583fad9de528aa129 |
File details
Details for the file poetry_python_version-0.0.4-py2.py3-none-any.whl
.
File metadata
- Download URL: poetry_python_version-0.0.4-py2.py3-none-any.whl
- Upload date:
- Size: 3.6 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/4.0.1 CPython/3.11.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | fb2237970a8e5b8b34e6168f75087b32648e2460afb28cdb1160efcaecf5189f |
|
MD5 | dce4d3893dcaf7193e027a8dc1afddd3 |
|
BLAKE2b-256 | 26c746d6bbf5944eedfa327e8c677af9be16b8962a9b722233be39e755ca968c |