forked from Plemya-x/alr-repo
gitea deps
This commit is contained in:
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
|
||||
}
|
Reference in New Issue
Block a user