From 17a9eca72c690c246f3cb54182fb7dcd60da87bc Mon Sep 17 00:00:00 2001 From: Oscar Lesta Date: Sat, 20 Sep 2025 00:15:43 -0300 Subject: [PATCH] flit_scm: drop Python 3.9 support. Only on-tree user (exceptiongroup) already targets 3.10 only. --- dev-python/flit-scm/flit_scm-1.7.0.recipe | 21 ++++++++++----------- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/dev-python/flit-scm/flit_scm-1.7.0.recipe b/dev-python/flit-scm/flit_scm-1.7.0.recipe index d79b2db4c..ef7b2a514 100644 --- a/dev-python/flit-scm/flit_scm-1.7.0.recipe +++ b/dev-python/flit-scm/flit_scm-1.7.0.recipe @@ -4,9 +4,9 @@ your version control system, then flit_core to build the package." HOMEPAGE="https://gitlab.com/WillDaSilva/flit_scm" COPYRIGHT="2021 Will Da Silva" LICENSE="MIT" -REVISION="1" -SOURCE_URI="$HOMEPAGE/-/archive/$portVersion/flit_scm-$portVersion.tar.bz2" -CHECKSUM_SHA256="bb49e2da0da8628ed7892283d773c7f2cac46a0ee034a8e08aa557b58b222baa" +REVISION="2" +SOURCE_URI="https://files.pythonhosted.org/packages/source/${portName:0:1}/$portName/$portName-$portVersion.tar.gz" +CHECKSUM_SHA256="961bd6fb24f31bba75333c234145fff88e6de0a90fc0f7e5e7c79deca69f6bb2" ARCHITECTURES="any" @@ -21,11 +21,10 @@ 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) + +for pythonVersion in ${PYTHON_VERSIONS[@]}; do + pythonPackage=python${pythonVersion//.} eval "PROVIDES_$pythonPackage=\" ${portName}_$pythonPackage = $portVersion @@ -53,15 +52,15 @@ INSTALL() { export SETUPTOOLS_SCM_PRETEND_VERSION=$portVersion - for i in "${!PYTHON_PACKAGES[@]}"; do - pythonVersion=${PYTHON_VERSIONS[$i]} + for pythonVersion in ${PYTHON_VERSIONS[@]}; do + pythonPackage=python${pythonVersion//.} python=python$pythonVersion $python -m build --wheel --skip-dependency-check --no-isolation $python -m installer -p $prefix dist/*.whl - packageEntries ${PYTHON_PACKAGES[i]} \ + packageEntries $pythonPackage \ $prefix/lib/python* done }