Daniel M. Capella pushed to branch main at Arch Linux / Packaging / Packages / 
python-pygal


Commits:
e910f85e by loqs at 2024-03-02T19:33:58+00:00
Change to a PEP 517 based workflow

- - - - -
57037cff by loqs at 2024-03-02T19:47:22+00:00
Remove pytest-runner

- - - - -
b9b14c89 by loqs at 2024-03-02T19:50:46+00:00
Change to SPDX license identifier

https://github.com/Kozea/pygal/blob/3.0.4/setup.py#L88

- - - - -
ffd2ce13 by Daniel M. Capella at 2024-03-02T18:50:16-05:00
Bump SRCINFO

- - - - -


2 changed files:

- .SRCINFO
- PKGBUILD


Changes:

=====================================
.SRCINFO
=====================================
@@ -5,13 +5,15 @@ pkgbase = python-pygal
        epoch = 1
        url = https://www.pygal.org/en/stable/
        arch = any
-       license = LGPL3
+       license = LGPL-3.0-or-later
        checkdepends = python-pytest
        checkdepends = python-lxml
        checkdepends = python-pyquery
        checkdepends = python-cairosvg
        checkdepends = python-flask
-       makedepends = python-pytest-runner
+       makedepends = python-build
+       makedepends = python-installer
+       makedepends = python-wheel
        depends = python-setuptools
        depends = python-importlib-metadata
        optdepends = python-lxml: for XML output through lxml instead of 
xml.etree


=====================================
PKGBUILD
=====================================
@@ -8,19 +8,22 @@ pkgrel=1
 pkgdesc='A Python SVG graph plotting library'
 arch=('any')
 url='https://www.pygal.org/en/stable/'
-license=('LGPL3')
+license=('LGPL-3.0-or-later')
 depends=('python-setuptools' 'python-importlib-metadata')
 optdepends=('python-lxml: for XML output through lxml instead of xml.etree'
             'python-cairosvg: for PNG output')
-makedepends=('python-pytest-runner')
+makedepends=('python-build' 'python-installer' 'python-wheel')
 checkdepends=('python-pytest' 'python-lxml' 'python-pyquery' 'python-cairosvg' 
'python-flask')
 
source=("$pkgname-$pkgver.tar.gz::https://github.com/Kozea/pygal/archive/$pkgver.tar.gz";)
 sha256sums=('b36633ad1ec3566b56b953ef43b0452412cf54c2366efb3586f2b01912d7cdb0')
 
+prepare() {
+  sed -ri "s/'pytest-runner'(, )?//" pygal-$pkgver/setup.py
+}
 
 build() {
   cd pygal-$pkgver
-  python setup.py build
+  python -m build --wheel --no-isolation
 }
 
 check() {
@@ -30,7 +33,7 @@ check() {
 
 package() {
   cd pygal-$pkgver
-  python3 setup.py install --root="$pkgdir" --optimize=1
+  python -m installer --destdir="$pkgdir" dist/*.whl
 }
 
 # vim:set ts=2 sw=2 et:



View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/python-pygal/-/compare/c00a59559271315d21bb77a4517c384062c7be1f...ffd2ce1332135849f90bc72105c665c7beae3587

-- 
View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/python-pygal/-/compare/c00a59559271315d21bb77a4517c384062c7be1f...ffd2ce1332135849f90bc72105c665c7beae3587
You're receiving this email because of your account on gitlab.archlinux.org.


Reply via email to