Task Todo List Remove hardcoded python version strings

2023-01-13 - David Runge

To have less manual interaction with PKGBUILDs when upgrading the Python interpreter, the version strings should not be hardcoded (e.g. `python3.10`).

To get the (major.minor) version string of the Python available during build, use [1]:

```
local python_version=$(python -c 'import sys; print(".".join(map(str, sys.version_info[:2])))')
```

To get the site-packages directory of the Python available during build, use [2]:

```
local site_packages=$(python -c "import site; print(site.getsitepackages()[0])")
```

[1] https://wiki.archlinux.org/title/Python_package_guidelines#Using_python_version
[2] https://wiki.archlinux.org/title/Python_package_guidelines#Using_site-packages

Link to lists of pkgbase values:

Filter Todo List Packages

Select filter criteria
79 packages displayed out of 79 total packages.
Arch Repository Name Current Version Staging Version Maintainers Status Last Touched By
x86_64 Extra boost 1.81.0-2 foutrelis Complete foutrelis
any Extra deluge 1:2.1.1-3 heftig Complete heftig
x86_64 Community displaycal 3.9.10-1 Archange Complete blakkheim
any Community flake8 1:6.0.0-1 jelle Complete jelle
x86_64 Community gnuradio 3.10.5.0-3 kkeen Complete dvzrv
x86_64 Core gpgme 1.18.0-2 tpowa, eworm Complete dvzrv
x86_64 Extra libpst 0.6.76-9 heftig Complete heftig
x86_64 Extra libreoffice-fresh 7.5.0-1 andyrtr Complete andyrtr
x86_64 Extra libreoffice-still 7.4.5-1 andyrtr Complete andyrtr
x86_64 Extra libvoikko 4.3.1-2 felixonmars Complete jelle
x86_64 Community mayavi 4.8.1-4 Complete dvzrv
x86_64 Community meshroom 2021.1.0-9 svenstaro Complete dvzrv
x86_64 Community ninja 1.11.1-2 anatolik Complete anatolik
x86_64 Community opencc 1.1.6-1 felixonmars Complete jelle
x86_64 Community paraview 5.10.1-12 Archange Complete dvzrv
any Community pifpaf 3.1.5-5 felixonmars Complete blakkheim
any Community pylama 7.7.1-8 felixonmars Complete jelle
any Community python-aenum 3.1.11-3 alucryd Complete alucryd
any Community python-alt-pytest-asyncio 0.6.0-1 felixonmars Complete blakkheim
any Community python-auditwheel 5.3.0-1 FFY00 Complete jelle
any Community python-cloudflare 2.11.1-1 felixonmars Complete jelle
x86_64 Community python-cymem 2.0.7-1 felixonmars Complete jelle
any Community python-freezegun 1.2.2-1 grawlinson Complete dvzrv
any Community python-fs 2.4.16-1 felixonmars Complete jelle
x86_64 Community python-gevent 22.10.2-1 felixonmars Complete blakkheim
any Community python-gitlab 3.13.0-1 svenstaro Complete dvzrv
any Community python-hatch-vcs 0.3.0-2 felixonmars Complete jelle
any Community python-hypothesis 6.59.0-1 FFY00 Complete blakkheim
any Community python-ini2toml 0.11.3-2 felixonmars Complete jelle
any Community python-isort 5.12.0-1 alerque Complete alerque
any Community python-keyring 23.11.0-1 FFY00 Complete blakkheim
any Community python-memory-profiler 0.61-2 Complete dvzrv
x86_64 Extra python-numpy 1.24.1-1 felixonmars Complete dvzrv
any Community python-poetry-plugin-export 1.2.0-1 felixonmars Complete blakkheim
any Community python-pook 1.1.1-2 felixonmars Complete blakkheim
any Community python-prettytable 3.6.0-2 felixonmars Complete blakkheim
any Community python-pytest-asyncio 0.20.3-2 felixonmars, anthraxx Complete blakkheim
any Community python-pytest-bdd 6.1.1-1 felixonmars Complete blakkheim
any Community python-pytest-bdd5 5.0.0-1 felixonmars Complete blakkheim
any Community python-pytest-benchmark 4.0.0-1 felixonmars Complete blakkheim
any Community python-pytest-black 0.3.12-7 felixonmars, FFY00 Complete blakkheim
any Community python-pytest-cov 4.0.0-1 felixonmars, FFY00 Complete blakkheim
any Community python-pytest-django 4.5.2-3 felixonmars Complete blakkheim
any Community python-pytest-flake8 1.1.1-1 FFY00 Complete blakkheim
any Community python-pytest-forked 1.4.0-2 felixonmars Complete blakkheim
any Community python-pytest-freezegun 0.4.2-6 foxxx0 Complete dvzrv
any Community python-pytest-httpbin 1.0.2-1 felixonmars Complete blakkheim
any Community python-pytest-httpx 0.21.3-1 felixonmars Complete blakkheim
any Community python-pytest-isort 3.1.0-1 felixonmars, FFY00 Complete blakkheim
any Community python-pytest-localserver 0.7.1-1 felixonmars Complete blakkheim
any Community python-pytest-mypy 0.10.3-2 felixonmars, FFY00 Complete jelle
any Community python-pytest-pylint 0.19.0-2 Complete dvzrv
any Community python-pytest-raises 0.11-3 felixonmars Complete jelle
any Community python-pytest-relaxed 2.0.0-1 felixonmars Complete jelle
any Community python-pytest-repeat 0.9.1-4 felixonmars Complete jelle
any Community python-pytest-sugar 0.9.6-1 felixonmars, FFY00 Complete jelle
any Community python-pytest-timeout 2.1.0-1 felixonmars, FFY00 Complete jelle
any Community python-pytest-tornado 0.8.1-4 felixonmars, FFY00 Complete jelle
any Community python-pytest-xdist 3.2.0-1 felixonmars, FFY00 Complete jelle
any Community python-softlayer 6.1.3-1 felixonmars Complete jelle
any Community python-spec 1.4.1-3 felixonmars Complete jelle
any Community python-sqlalchemy-migrate 0.13.0-10 Complete dvzrv
any Community python-stestr 4.0.1-2 felixonmars Complete jelle
any Community python-threadloop 1.0.2-6 felixonmars Complete jelle
x86_64 Community python-tornado 6.2.0-2 felixonmars, FFY00 Complete jelle
any Community python-trio-asyncio 0.12.0-6 alucryd Complete alucryd
any Extra python-validate-pyproject 0.12.1-1 felixonmars Complete dvzrv
x86_64 Community python-vmprof 0.4.15-4 dvzrv Complete dvzrv
any Community python-wheel 0.38.4-1 felixonmars, Foxboron Complete blakkheim
any Community python-yarg 0.1.9-8 felixonmars Complete jelle
any Community salt 3005.1-2 demize, Foxboron Complete blakkheim
x86_64 Extra subversion 1.14.2-6 felixonmars Complete jelle
x86_64 Community tensorboard 2.11.0-3 svenstaro, kgizdov Complete dvzrv
any Community thefuck 3.32-4 felixonmars, FFY00 Complete jelle
any Community towncrier 22.12.0-1 felixonmars Complete jelle
any Community translate-toolkit 3.8.3-1 jlichtblau, lfleischer Complete blakkheim
x86_64 Community vigra 1.11.1.r67+g093d57d1-6 Archange Complete dvzrv
x86_64 Community vtk 9.1.0-26 Archange Complete dvzrv
x86_64 Community yosys 0.24-3 felixonmars, FFY00 Complete dvzrv