Metadata-Version: 2.1
Name: poetry-python-version
Version: 0.0.3
Summary: Poetry plugin to read Python version from .python-version file
Home-page: https://github.com/jirikuncar/poetry-python-version
License: MIT
Author: Jiri Kuncar
Author-email: jiri.kuncar@gmail.com
Requires-Python: >=3.7,<4.0
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Requires-Dist: poetry (>=1.5,<2.0)
Project-URL: Repository, https://github.com/jirikuncar/poetry-python-version
Description-Content-Type: text/markdown

# 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

```bash
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

