[arch-commits] Commit in python-shellingham/repos/community-any (PKGBUILD PKGBUILD)

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


    Date: Tuesday, August 9, 2022 @ 09:44:13
  Author: alerque
Revision: 1263507

archrelease: copy trunk to community-any

Added:
  python-shellingham/repos/community-any/PKGBUILD
    (from rev 1263506, python-shellingham/trunk/PKGBUILD)
Deleted:
  python-shellingham/repos/community-any/PKGBUILD

----------+
 PKGBUILD |   71 ++++++++++++++++++++++++++++++-------------------------------
 1 file changed, 35 insertions(+), 36 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2022-08-09 09:44:05 UTC (rev 1263506)
+++ PKGBUILD	2022-08-09 09:44:13 UTC (rev 1263507)
@@ -1,36 +0,0 @@
-# Maintainer: Eli Schwartz <eschwartz at archlinux.org>
-# Contributor: Clint Valentine <valentine.clint at gmail.com>
-
-_pkgname=shellingham
-pkgname=python-shellingham
-pkgver=1.4.0
-pkgrel=4
-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')
-
-build(){
-    cd ${_pkgname}-${pkgver}
-
-    python setup.py build
-}
-
-check() {
-    cd ${_pkgname}-${pkgver}
-
-    python setup.py pytest
-}
-
-package() {
-    cd ${_pkgname}-${pkgver}
-
-    python setup.py install --root="${pkgdir}" --optimize=1 --skip-build
-    install -Dm644 LICENSE "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE
-}

Copied: python-shellingham/repos/community-any/PKGBUILD (from rev 1263506, python-shellingham/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2022-08-09 09:44:13 UTC (rev 1263507)
@@ -0,0 +1,35 @@
+# Maintainer: Caleb Maclennan <caleb at alerque.com>
+# Contributor: Eli Schwartz <eschwartz at archlinux.org>
+# Contributor: Clint Valentine <valentine.clint at gmail.com>
+
+_pkgname=shellingham
+pkgname=python-shellingham
+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-{build,installer,wheel}
+             python-setuptools)
+checkdepends=(python-pytest{,-mock})
+_archive="$_pkgname-$pkgver"
+source=("$url/archive/$pkgver/$_archive.tar.gz")
+sha256sums=('727a18bfc9356e4c8ee4a9945125ea46680ba44cbb0a413bfae61e21314ceae8')
+
+build(){
+	cd "$_archive"
+	python -m build -wn
+}
+
+check() {
+	cd "$_archive"
+	PYTHONPATH="$PWD/src" pytest
+}
+
+package() {
+	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