gitea deps
This commit is contained in:
parent
89cc95a46e
commit
fc0a078719
@ -13,6 +13,7 @@ deps=(
|
|||||||
'maturin'
|
'maturin'
|
||||||
'python'
|
'python'
|
||||||
)
|
)
|
||||||
|
|
||||||
build_deps=(
|
build_deps=(
|
||||||
'bzip2'
|
'bzip2'
|
||||||
'libgcc'
|
'libgcc'
|
||||||
@ -26,6 +27,19 @@ build_deps=(
|
|||||||
'rust'
|
'rust'
|
||||||
)
|
)
|
||||||
|
|
||||||
|
build_deps_almalinux=(
|
||||||
|
'bzip2'
|
||||||
|
'libgcc'
|
||||||
|
'git'
|
||||||
|
'glibc'
|
||||||
|
'python3-build'
|
||||||
|
'python3-installer'
|
||||||
|
'python3-setuptools'
|
||||||
|
'python3-setuptools-rust'
|
||||||
|
'python3.12-wheel'
|
||||||
|
'rust'
|
||||||
|
)
|
||||||
|
|
||||||
options=(!lto)
|
options=(!lto)
|
||||||
sources=("https://github.com/PyO3/maturin/archive/v$version/maturin-v$version.tar.gz")
|
sources=("https://github.com/PyO3/maturin/archive/v$version/maturin-v$version.tar.gz")
|
||||||
checksums=('SKIP')
|
checksums=('SKIP')
|
||||||
|
59
python3-setuptools-rust/alr.sh
Normal file
59
python3-setuptools-rust/alr.sh
Normal file
@ -0,0 +1,59 @@
|
|||||||
|
name='python3-setuptools-rust'
|
||||||
|
version='1.10.1'
|
||||||
|
release='1'
|
||||||
|
desc='Compile and distribute Python extensions written in rust as easily as if they were written in C.'
|
||||||
|
homepage='https://github.com/PyO3/setuptools-rust'
|
||||||
|
maintainer_ru='Евгений Храмов <xpamych@yandex.ru>'
|
||||||
|
architectures=('all')
|
||||||
|
license=('MIT')
|
||||||
|
provides=('setuptools-rust')
|
||||||
|
conflicts=('setuptools-rust')
|
||||||
|
|
||||||
|
deps=(
|
||||||
|
'rust'
|
||||||
|
'python3-setuptools'
|
||||||
|
'python3-semantic-version'
|
||||||
|
)
|
||||||
|
|
||||||
|
build_deps=(
|
||||||
|
'git'
|
||||||
|
'python3-build'
|
||||||
|
'python3-installer'
|
||||||
|
'python3-wheel'
|
||||||
|
'python3-setuptools-scm'
|
||||||
|
)
|
||||||
|
|
||||||
|
build_deps_almalinux=(
|
||||||
|
'git'
|
||||||
|
'python3-build'
|
||||||
|
'python3-installer'
|
||||||
|
'python3-setuptools-wheel'
|
||||||
|
'python3-setuptools-scm'
|
||||||
|
)
|
||||||
|
|
||||||
|
sources=("git+https://github.com/PyO3/setuptools-rust.git#tag=v$version")
|
||||||
|
checksums=('SKIP')
|
||||||
|
|
||||||
|
build() {
|
||||||
|
cd setuptools-rust
|
||||||
|
python -m build -nw
|
||||||
|
}
|
||||||
|
|
||||||
|
check() {
|
||||||
|
cd setuptools-rust
|
||||||
|
local python_version=$(python -c 'import sys; print(".".join(map(str, sys.version_info[:2])))')
|
||||||
|
for _dir in examples/*; do
|
||||||
|
pushd $_dir
|
||||||
|
PYTHONPATH="$PWD/../.." python -m build -nw
|
||||||
|
python -m installer -d tmp_install dist/*.whl
|
||||||
|
[[ -d tests || -d test ]] && PYTHONPATH="$PWD/tmp_install/usr/lib/python$python_version/site-packages" pytest tests
|
||||||
|
popd
|
||||||
|
done
|
||||||
|
pytest --doctest-modules setuptools_rust
|
||||||
|
}
|
||||||
|
|
||||||
|
package() {
|
||||||
|
cd setuptools-rust
|
||||||
|
python -m installer -d "$pkgdir" dist/*.whl
|
||||||
|
install-license LICENSE ./python-setuptools-rust/LICENSE
|
||||||
|
}
|
64
python3-setuptools-scm/alr.sh
Normal file
64
python3-setuptools-scm/alr.sh
Normal file
@ -0,0 +1,64 @@
|
|||||||
|
_name=setuptools_scm
|
||||||
|
name='python3-setuptools-scm'
|
||||||
|
version='8.1.0'
|
||||||
|
release='1'
|
||||||
|
desc='Handles managing your python package versions in scm metadata.'
|
||||||
|
homepage='https://github.com/pypa/setuptools_scm'
|
||||||
|
maintainer_ru='Евгений Храмов <xpamych@yandex.ru>'
|
||||||
|
architectures=('all')
|
||||||
|
license=('MIT')
|
||||||
|
provides=('python-setuptools-scm')
|
||||||
|
conflicts=('python-setuptools-scm')
|
||||||
|
|
||||||
|
deps=(
|
||||||
|
'python3-packaging'
|
||||||
|
'python3-setuptools'
|
||||||
|
)
|
||||||
|
|
||||||
|
build_deps=(
|
||||||
|
'git'
|
||||||
|
'python3-build'
|
||||||
|
'python3-installer'
|
||||||
|
'python3-wheel'
|
||||||
|
'mercurial'
|
||||||
|
'python3-pip'
|
||||||
|
'python3-pytest'
|
||||||
|
'python3-rich'
|
||||||
|
)
|
||||||
|
|
||||||
|
build_deps_almalinux=(
|
||||||
|
'git'
|
||||||
|
'python3-build'
|
||||||
|
'python3-installer'
|
||||||
|
'python3-setuptools-wheel'
|
||||||
|
'python3-pip'
|
||||||
|
'python3-pytest'
|
||||||
|
'python3-rich'
|
||||||
|
)
|
||||||
|
|
||||||
|
sources=("git+https://github.com/pypa/setuptools_scm.git#tag=v$version")
|
||||||
|
checksums=('SKIP')
|
||||||
|
|
||||||
|
build() {
|
||||||
|
cd $_name
|
||||||
|
python -m build --wheel --skip-dependency-check --no-isolation
|
||||||
|
}
|
||||||
|
|
||||||
|
check() {
|
||||||
|
cd $_name
|
||||||
|
python -m venv --system-site-packages test-env
|
||||||
|
test-env/bin/python -m installer dist/*.whl
|
||||||
|
# test_pyproject_support https://gitlab.archlinux.org/archlinux/packaging/packages/python-setuptools-scm/-/issues/1
|
||||||
|
test-env/bin/python -m pytest -vk 'not test_not_owner and not test_pyproject_support'
|
||||||
|
}
|
||||||
|
|
||||||
|
package() {
|
||||||
|
cd $_name
|
||||||
|
python -m installer --destdir="$pkgdir" dist/*.whl
|
||||||
|
|
||||||
|
# Symlink license file
|
||||||
|
local site_packages=$(python -c "import site; print(site.getsitepackages()[0])")
|
||||||
|
install -d "$pkgdir"/usr/share/licenses/python3-setuptools-scm
|
||||||
|
ln -s "$site_packages"/$_name-$version.dist-info/LICENSE \
|
||||||
|
"$pkgdir"/usr/share/licenses/python3-setuptools-scm/LICENSE
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user