[arch-commits] Commit in python-tomlkit/trunk (PKGBUILD)

Caleb Maclennan alerque at gemini.archlinux.org
Mon Mar 28 11:40:24 UTC 2022


    Date: Monday, March 28, 2022 @ 11:40:24
  Author: alerque
Revision: 1177365

upgpkg: python-tomlkit 0.10.1-1; switch build to PEP517

Modified:
  python-tomlkit/trunk/PKGBUILD

----------+
 PKGBUILD |   12 +++++++-----
 1 file changed, 7 insertions(+), 5 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2022-03-28 09:59:18 UTC (rev 1177364)
+++ PKGBUILD	2022-03-28 11:40:24 UTC (rev 1177365)
@@ -4,7 +4,7 @@
 
 _pkgname=tomlkit
 pkgname=python-tomlkit
-pkgver=0.10.0
+pkgver=0.10.1
 pkgrel=1
 pkgdesc="Style-preserving TOML library for Python"
 url="https://github.com/sdispater/tomlkit"
@@ -11,15 +11,17 @@
 license=('MIT')
 arch=('any')
 depends=('python')
-makedepends=('python-setuptools')
+makedepends=('python-build'
+             'python-installer'
+             'python-poetry')
 checkdepends=('python-pytest'
               'python-yaml')
 source=("https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/${_pkgname}/${_pkgname}-${pkgver}.tar.gz")
-sha512sums=('05d03ae71a1d72ca0e03276f2b2530ca9fab7d6f366166a79839c66eaa00b55abb5f70a669ecb4d762dbbd655f10e4c4a373a7683cd781ae034d0910a0c3eccf')
+sha512sums=('a5082b88a9b3832393d860258dd7584ed05788777d4c1dd98415bfb7c64acf8f77eaf18c3fcf824913d999ffa37b4481675b3fce9b8af8ef9c1be0712ad622a9')
 
 build() {
   cd tomlkit-$pkgver
-  python setup.py build
+  python -m build -wn
 }
 
 check() {
@@ -29,6 +31,6 @@
 
 package() {
   cd tomlkit-$pkgver
-  python setup.py install --root="$pkgdir" --optimize=1 --skip-build
+  python -m installer -d "$pkgdir" dist/*.whl
   install -Dm0644 -t "$pkgdir/usr/share/licenses/$pkgname/" LICENSE
 }



More information about the arch-commits mailing list