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

Caleb Maclennan alerque at gemini.archlinux.org
Tue Aug 9 09:44:05 UTC 2022


    Date: Tuesday, August 9, 2022 @ 09:44:05
  Author: alerque
Revision: 1263506

upgpkg: python-shellingham 1.5.0-1

Modified:
  python-shellingham/trunk/PKGBUILD

----------+
 PKGBUILD |   40 +++++++++++++++++++---------------------
 1 file changed, 19 insertions(+), 21 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2022-08-09 09:43:41 UTC (rev 1263505)
+++ PKGBUILD	2022-08-09 09:44:05 UTC (rev 1263506)
@@ -4,34 +4,32 @@
 
 _pkgname=shellingham
 pkgname=python-shellingham
-pkgver=1.4.0
-pkgrel=4
-pkgdesc="Detect what shell the current Python executable is running in."
-arch=('any')
+pkgver=1.5.0
+pkgrel=1
+pkgdesc='Detect what shell the current Python executable is running in'
+arch=(any)
 url="https://github.com/sarugaku/${_pkgname}"
-license=('ISC')
-depends=('python')
-makedepends=('python-setuptools')
-checkdepends=('python-pytest-runner' 'python-pytest-mock')
-source=("${_pkgname}-${pkgver}.tar.gz::${url}/archive/${pkgver}.tar.gz")
-sha256sums=('df6c61abc6d4112cdb8665e780cd4692dd7fcd88c9b8513cb096a0dd247effe0')
-b2sums=('06c642a0e88a41683f7a316304c28f66f89d6215ff27244a0b984725b7c888bc0de6e6936012c02a1a178f827f300f99704f0d2f61476ce49a27e8c2aaf0f9a7')
+license=(ISC)
+depends=(python)
+makedepends=(python-{build,installer,wheel}
+             python-setuptools)
+checkdepends=(python-pytest{,-mock})
+_archive="$_pkgname-$pkgver"
+source=("$url/archive/$pkgver/$_archive.tar.gz")
+sha256sums=('727a18bfc9356e4c8ee4a9945125ea46680ba44cbb0a413bfae61e21314ceae8')
 
 build(){
-    cd ${_pkgname}-${pkgver}
-
-    python setup.py build
+	cd "$_archive"
+	python -m build -wn
 }
 
 check() {
-    cd ${_pkgname}-${pkgver}
-
-    python setup.py pytest
+	cd "$_archive"
+	PYTHONPATH="$PWD/src" pytest
 }
 
 package() {
-    cd ${_pkgname}-${pkgver}
-
-    python setup.py install --root="${pkgdir}" --optimize=1 --skip-build
-    install -Dm644 LICENSE "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE
+	cd "$_archive"
+	python -m installer -d "$pkgdir" dist/*.whl
+	install -Dm0644 -t "$pkgdir/usr/share/licenses/$pkgname/" LICENSE
 }



More information about the arch-commits mailing list