Date: Wednesday, March 29, 2023 @ 04:11:11
Author: felixonmars
Revision: 1430167
archrelease: copy trunk to community-any
Added:
python-testtools/repos/community-any/PKGBUILD
(from rev 1430166, python-testtools/trunk/PKGBUILD)
Deleted:
python-testtools/repos/community-any/PKGBUILD
----------+
PKGBUILD | 70 +++++++++++++++++++++++++++----------------------------------
1 file changed, 31 insertions(+), 39 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2023-03-29 04:11:00 UTC (rev 1430166)
+++ PKGBUILD 2023-03-29 04:11:11 UTC (rev 1430167)
@@ -1,39 +0,0 @@
-# Maintainer: Felix Yan <[email protected]>
-
-pkgname=python-testtools
-pkgver=2.5.0
-pkgrel=3
-pkgdesc="Extensions to the Python standard library unit testing framework"
-arch=('any')
-license=('MIT')
-url="https://github.com/testing-cabal/testtools"
-depends=('python-pbr' 'python-extras' 'python-fixtures')
-makedepends=('python-setuptools')
-checkdepends=('python-testscenarios')
-source=("https://github.com/testing-cabal/testtools/archive/$pkgver/$pkgname-$pkgver.tar.gz"
-
$pkgname-python310.patch::https://github.com/testing-cabal/testtools/commit/ec9bb7ed0265.patch)
-sha512sums=('81e2a31f34461aefa52a553966deb979e2cc8632c0fe2b87640925958d403598e45a3a16eb35d583894fac507670b349cebae002ae5376185e86032ebfb5da80'
-
'd1e9763a3fa5ef66666f28687e5c798c2d92c6eb73f702f216b125ef15f5eb10e100da8836e81a6dc0748f1cb8887c92647a29f0e615413d5c371653910f0573')
-
-export PBR_VERSION=$pkgver
-
-prepare() {
- cd testtools-$pkgver
- patch -Np1 -i ../$pkgname-python310.patch
-}
-
-build() {
- cd testtools-$pkgver
- python setup.py build
-}
-
-check() {
- cd testtools-$pkgver
- python -m testtools.run testtools.tests.test_suite
-}
-
-package() {
- cd testtools-$pkgver
- python setup.py install --root="$pkgdir" --optimize=1
- install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
-}
Copied: python-testtools/repos/community-any/PKGBUILD (from rev 1430166,
python-testtools/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2023-03-29 04:11:11 UTC (rev 1430167)
@@ -0,0 +1,31 @@
+# Maintainer: Felix Yan <[email protected]>
+
+pkgname=python-testtools
+pkgver=2.6.0
+_commit=280f4272832861cf35aec27d3857669d1053e8a8
+pkgrel=1
+pkgdesc="Extensions to the Python standard library unit testing framework"
+arch=('any')
+license=('MIT')
+url="https://github.com/testing-cabal/testtools"
+depends=('python-pbr' 'python-fixtures')
+makedepends=('git' 'python-setuptools')
+checkdepends=('python-testscenarios')
+source=("git+https://github.com/testing-cabal/testtools.git#commit=$_commit")
+sha512sums=('SKIP')
+
+build() {
+ cd testtools
+ python setup.py build
+}
+
+check() {
+ cd testtools
+ python -m testtools.run testtools.tests.test_suite
+}
+
+package() {
+ cd testtools
+ python setup.py install --root="$pkgdir" --optimize=1
+ install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/
+}