Jelle van der Waa pushed to branch main at Arch Linux / Packaging / Packages / python-pynacl
Commits: 519773de by Jelle van der Waa at 2024-04-22T10:47:07+02:00 Convert license to SPDX - - - - - 50838189 by Jelle van der Waa at 2024-04-22T10:58:35+02:00 Update to 1.5.0 This release only brings typing as notable change. Apart from the bump, PEP517 is now utilized, the tests run and python-six has not been a runtime dependency for a while. - - - - - 2 changed files: - .SRCINFO - PKGBUILD Changes: ===================================== .SRCINFO ===================================== @@ -1,18 +1,22 @@ pkgbase = python-pynacl pkgdesc = Python binding to the Networking and Cryptography (NaCl) library - pkgver = 1.4.0 - pkgrel = 8 + pkgver = 1.5.0 + pkgrel = 1 url = https://pypi.python.org/pypi/PyNaCl arch = x86_64 - license = Apache + license = Apache-2.0 + checkdepends = python-pytest + checkdepends = python-hypothesis makedepends = python-setuptools makedepends = python-pycparser makedepends = python-wheel + makedepends = python-build + makedepends = python-installer + makedepends = python-wheel depends = libsodium depends = python - depends = python-six depends = python-cffi - source = https://pypi.org/packages/source/P/PyNaCl/PyNaCl-1.4.0.tar.gz - sha512sums = 355b974010f94d551f631a2dd5ae792da3d4d0abf8ed70b6decc78aad24a9f965636988aebd14947b137ea14cdcbb73531775f08b1b4d5a9d72b5df3dba0b022 + source = https://pypi.org/packages/source/P/PyNaCl/PyNaCl-1.5.0.tar.gz + sha512sums = cea3e4556432588630382abae6debf9203c7f55da286509da547a7921e4dbad98c915743625c68e5f7187fcaf6d4cdaf7ed2ed3ba60bd4c10ae6e3f88608dc65 pkgname = python-pynacl ===================================== PKGBUILD ===================================== @@ -2,33 +2,40 @@ # Contributor: Ivan Shapovalov <inte...@intelfx.name> pkgname=python-pynacl -pkgver=1.4.0 -pkgrel=8 +pkgver=1.5.0 +pkgrel=1 pkgdesc='Python binding to the Networking and Cryptography (NaCl) library' url='https://pypi.python.org/pypi/PyNaCl' arch=('x86_64') -license=('Apache') +license=('Apache-2.0') -depends=('libsodium' 'python' 'python-six' 'python-cffi') -makedepends=('python-setuptools' 'python-pycparser' 'python-wheel') +depends=('libsodium' 'python' 'python-cffi') +makedepends=('python-setuptools' 'python-pycparser' 'python-wheel' 'python-build' 'python-installer' 'python-wheel') +checkdepends=('python-pytest' 'python-hypothesis') source=("https://pypi.org/packages/source/P/PyNaCl/PyNaCl-$pkgver.tar.gz") -sha512sums=('355b974010f94d551f631a2dd5ae792da3d4d0abf8ed70b6decc78aad24a9f965636988aebd14947b137ea14cdcbb73531775f08b1b4d5a9d72b5df3dba0b022') +sha512sums=('cea3e4556432588630382abae6debf9203c7f55da286509da547a7921e4dbad98c915743625c68e5f7187fcaf6d4cdaf7ed2ed3ba60bd4c10ae6e3f88608dc65') build() { export SODIUM_INSTALL=system cd "$srcdir"/PyNaCl-$pkgver - python setup.py build + python -m build --wheel --no-isolation +} + +check() { + cd "$srcdir"/PyNaCl-$pkgver + local python_version=$(python -c 'import sys; print("".join(map(str, sys.version_info[:2])))') + PYTHONPATH="$PWD/build/lib.linux-$CARCH-cpython-$python_version" pytest } package() { export SODIUM_INSTALL=system cd PyNaCl-$pkgver - python setup.py install --root="$pkgdir" --optimize=1 --skip-build + python -m installer --destdir="$pkgdir" dist/*.whl } # vim: set ts=4 sw=4 tw=0 ft=PKGBUILD : View it on GitLab: https://gitlab.archlinux.org/archlinux/packaging/packages/python-pynacl/-/compare/171c7082e8e87343585f34e29446d02a0bac0b63...508381890a8e9a07af1c71a761c70c656df6a52c -- This project does not include diff previews in email notifications. View it on GitLab: https://gitlab.archlinux.org/archlinux/packaging/packages/python-pynacl/-/compare/171c7082e8e87343585f34e29446d02a0bac0b63...508381890a8e9a07af1c71a761c70c656df6a52c You're receiving this email because of your account on gitlab.archlinux.org.