Rebuild with python 3.14
This commit is contained in:
@@ -1,17 +1,32 @@
|
||||
name: python-mako
|
||||
description: A super-fast templating language that borrows the best ideas from the existing templating languages
|
||||
version: 1.3.2
|
||||
revision: 2
|
||||
revision: 3
|
||||
url: https://www.makotemplates.org/
|
||||
license: MIT
|
||||
maintainers:
|
||||
- [email protected]
|
||||
architecture: any
|
||||
output_architecture: any
|
||||
type: source
|
||||
depends:
|
||||
- python3
|
||||
- python3=3.14.*
|
||||
- python-markupsafe
|
||||
optional_depends:
|
||||
- python-babel:For i18n features
|
||||
- python-pygments:For syntax highlighting
|
||||
- python-pytest:For testing utilities
|
||||
make_depends:
|
||||
- python-build
|
||||
- python-installer
|
||||
- python-setuptools
|
||||
- python-wheel
|
||||
check_depends:
|
||||
- python-babel
|
||||
- python-pygments
|
||||
- python-pytest
|
||||
downloads:
|
||||
- url: https://github.com/sqlalchemy/mako/archive/refs/tags/rel_${BPM_PKG_VERSION//./_}.tar.gz
|
||||
extract_to: ${BPM_SOURCE}
|
||||
extract_strip_components: 1
|
||||
checksum: 0695c72d88413d0b743fbb19cbc60aa37f7bba040f67132968b60592b3b7cd34
|
||||
|
||||
@@ -2,26 +2,23 @@
|
||||
# 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://files.pythonhosted.org/packages/source/M/Mako/Mako-${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() {
|
||||
python3 -m build --wheel --no-isolation .
|
||||
}
|
||||
|
||||
# The check function is executed in the source directory
|
||||
# This function is used to run tests to verify the package has been compiled correctly
|
||||
check() {
|
||||
pytest
|
||||
}
|
||||
|
||||
# The package function is executed in the source directory
|
||||
# This function is used to move the compiled files into the output directory
|
||||
package() {
|
||||
python3 -m installer --destdir "$BPM_OUTPUT" dist/*.whl
|
||||
|
||||
install -Dm644 LICENSE "$BPM_OUTPUT"/usr/share/licenses/python-mako/LICENSE
|
||||
|
||||
# Install package license
|
||||
install -Dm644 "$BPM_SOURCE"/LICENSE "$BPM_OUTPUT"/usr/share/licenses/python-mako/LICENSE
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user