Chih-Hsuan Yen pushed to branch main at Arch Linux / Packaging / Packages / python-pypugjs
Commits: 1c75e43f by Chih-Hsuan Yen at 2024-01-09T01:38:58+08:00 Switching to PEP 517 [1] Also drops the comment about PyPI sdists, which are now discouraged [1] [1] https://archlinux.org/todo/use-pyprojecttoml-for-building-if-supported/ [2] https://rfc.archlinux.page/0020-sources-for-python-packaging/ - - - - - 1 changed file: - PKGBUILD Changes: ===================================== PKGBUILD ===================================== @@ -8,17 +8,23 @@ pkgdesc='PugJS syntax adapter for Django, Jinja2 and Mako templates' url='https://github.com/kakulukia/pypugjs' depends=(python python-six python-charset-normalizer) optdepends=(python-django python-jinja python-tornado python-mako python-markdown) -makedepends=(python-setuptools ${optdepends[@]}) +makedepends=(python-build python-installer python-setuptools python-wheel ${optdepends[@]}) checkdepends=(python-nose) license=(MIT) arch=(any) -# PyPI sdist does not contain tests source=("https://github.com/kakulukia/pypugjs/archive/v$pkgver/pypugjs-$pkgver.tar.gz") sha256sums=('a13a78aa26e05613a3d6a7551a08895139a2053978000a3d8a8e3c44f24f3c64') +prepare() { + cd pypugjs-$pkgver + # avoid using upstream pyproject.toml as it seems unmaintained + # out-dated version= value, missing metadata fields, excessive dependencies + rm -v pyproject.toml +} + build() { cd pypugjs-$pkgver - python setup.py build + python -m build --wheel --no-isolation } check() { @@ -29,6 +35,6 @@ check() { package() { cd pypugjs-$pkgver - python setup.py install --root="$pkgdir" --optimize=1 --skip-build + python -m installer --destdir="$pkgdir" dist/*.whl install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname } View it on GitLab: https://gitlab.archlinux.org/archlinux/packaging/packages/python-pypugjs/-/commit/1c75e43f2788591c5c01941780ab28e7a08982e0 -- View it on GitLab: https://gitlab.archlinux.org/archlinux/packaging/packages/python-pypugjs/-/commit/1c75e43f2788591c5c01941780ab28e7a08982e0 You're receiving this email because of your account on gitlab.archlinux.org.