Evangelos Foutras pushed to branch main at Arch Linux / Packaging / Packages / 
python-jinja


Commits:
1fd74cd3 by loqs at 2024-04-09T21:03:22+00:00
Change to a PEP 517 based workflow

- - - - -


1 changed file:

- PKGBUILD


Changes:

=====================================
PKGBUILD
=====================================
@@ -12,7 +12,7 @@ arch=('any')
 url="https://palletsprojects.com/p/jinja/";
 license=('BSD-3-Clause')
 depends=('python' 'python-markupsafe')
-makedepends=('python-setuptools')
+makedepends=('python-build' 'python-installer' 'python-setuptools' 
'python-wheel')
 optdepends=('python-babel: for i18n support')
 checkdepends=('python-pytest')
 
source=($_name-$pkgver.tar.gz::https://github.com/pallets/jinja/archive/refs/tags/$pkgver.tar.gz)
@@ -24,7 +24,7 @@ prepare() {
 
 build() {
   cd $_name-$pkgver
-  python3 setup.py build
+  python -m build --wheel --no-isolation
 }
 
 check() {
@@ -42,7 +42,7 @@ check() {
 
 package() {
   cd $_name-$pkgver
-  python3 setup.py install --root="$pkgdir" --optimize=1 --skip-build
+  python -m installer -d "$pkgdir" dist/*.whl
   install -Dm644 LICENSE.rst -t "$pkgdir/usr/share/licenses/$pkgname"
 }
 



View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/python-jinja/-/commit/1fd74cd35062c61b4b42692d845635e8cb3e99c7

-- 
This project does not include diff previews in email notifications.
View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/python-jinja/-/commit/1fd74cd35062c61b4b42692d845635e8cb3e99c7
You're receiving this email because of your account on gitlab.archlinux.org.


Reply via email to