bottle: drop Python 3.9 support.

The only on-tree user of bottle (youcompleteme), already is 3.10 only.
This commit is contained in:
Oscar Lesta
2025-09-19 16:32:26 -03:00
committed by OscarL
parent 773dc55cd8
commit 532affa684

View File

@@ -14,7 +14,7 @@ bjoern, gae, cherrypy or any other WSGI capable HTTP server."
HOMEPAGE="https://bottlepy.org"
COPYRIGHT="2016 Marcel Hellkamp"
LICENSE="MIT"
REVISION="1"
REVISION="2"
SOURCE_URI="https://pypi.io/packages/source/b/bottle/bottle-$portVersion.tar.gz"
CHECKSUM_SHA256="e1a9c94970ae6d710b3fb4526294dfeb86f2cb4a81eff3a4b98dc40fb0e5e021"
ARCHITECTURES="any"
@@ -30,13 +30,12 @@ BUILD_REQUIRES="
haiku_devel
"
PYTHON_PACKAGES=(python39 python310)
PYTHON_VERSIONS=(3.9 3.10)
for i in "${!PYTHON_PACKAGES[@]}"; do
pythonPackage=${PYTHON_PACKAGES[i]}
pythonVersion=${PYTHON_VERSIONS[$i]}
PYTHON_VERSIONS=(3.10)
eval "PROVIDES_${pythonPackage}=\"
for pythonVersion in ${PYTHON_VERSIONS[@]}; do
pythonPackage=python${pythonVersion//.}
eval "PROVIDES_$pythonPackage=\"
${portName}_$pythonPackage = $portVersion
cmd:bottle.py
\""
@@ -56,11 +55,10 @@ done
INSTALL()
{
for i in "${!PYTHON_PACKAGES[@]}"; do
pythonPackage=${PYTHON_PACKAGES[i]}
pythonVersion=${PYTHON_VERSIONS[$i]}
for pythonVersion in ${PYTHON_VERSIONS[@]}; do
pythonPackage=python${pythonVersion//.}
python=python$pythonVersion
installLocation=$prefix/lib/$python/vendor-packages/
export PYTHONPATH=$installLocation:$PYTHONPATH