From 8daf5fd92630a2b1e786baeb724cf58f813709b8 Mon Sep 17 00:00:00 2001 From: EnumDev Date: Fri, 25 Sep 2026 19:55:19 +0300 Subject: [PATCH] Downgrade package version to 6.1.3p1 --- check-version.sh | 5 ++++- info.yml | 6 +++--- recipe.sh | 6 ++++++ 3 files changed, 13 insertions(+), 4 deletions(-) diff --git a/check-version.sh b/check-version.sh index fd7e909..ed9ef66 100644 --- a/check-version.sh +++ b/check-version.sh @@ -4,9 +4,12 @@ REPO="lxml/lxml" # Get tag name using Github Rest API -TAG_NAME=$(curl -s -L -H "X-GitHub-Api-Version: 2022-11-28" -H "Authorization: token ${GITHUB_API_TOKEN}" https://api.github.com/repos/"$REPO"/releases/latest | jq -r '.tag_name') +TAG_NAME=$(curl -s -L -H "X-GitHub-Api-Version: 2022-11-28" -H "Authorization: token ${GITHUB_API_TOKEN}" https://api.github.com/repos/"$REPO"/releases | jq -r '.[].tag_name' | grep -v -E 'a|b' | head -n1) # Trim prefix VERSION=${TAG_NAME//lxml-/} +# Replace '-' with 'p' +VERSION=${VERSION//-/p} + echo "$VERSION" diff --git a/info.yml b/info.yml index 1596196..8346fd3 100644 --- a/info.yml +++ b/info.yml @@ -1,6 +1,6 @@ name: python-lxml description: XML and HTML with Python -version: 7.0.0b1-1 +version: 6.1.3p1 revision: 1 url: https://lxml.de/ license: BSD-3-Clause, custom @@ -20,7 +20,7 @@ make_depends: - python-setuptools - python-wheel downloads: - - url: https://github.com/lxml/lxml/archive/refs/tags/lxml-${BPM_PKG_VERSION}.tar.gz + - url: https://github.com/lxml/lxml/archive/refs/tags/lxml-${BPM_PKG_VERSION//p/-}.tar.gz extract_to: ${BPM_SOURCE} extract_strip_components: 1 - checksum: cb6eb4c1048298676263bb2c4a73abd560f33c5a584537375decc3dd6b86420f + checksum: 857147ad8a1e989becff2c653ffbd7cf825b5584b952e827accc4d16b4413e3a diff --git a/recipe.sh b/recipe.sh index d29be03..54ee7fd 100644 --- a/recipe.sh +++ b/recipe.sh @@ -2,6 +2,12 @@ # BPM Expects the source code to be extracted into the automatically created 'source' directory which can be accessed using $BPM_SOURCE # BPM Expects the output files to be present in the automatically created 'output' directory which can be accessed using $BPM_OUTPUT +# The prepare function is executed in the root of the temp directory +# This function is used for putting downloaded files to the correct location or applying patches +prepare() { + sed -i 's/Cython>=3.2.9,<3.3/Cython>=3.2.9/g' "$BPM_SOURCE"/{pyproject.toml,requirements.txt} +} + # The build function is executed in the source directory # This function is used to compile the source code build() {