Update package version to 3.0.3
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Github repository
|
||||
REPO="pallets/markupsafe"
|
||||
|
||||
# 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')
|
||||
|
||||
echo "$TAG_NAME"
|
||||
@@ -1,10 +1,21 @@
|
||||
name: python-markupsafe
|
||||
description: Implements a XML/HTML/XHTML Markup safe string for Python
|
||||
version: 2.1.5
|
||||
revision: 3
|
||||
version: 3.0.3
|
||||
revision: 1
|
||||
url: https://palletsprojects.com/p/markupsafe/
|
||||
license: BSD-3-Clause
|
||||
architecture: any
|
||||
depends: ["glibc","python3"]
|
||||
make_depends: ["python-build","python-installer","python-setuptools","python-wheel"]
|
||||
type: source
|
||||
depends:
|
||||
- glibc
|
||||
- python3
|
||||
make_depends:
|
||||
- python-build
|
||||
- python-installer
|
||||
- python-setuptools
|
||||
- python-wheel
|
||||
downloads:
|
||||
- url: https://github.com/pallets/markupsafe/releases/download/${BPM_PKG_VERSION}/markupsafe-${BPM_PKG_VERSION}.tar.gz
|
||||
extract_to: ${BPM_SOURCE}
|
||||
extract_strip_components: 1
|
||||
checksum: 722695808f4b6457b320fdc131280796bdceb04ab50fe1795cd540799ebe1698
|
||||
|
||||
@@ -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://pypi.org/packages/source/M/MarkupSafe/MarkupSafe-${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() {
|
||||
@@ -24,5 +14,5 @@ package() {
|
||||
python3 -m installer --destdir "$BPM_OUTPUT" dist/*.whl
|
||||
|
||||
# Install package license
|
||||
install -Dm644 "$BPM_SOURCE"/LICENSE.rst "$BPM_OUTPUT"/usr/share/licenses/python-markupsafe/LICENSE.rst
|
||||
install -Dm644 "$BPM_SOURCE"/LICENSE.txt "$BPM_OUTPUT"/usr/share/licenses/python-markupsafe/LICENSE
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user