Date: Saturday, November 5, 2022 @ 02:14:50
Author: grawlinson
Revision: 1342272
archrelease: copy trunk to community-any
Added:
python-license-expression/repos/community-any/PKGBUILD
(from rev 1342271, python-license-expression/trunk/PKGBUILD)
Deleted:
python-license-expression/repos/community-any/PKGBUILD
----------+
PKGBUILD | 126 ++++++++++++++++++++++++++++++-------------------------------
1 file changed, 64 insertions(+), 62 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2022-11-05 02:14:20 UTC (rev 1342271)
+++ PKGBUILD 2022-11-05 02:14:50 UTC (rev 1342272)
@@ -1,62 +0,0 @@
-# Maintainer: George Rawlinson <[email protected]>
-# Contributor: Max Mehl <aur at mehl dot mx>
-# SPDX-FileCopyrightText: 2019 Max Mehl
-# SPDX-License-Identifier: CC0-1.0
-
-pkgname=python-license-expression
-pkgver=30.0.0
-pkgrel=1
-pkgdesc='Utility to parse, normalize and compare license expressions'
-arch=('any')
-url='https://github.com/nexB/license-expression'
-license=('Apache')
-depends=(
- 'python'
- 'python-boolean.py'
-)
-makedepends=(
- 'git'
- 'python-setuptools'
- 'python-wheel'
- 'python-pip'
-)
-checkdepends=(
- 'python-pytest'
- 'python-pytest-xdist'
-)
-_commit='5f4febb6df2b644706839e42ba4310de9e2dccba'
-source=("$pkgname::git+$url#commit=$_commit")
-b2sums=('SKIP')
-
-pkgver() {
- cd "$pkgname"
-
- git describe --tags | sed 's/^v//'
-}
-
-prepare() {
- cd "$pkgname"
-
- # Fix file to comply with PEP-440
- sed \
- -i pyproject.toml \
- -e "s/^fallback_version =.*/fallback_version = \"$pkgver\"/"
-}
-
-build() {
- cd "$pkgname"
-
- python setup.py build
-}
-
-check() {
- cd "$pkgname"
-
- pytest
-}
-
-package() {
- cd "$pkgname"
-
- python setup.py install --root="$pkgdir" --optimize=1 --skip-build
-}
Copied: python-license-expression/repos/community-any/PKGBUILD (from rev
1342271, python-license-expression/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2022-11-05 02:14:50 UTC (rev 1342272)
@@ -0,0 +1,64 @@
+# Maintainer: George Rawlinson <[email protected]>
+# Contributor: Max Mehl <aur at mehl dot mx>
+# SPDX-FileCopyrightText: 2019 Max Mehl
+# SPDX-License-Identifier: CC0-1.0
+
+pkgname=python-license-expression
+pkgver=30.0.0
+pkgrel=2
+pkgdesc='Utility to parse, normalize and compare license expressions'
+arch=('any')
+url='https://github.com/nexB/license-expression'
+license=('Apache')
+depends=(
+ 'python'
+ 'python-boolean.py'
+)
+makedepends=(
+ 'git'
+ 'python-build'
+ 'python-installer'
+ 'python-wheel'
+ 'python-setuptools-scm'
+ 'python-wheel'
+)
+checkdepends=(
+ 'python-pytest'
+ 'python-pytest-xdist'
+)
+_commit='5f4febb6df2b644706839e42ba4310de9e2dccba'
+source=("$pkgname::git+$url#commit=$_commit")
+b2sums=('SKIP')
+
+pkgver() {
+ cd "$pkgname"
+
+ git describe --tags | sed 's/^v//'
+}
+
+prepare() {
+ cd "$pkgname"
+
+ # Fix file to comply with PEP-440
+ sed \
+ -i pyproject.toml \
+ -e "s/^fallback_version =.*/fallback_version = \"$pkgver\"/"
+}
+
+build() {
+ cd "$pkgname"
+
+ python -m build --wheel --no-isolation
+}
+
+check() {
+ cd "$pkgname"
+
+ pytest -v
+}
+
+package() {
+ cd "$pkgname"
+
+ python -m installer --destdir="$pkgdir" dist/*.whl
+}