Date: Saturday, April 22, 2023 @ 08:28:16
Author: alerque
Revision: 1448253
archrelease: copy trunk to community-staging-any
Added:
python-mccabe/repos/community-staging-any/PKGBUILD
(from rev 1448252, python-mccabe/trunk/PKGBUILD)
Deleted:
python-mccabe/repos/community-staging-any/PKGBUILD
----------+
PKGBUILD | 73 ++++++++++++++++++++++++++++++-------------------------------
1 file changed, 37 insertions(+), 36 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2023-04-22 08:28:07 UTC (rev 1448252)
+++ PKGBUILD 2023-04-22 08:28:16 UTC (rev 1448253)
@@ -1,36 +0,0 @@
-# Maintainer: Caleb Maclennan <[email protected]>
-# Contributor: Felix Yan <[email protected]>
-# Contributor: Karol "Kenji Takahashi" Woźniak <kenji.sx>
-
-_pyname=mccabe
-pkgname=python-$_pyname
-pkgver=0.7.0
-pkgrel=3
-pkgdesc='McCabe complexity checker for Python'
-arch=(any)
-url="https://github.com/PyCQA/$_pyname"
-license=('custom:Expat')
-depends=(python)
-makedepends=(python-setuptools)
-checkdepends=(python-hypothesmith
- python-pytest
- python-pytest-runner)
-_archive="$_pyname-$pkgver"
-source=("$url/archive/$pkgver/$_archive.tar.gz")
-sha256sums=('f4f7fa5ed8b7f77601fea3e748d6238928323a291fcde0fddbbe6cb2d0cb2da2')
-
-build() {
- cd "$_archive"
- python setup.py build
-}
-
-check() {
- cd "$_archive"
- pytest
-}
-
-package() {
- cd "$_archive"
- python setup.py install --root="$pkgdir" --optimize=1 --skip-build
- install -Dm0644 -t "$pkgdir/usr/share/licenses/$pkgname/" LICENSE
-}
Copied: python-mccabe/repos/community-staging-any/PKGBUILD (from rev 1448252,
python-mccabe/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2023-04-22 08:28:16 UTC (rev 1448253)
@@ -0,0 +1,37 @@
+# Maintainer: Caleb Maclennan <[email protected]>
+# Contributor: Felix Yan <[email protected]>
+# Contributor: Karol "Kenji Takahashi" Woźniak <kenji.sx>
+
+_pyname=mccabe
+pkgname=python-$_pyname
+pkgver=0.7.0
+pkgrel=5
+pkgdesc='McCabe complexity checker for Python'
+arch=(any)
+url="https://github.com/PyCQA/$_pyname"
+license=(custom:Expat)
+depends=(python)
+makedepends=(python-{build,installer,wheel}
+ python-setuptools)
+checkdepends=(python-hypothesmith
+ python-pytest
+ python-pytest-runner)
+_archive="$_pyname-$pkgver"
+source=("$url/archive/$pkgver/$_archive.tar.gz")
+sha256sums=('f4f7fa5ed8b7f77601fea3e748d6238928323a291fcde0fddbbe6cb2d0cb2da2')
+
+build() {
+ cd "$_archive"
+ python -m build -wn
+}
+
+check() {
+ cd "$_archive"
+ pytest
+}
+
+package() {
+ cd "$_archive"
+ python -m installer -d "$pkgdir" dist/*.whl
+ install -Dm0644 -t "$pkgdir/usr/share/licenses/$pkgname/" LICENSE
+}