From 4648dcdb42efa1b90995fa1332484c63779b8ee0 Mon Sep 17 00:00:00 2001 From: Oscar Lesta Date: Fri, 19 Sep 2025 16:59:02 -0300 Subject: [PATCH] editorconfig_core_py: drop Python 3.9 support. Only user on-tree (jdtextedit) is 3.10 only already. --- .../editorconfig_core_py-0.12.3.recipe | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/dev-python/editorconfig-core-py/editorconfig_core_py-0.12.3.recipe b/dev-python/editorconfig-core-py/editorconfig_core_py-0.12.3.recipe index ae3863417..133e0819c 100644 --- a/dev-python/editorconfig-core-py/editorconfig_core_py-0.12.3.recipe +++ b/dev-python/editorconfig-core-py/editorconfig_core_py-0.12.3.recipe @@ -9,7 +9,7 @@ website." HOMEPAGE="https://editorconfig.org/" COPYRIGHT="2011-2018 EditorConfig Team" LICENSE="BSD (2-clause)" -REVISION="1" +REVISION="2" pyName="EditorConfig" SOURCE_URI="https://pypi.io/packages/source/${pyName:0:1}/$pyName/$pyName-$portVersion.tar.gz" CHECKSUM_SHA256="57f8ce78afcba15c8b18d46b5170848c88d56fd38f05c2ec60dbbfcb8996e89e" @@ -28,14 +28,13 @@ BUILD_REQUIRES=" haiku_devel " -PYTHON_PACKAGES=(python39 python310) -PYTHON_VERSIONS=(3.9 3.10) +PYTHON_VERSIONS=(3.10) defaultVersion=3.10 -for i in "${!PYTHON_PACKAGES[@]}"; do - pythonPackage=${PYTHON_PACKAGES[i]} - pythonVersion=${PYTHON_VERSIONS[$i]} - eval "PROVIDES_${pythonPackage}=\" +for pythonVersion in ${PYTHON_VERSIONS[@]}; do + pythonPackage=python${pythonVersion//.} + + eval "PROVIDES_$pythonPackage=\" ${portName}_$pythonPackage = $portVersion cmd:editorconfig_$pythonVersion \"" @@ -62,9 +61,8 @@ 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/