From: Oto Šťáva Date: Tue, 20 Feb 2024 10:31:20 +0000 (+0100) Subject: manager: update Python versions X-Git-Tag: v6.0.7~20^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fenvironments%2Fdocs-develop-pyth-8k41w4%2Fdeployments%2F3304;p=thirdparty%2Fknot-resolver.git manager: update Python versions Use the oldest supported Python by default again, since that ensures our compatibility. Also, remove explicit Python versions from README to avoid duplication - `pyenv install` just installs the versions that are already in `.python-version`, so let's leverage that. --- diff --git a/manager/.python-version b/manager/.python-version index fc5ed276e..7ee56de1f 100644 --- a/manager/.python-version +++ b/manager/.python-version @@ -1,5 +1,5 @@ -3.11.7 -3.10.12 -3.9.17 -3.8.17 -3.7.17 +3.8.18 +3.9.18 +3.10.13 +3.11.8 +3.12.2 diff --git a/manager/README.md b/manager/README.md index 5e7e1bb6c..805a563e3 100644 --- a/manager/README.md +++ b/manager/README.md @@ -17,11 +17,7 @@ Be careful, that you need the latest version of Poetry. The setup was tested wit After installing the tools above, the actual fully-featured development environment can be setup using these commands: ```sh -pyenv install 3.7.17 -pyenv install 3.8.17 -pyenv install 3.9.17 -pyenv install 3.10.12 -pyenv install 3.11.4 +pyenv install poetry env use $(pyenv which python) poetry install ``` @@ -32,6 +28,8 @@ With this environment, **everything else should just work**. You can run the sam The only global tools that are strictly required are `Python` and `pip` (or other way to install PyPI packages). You can have a look at the `pyproject.toml` file, manually install all other dependencies that you need and be done with that. All `poe` commands (see bellow) can be run manually too, see their definition in `pyproject.toml`. We can't however guarantee, that there won't be any errors. +Please note that Python's development files are also required, since the Manager also includes a C module that interacts with it. I.e., for distros that package development files separately, you will typically need to install `-dev` or `-devel` packages of your current Python version as well. + ### Common tasks and interactions with the project After setting up the environment, you should be able to interract with the project by using `./poe` script. Common actions are: