Felix Yan pushed to branch main at Arch Linux / Packaging / Packages / python-pyaml
Commits: 535bbcc3 by loqs at 2024-03-05T20:14:13+00:00 Call unittest module directly - - - - - d1218880 by loqs at 2024-03-05T20:15:05+00:00 Change to a PEP 517 based workflow - - - - - e0635391 by loqs at 2024-03-05T20:26:19+00:00 Change to SPDX license identifier https://github.com/mk-fg/pretty-yaml/blob/7c2351a0ffe24c0bc6ca5e4c36c3735df0228176/COPYING - - - - - 1 changed file: - PKGBUILD Changes: ===================================== PKGBUILD ===================================== @@ -5,10 +5,10 @@ pkgver=23.9.0 pkgrel=1 pkgdesc="PyYAML-based module to produce pretty and readable YAML-serialized data" url="https://pypi.python.org/pypi/pyaml" -license=('BSD') +license=('WTFPL') arch=('any') depends=('python-yaml') -makedepends=('python-setuptools') +makedepends=('python-setuptools' 'python-build' 'python-installer' 'python-wheel') checkdepends=('python-unidecode') optdepends=('python-unidecode: Needed if same-id objects or recursion is used within serialized data') source=("https://pypi.io/packages/source/p/pyaml/pyaml-$pkgver.tar.gz") @@ -16,16 +16,16 @@ sha512sums=('1ff23e07e45d6530b6666a26947362a6bb2125b731dd03501aafe9096766a38fec7 build() { cd pyaml-$pkgver - python setup.py build + python -m build --wheel --no-isolation } check() { cd pyaml-$pkgver - python setup.py test + python -m unittest -v } package() { cd pyaml-$pkgver - python setup.py install --root="$pkgdir" --optimize=1 + python -m installer --destdir="$pkgdir" dist/*.whl install -Dm644 COPYING -t "$pkgdir"/usr/share/licenses/$pkgname/ } View it on GitLab: https://gitlab.archlinux.org/archlinux/packaging/packages/python-pyaml/-/compare/0701e1d3f36edbaa21e7108322f1cffa7f6d03b5...e0635391e3b4e302a37dbd273e28dbaad4c2a86c -- View it on GitLab: https://gitlab.archlinux.org/archlinux/packaging/packages/python-pyaml/-/compare/0701e1d3f36edbaa21e7108322f1cffa7f6d03b5...e0635391e3b4e302a37dbd273e28dbaad4c2a86c You're receiving this email because of your account on gitlab.archlinux.org.
