Date: Sunday, July 31, 2022 @ 11:51:22
  Author: arojas
Revision: 1259309

upgpkg: python-apipkg 3.0.1-1: Update to 3.0.1, switch to github sources which 
include tests

Modified:
  python-apipkg/trunk/PKGBUILD

----------+
 PKGBUILD |   17 ++++++++++-------
 1 file changed, 10 insertions(+), 7 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD    2022-07-31 11:36:01 UTC (rev 1259308)
+++ PKGBUILD    2022-07-31 11:51:22 UTC (rev 1259309)
@@ -1,29 +1,32 @@
 # Maintainer: Felix Yan <felixonm...@archlinux.org>
 
 pkgname=python-apipkg
-pkgver=2.1.1
+pkgver=3.0.1
 pkgrel=1
 pkgdesc="Namespace control and lazy-import mechanism"
 arch=('any')
 license=('MIT')
 url="https://github.com/pytest-dev/apipkg";
-makedepends=('python-setuptools' 'python-setuptools-scm')
+depends=('python')
+makedepends=('python-build' 'python-installer' 'python-hatchling' 
'python-hatch-vcs')
 checkdepends=('python-pytest-runner')
-source=("https://files.pythonhosted.org/packages/source/a/apipkg/apipkg-$pkgver.tar.gz";)
-sha512sums=('3d20473ba48927ecfc932e881b115a2ad368f69f8e423ec63443e69c1328a25ac48025fc4a0b10e806b5d1354a67a22c22e1ecde59158a7eeac09acf42cba965')
+source=("https://github.com/pytest-dev/apipkg/archive/v$pkgver/$pkgname-$pkgver.tar.gz";)
+sha512sums=('89251f02a49b5191879bcf6e35c6a8755d6b29f1ca1c6061eab004385b11433ec86e2968ab23994c6a74515d6a673e445b3bcf8cbdd21b2ec644fcef0d19b419')
 
 build() {
+  export SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver
+
   cd apipkg-$pkgver
-  python setup.py build
+  python -m build --wheel --no-isolation
 }
 
 check() {
   cd apipkg-$pkgver
-  python setup.py pytest
+  PYTHONPATH="$PWD"/src pytest
 }
 
 package() {
   cd apipkg-$pkgver
-  python setup.py install --root="$pkgdir" --optimize=1
+  python -m installer --destdir="$pkgdir" dist/*.whl
   install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
 }

Reply via email to