[arch-commits] Commit in python-deprecated/trunk (PKGBUILD)
Felix Yan
felixonmars at archlinux.org
Sun Jan 17 13:46:34 UTC 2021
Date: Sunday, January 17, 2021 @ 13:46:34
Author: felixonmars
Revision: 821304
upgpkg: python-deprecated 1.2.11-1
Modified:
python-deprecated/trunk/PKGBUILD
----------+
PKGBUILD | 21 +++++++--------------
1 file changed, 7 insertions(+), 14 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2021-01-17 13:45:06 UTC (rev 821303)
+++ PKGBUILD 2021-01-17 13:46:34 UTC (rev 821304)
@@ -1,8 +1,8 @@
# Maintainer: Felix Yan <felixonmars at archlinux.org>
pkgname=python-deprecated
-pkgver=1.2.10
-pkgrel=3
+pkgver=1.2.11
+pkgrel=1
pkgdesc="Python @deprecated decorator to deprecate old python classes, functions or methods"
url="https://github.com/tantale/deprecated"
license=('MIT')
@@ -10,23 +10,16 @@
depends=('python-wrapt')
makedepends=('python-setuptools')
checkdepends=('python-pytest-runner')
-source=("$pkgname-$pkgver.tar.gz::https://github.com/tantale/deprecated/archive/v$pkgver.tar.gz"
- $pkgname-py39.patch::https://github.com/tantale/deprecated/commit/efb3e60623e1.patch)
-sha512sums=('4bd53b759d04ab15c74a4c147b2c69c73aed6e40555acf0e84cf0c5b7ffe248da234bd1311c5629f9357d50bc08e55e81363340dcfdabe88933525bcc7859a70'
- 'a7b000ab15dbdf9f3041da4475d97abab2e8649bd6809f97ee032ff656588cbcac915a417e1dbc4dfc310af5809c2bba343bd156412a742117284eab5aef083c')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/tantale/deprecated/archive/v$pkgver.tar.gz")
+sha512sums=('343f62a7a658569de885ac923a1de7f7b4cc5bf63d27d1b13474795ca38cc52932e35133b45d05c1b42d498af56f5945fad5c49b3cbdebda70337294da5d84c4')
-prepare() {
- cd "$srcdir"/deprecated-$pkgver
- patch -Np1 -i ../$pkgname-py39.patch
-}
-
build() {
- cd "$srcdir"/deprecated-$pkgver
+ cd deprecated-$pkgver
python setup.py build
}
check() {
- cd "$srcdir"/deprecated-$pkgver
+ cd deprecated-$pkgver
python setup.py pytest
}
@@ -33,5 +26,5 @@
package() {
cd deprecated-$pkgver
python setup.py install --root="$pkgdir" --optimize=1
- install -Dm644 LICENSE.rst "$pkgdir"/usr/share/licenses/$pkgname/LICENSE.rst
+ install -Dm644 LICENSE.rst -t "$pkgdir"/usr/share/licenses/$pkgname/
}
More information about the arch-commits
mailing list