Update package version to 3.1.6

This commit is contained in:
2026-05-06 14:01:15 +03:00
parent 62eeda5678
commit ca0ee4e4f8
3 changed files with 27 additions and 16 deletions
+2 -12
View File
@@ -2,20 +2,10 @@
# 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/J/Jinja2/Jinja2-${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() {
python -m build --wheel --no-isolation .
python -m build --wheel --skip-dependency-check --no-isolation .
}
# The package function is executed in the source directory
@@ -24,5 +14,5 @@ package() {
python3 -m installer --destdir "$BPM_OUTPUT" dist/*.whl
# Install package license
install -Dm644 LICENSE.rst "$BPM_OUTPUT"/usr/share/licenses/python-jinja/LICENSE.rst
install -Dm644 LICENSE.txt "$BPM_OUTPUT"/usr/share/licenses/python-jinja/LICENSE.txt
}