Skip to main content

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

poetry_python_version-0.0.5.tar.gz (2.8 kB view details)

Uploaded Source

Built Distribution

poetry_python_version-0.0.5-py2.py3-none-any.whl (3.6 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file poetry_python_version-0.0.5.tar.gz.

File metadata

  • Download URL: poetry_python_version-0.0.5.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

Hashes for poetry_python_version-0.0.5.tar.gz
Algorithm Hash digest
SHA256 25f4c6f47c56c45fa3500e14cad4d9056d27d312a9f5000d77dd15c2a2f7b925
MD5 88ffa89522925919da8ba31defa6d16c
BLAKE2b-256 df690ad359a4a3582f10d94aa03b4e1474c8db273221f397bf25a1806279e063

See more details on using hashes here.

File details

Details for the file poetry_python_version-0.0.5-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for poetry_python_version-0.0.5-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 8fef10dbf45104a226d1ed0263ca633978d5da02da26795c405823dfa034b5c2
MD5 965c0358c666ce99fbb2cf53b9849e43
BLAKE2b-256 3793b3f969f3ee3a53dce59118faea9cd7886c77c7d4158712ea11da4bc5630f

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page