Update package version to 10.0.5
This commit is contained in:
+3
-3
@@ -4,9 +4,9 @@
|
|||||||
REPO="pypa/setuptools-scm"
|
REPO="pypa/setuptools-scm"
|
||||||
|
|
||||||
# Get tag name using Github Rest API
|
# 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 '^setuptools-scm' | head -n1)
|
||||||
|
|
||||||
# Trim 'v' character in TAG_NAME variable
|
# Trim prefix
|
||||||
VERSION=$(echo "$TAG_NAME" | tr -d 'v')
|
VERSION=${TAG_NAME//setuptools-scm-v/}
|
||||||
|
|
||||||
echo "$VERSION"
|
echo "$VERSION"
|
||||||
|
|||||||
@@ -1,16 +1,25 @@
|
|||||||
name: python-setuptools-scm
|
name: python-setuptools-scm
|
||||||
description: Python package to manage your versions by scm tags
|
description: Python package to manage your versions by scm tags
|
||||||
version: 9.2.2
|
version: 10.0.5
|
||||||
revision: 1
|
revision: 1
|
||||||
url: https://github.com/pypa/setuptools-scm
|
url: https://github.com/pypa/setuptools-scm
|
||||||
license: MIT
|
license: MIT
|
||||||
|
maintainers:
|
||||||
|
- [email protected]
|
||||||
architecture: any
|
architecture: any
|
||||||
output_architecture: any
|
output_architecture: any
|
||||||
type: source
|
type: source
|
||||||
depends:
|
depends:
|
||||||
- python-packaging
|
- python-packaging
|
||||||
- python-setuptools
|
- python-setuptools
|
||||||
|
- python-vcs-versioning
|
||||||
make_depends:
|
make_depends:
|
||||||
- python-build
|
- python-build
|
||||||
- python-installer
|
- python-installer
|
||||||
- python-wheel
|
- python-wheel
|
||||||
|
downloads:
|
||||||
|
- url: https://github.com/pypa/setuptools-scm.git
|
||||||
|
type: git
|
||||||
|
clone_to: ${BPM_SOURCE}
|
||||||
|
git_branch: setuptools-scm-v${BPM_PKG_VERSION}
|
||||||
|
checksum: e2ba34f52b5d375d680c069bc3fa89c4056a9347
|
||||||
|
|||||||
@@ -2,26 +2,20 @@
|
|||||||
# BPM Expects the source code to be extracted into the automatically created 'source' directory which can be accessed using $BPM_SOURCE
|
# 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
|
# 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/setuptools-scm/archive/refs/tags/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
|
# The build function is executed in the source directory
|
||||||
# This function is used to compile the source code
|
# This function is used to compile the source code
|
||||||
build() {
|
build() {
|
||||||
|
cd setuptools-scm
|
||||||
|
|
||||||
python3 -m build --wheel --no-isolation .
|
python3 -m build --wheel --no-isolation .
|
||||||
}
|
}
|
||||||
|
|
||||||
# The package function is executed in the source directory
|
# The package function is executed in the source directory
|
||||||
# This function is used to move the compiled files into the output directory
|
# This function is used to move the compiled files into the output directory
|
||||||
package() {
|
package() {
|
||||||
|
cd setuptools-scm
|
||||||
|
|
||||||
python3 -m installer --destdir="$BPM_OUTPUT" dist/*.whl
|
python3 -m installer --destdir="$BPM_OUTPUT" dist/*.whl
|
||||||
|
|
||||||
install -Dm644 "$BPM_SOURCE"/LICENSE "$BPM_OUTPUT"/usr/share/licenses/python-setuptools-scm/LICENSE
|
install -Dm644 LICENSE "$BPM_OUTPUT"/usr/share/licenses/python-setuptools-scm/LICENSE
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user