Update package version to 1.28.0

This commit is contained in:
2025-12-13 10:50:28 +02:00
parent ad367cb7e7
commit 0082fa0c77
3 changed files with 21 additions and 11 deletions
+15
View File
@@ -0,0 +1,15 @@
#!/bin/bash
# Github repository
REPO="pypa/hatch"
# 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"/tags | jq -r '.[].name' | grep '^hatchling-' | head -n1)
# Get version number from tag name
VERSION=$(echo "$TAG_NAME" | cut -d'-' -f2)
# Trim 'v' character in VERSION variable
VERSION=$(echo "$VERSION" | tr -d 'v')
echo "$VERSION"
+6 -1
View File
@@ -1,6 +1,6 @@
name: python-hatchling
description: This is the extensible, standards compliant build backend used by Hatch
version: 1.27.0
version: 1.28.0
revision: 1
url: https://github.com/pypa/hatch/tree/master/backend
license: MIT
@@ -17,3 +17,8 @@ depends:
make_depends:
- python-build
- python-installer
downloads:
- url: https://github.com/pypa/hatch/archive/hatchling-v${BPM_PKG_VERSION}.tar.gz
extract_to: ${BPM_SOURCE}
extract_strip_components: 1
checksum: 3a52e40675ab341eab0720fe22cbd82b6a0d18a6445e2ce6bb9aebb831ca79cd
-10
View File
@@ -2,16 +2,6 @@
# 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
DOWNLOAD="https://github.com/pypa/hatch/archive/hatchling-v${BPM_PKG_VERSION}.tar.gz"
FILENAME="${DOWNLOAD##*/}"
# The prepare function is executed in the root of the temp directory
# This function is used for downloading files and putting them into the correct location
prepare() {
wget "$DOWNLOAD"
tar -xvf "$FILENAME" --strip-components=1 -C "$BPM_SOURCE"
}
# The build function is executed in the source directory
# This function is used to compile the source code
build() {