new: pypa packages

This commit is contained in:
ngn 2024-08-01 23:36:11 +03:00
parent 1a08fbc0a7
commit c012ecb7bd
12 changed files with 88 additions and 2 deletions

4
sign-dist.sh Executable file
View File

@ -0,0 +1,4 @@
#!/bin/bash
for f in dist/*.mpf; do
gpg --yes --detach-sign $f
done

View File

@ -11,7 +11,7 @@ HASHES=("3a6a3dba82a3604792d3cb0bd41bca60")
DEPENDS=("glibc" "python3")
BUILD=(
"cmake" "pypa-build" "pypa-installer"
"pypa-setuptools" "pypa-wheel"
"pypa-wheel"
)
PACKAGE(){

View File

@ -11,7 +11,7 @@ HASHES=()
DEPENDS=(
"glibc" "gcc" "make" "python3" "perl"
"cmake" "pypa-wheel" "pypa-installer"
"pypa-build" "pypa-setuptools"
"pypa-build" "pypa-packaging" "pypi-flit-core"
)
BUILD=()

3
src/pypa-build/.gitignore vendored Normal file
View File

@ -0,0 +1,3 @@
.cache/
dist/
root/

View File

@ -0,0 +1,2 @@
# 1.2.1
First version

22
src/pypa-build/pkg.sh Normal file
View File

@ -0,0 +1,22 @@
# general info
NAME="pypa-build"
DESC="Simple and correct python build frontend"
VERSION="1.2.1"
# required files
FILES=("https://github.com/pypa/build/archive/refs/tags/${VERSION}.tar.gz")
HASHES=("571fbbcd187eed0e7af47dd49e8f25ab22fb9cfbde5ed1daea67c5187dad9df6")
# install and build depends
DEPENDS=("python3" "pypa-packaging")
BUILD=()
PACKAGE(){
tar xf "${VERSION}.tar.gz"
cd "build-${VERSION}"
python3 -m build --wheel --skip-dependency-check --no-isolation
PYTHONPATH=src python3 -m installer --destdir="${ROOTDIR}" dist/*.whl
cd .. && rm -r "build-${VERSION}"
}

3
src/pypa-installer/.gitignore vendored Normal file
View File

@ -0,0 +1,3 @@
.cache/
dist/
root/

View File

@ -0,0 +1,2 @@
# 0.7.0
First version

23
src/pypa-installer/pkg.sh Normal file
View File

@ -0,0 +1,23 @@
# general info
NAME="pypa-installer"
DESC="Low-level library for installing from a python wheel distribution"
VERSION="0.7.0"
# required files
FILES=("https://github.com/pypa/installer/archive/refs/tags/${VERSION}.tar.gz")
HASHES=("e1589201863a6b6f570ce2f9994febe54a8d9196e0cc54fd331cd7ffd728fb86")
# install and build depends
DEPENDS=("python3")
BUILD=()
PACKAGE(){
tar xf "${VERSION}.tar.gz"
cd "installer-${VERSION}"
python3 -m build --wheel --skip-dependency-check --no-isolation
PYTHONPATH=src python3 -m installer --destdir="${ROOTDIR}" dist/*.whl
rm "${ROOTDIR}/usr/lib/python"*/site-packages/installer/_scripts/*.exe
cd .. && rm -r "installer-${VERSION}"
}

3
src/pypa-packaging/.gitignore vendored Normal file
View File

@ -0,0 +1,3 @@
.cache/
dist/
root/

View File

@ -0,0 +1,2 @@
# 24.1
First version

22
src/pypa-packaging/pkg.sh Normal file
View File

@ -0,0 +1,22 @@
# general info
NAME="pypa-packaging"
DESC="Core utilities for Python packages"
VERSION="24.1"
# required files
FILES=("https://github.com/pypa/packaging/archive/refs/tags/${VERSION}.tar.gz")
HASHES=("45836ea0e7531c485a7d5e568f9740c7f075ff1b72a0d60422c5b76c031866428ff2137d9bd153790a9fcfff6bd4a7555bc40555409ad46debae7f1c9c1fe129")
# install and build depends
DEPENDS=("python3")
BUILD=("pypi-flit-core")
PACKAGE(){
tar xf "${VERSION}.tar.gz"
cd "packaging-${VERSION}"
python3 -m build --wheel --skip-dependency-check --no-isolation
PYTHONPATH=src python3 -m installer --destdir="${ROOTDIR}" dist/*.whl
cd .. && rm -r "packaging-${VERSION}"
}