Jelle van der Waa pushed to branch main at Arch Linux / Packaging / Packages / 
python-parse


Commits:
95beae24 by Jelle van der Waa at 2023-08-21T22:34:20+02:00
Update to 1.19.1-1

Switch to pyproject.toml for building as setup.py is deprecated.

- - - - -


1 changed file:

- PKGBUILD


Changes:

=====================================
PKGBUILD
=====================================
@@ -2,8 +2,8 @@
 # Contributor: Aaron DeVore <[email protected]>
 
 pkgname=python-parse
-pkgver=1.19.0
-pkgrel=4
+pkgver=1.19.1
+pkgrel=1
 
 pkgdesc='Parse strings using a specification based on the Python format() 
syntax.'
 url='https://pypi.python.org/pypi/parse'
@@ -11,15 +11,14 @@ arch=('any')
 license=('BSD')
 
 depends=('python')
-makedepends=('python-setuptools')
+makedepends=(python-setuptools python-build python-installer python-wheel)
 
-source=("https://pypi.org/packages/source/p/parse/parse-$pkgver.tar.gz";)
-
-sha256sums=('9ff82852bcb65d139813e2a5197627a94966245c897796760a3a2a8eb66f020b')
+source=(${pkgname}-${pkgver}.tar.gz::https://github.com/r1chardj0n3s/parse/archive/refs/tags/${pkgver}.tar.gz)
+sha256sums=('0d8433f324d5ca207914e58fbb5bbfe0386b2327170d9f9f926aa1396af961d0')
 
 build() {
   cd "$srcdir"/parse-$pkgver
-  python setup.py build
+  python -m build --wheel --no-isolation
 }
 
 check() {
@@ -30,6 +29,6 @@ check() {
 
 package() {
   cd "$srcdir"/parse-$pkgver
-  python setup.py install --root="$pkgdir" --optimize=1
+  python -m installer --destdir="$pkgdir" dist/*.whl
   install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
 }



View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/python-parse/-/commit/95beae24c646f0c1434f9cf9ef678b9293ae5595

-- 
View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/python-parse/-/commit/95beae24c646f0c1434f9cf9ef678b9293ae5595
You're receiving this email because of your account on gitlab.archlinux.org.


Reply via email to