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

Caleb Maclennan alerque at gemini.archlinux.org
Wed Jun 29 07:38:33 UTC 2022


    Date: Wednesday, June 29, 2022 @ 07:38:33
  Author: alerque
Revision: 1239874

upgpkg: python-cattrs 22.1.0-1

Modified:
  python-cattrs/trunk/PKGBUILD

----------+
 PKGBUILD |   25 +++++++++++++------------
 1 file changed, 13 insertions(+), 12 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2022-06-29 07:32:13 UTC (rev 1239873)
+++ PKGBUILD	2022-06-29 07:38:33 UTC (rev 1239874)
@@ -2,8 +2,8 @@
 
 _pipname=cattrs
 pkgname=python-${_pipname,,}
-pkgver=1.10.0
-pkgrel=3
+pkgver=22.1.0
+pkgrel=1
 pkgdesc='Complex custom class converters for attrs'
 arch=(any)
 url="https://github.com/Tinche/$_pipname"
@@ -10,22 +10,23 @@
 license=(MIT)
 depends=(python
          python-attrs)
-makedepends=(python-setuptools)
-# PyPi source release currently missing tests
+makedepends=(python-{build,installer,wheel}
+             python-poetry)
 # checkdepends=(python-pytest)
 _archive="$_pipname-$pkgver"
 source=("https://files.pythonhosted.org/packages/source/${_pipname::1}/$_pipname/$_archive.tar.gz")
-sha256sums=('211800f725cdecedcbcf4c753bbd22d248312b37d130f06045434acb7d9b34e1')
+# source=("$url/archive/v$pkgver/$_archive.tar.gz")
+sha256sums=('94b67b64cf92c994f8784c40c082177dc916e0489a73a9a36b24eb18a9db40c6')
 
-# prepare() {
-#     cd "$_archive"
-#     # Upstream test suite uses addopts to run benchmarks, drop them
-#     sed -i -e '/^addopts/d' pyproject.toml
-# }
+prepare() {
+    cd "$_archive"
+    # Upstream test suite uses addopts to run benchmarks, drop them
+    sed -i -e '/^addopts/d' pyproject.toml
+}
 
 build() {
 	cd "$_archive"
-	python setup.py build
+	python -m build -wn
 }
 
 # check() {
@@ -35,6 +36,6 @@
 
 package() {
 	cd "$_archive"
-	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