[arch-commits] Commit in python-deprecated/repos/community-staging-any (2 files)

Felix Yan felixonmars at archlinux.org
Thu Nov 12 07:20:20 UTC 2020


    Date: Thursday, November 12, 2020 @ 07:20:20
  Author: felixonmars
Revision: 751327

archrelease: copy trunk to community-staging-any

Added:
  python-deprecated/repos/community-staging-any/PKGBUILD
    (from rev 751326, python-deprecated/trunk/PKGBUILD)
Deleted:
  python-deprecated/repos/community-staging-any/PKGBUILD

----------+
 PKGBUILD |   67 +++++++++++++++++++++++++++++++++----------------------------
 1 file changed, 37 insertions(+), 30 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2020-11-12 07:20:08 UTC (rev 751326)
+++ PKGBUILD	2020-11-12 07:20:20 UTC (rev 751327)
@@ -1,30 +0,0 @@
-# Maintainer: Felix Yan <felixonmars at archlinux.org>
-
-pkgname=python-deprecated
-pkgver=1.2.10
-pkgrel=2
-pkgdesc="Python @deprecated decorator to deprecate old python classes, functions or methods"
-url="https://github.com/tantale/deprecated"
-license=('MIT')
-arch=('any')
-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")
-sha512sums=('4bd53b759d04ab15c74a4c147b2c69c73aed6e40555acf0e84cf0c5b7ffe248da234bd1311c5629f9357d50bc08e55e81363340dcfdabe88933525bcc7859a70')
-
-build() {
-  cd "$srcdir"/deprecated-$pkgver
-  python setup.py build
-}
-
-check() {
-  cd "$srcdir"/deprecated-$pkgver
-  python setup.py pytest
-}
-
-package() {
-  cd deprecated-$pkgver
-  python setup.py install --root="$pkgdir" --optimize=1
-  install -Dm644 LICENSE.rst "$pkgdir"/usr/share/licenses/$pkgname/LICENSE.rst
-}

Copied: python-deprecated/repos/community-staging-any/PKGBUILD (from rev 751326, python-deprecated/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2020-11-12 07:20:20 UTC (rev 751327)
@@ -0,0 +1,37 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python-deprecated
+pkgver=1.2.10
+pkgrel=3
+pkgdesc="Python @deprecated decorator to deprecate old python classes, functions or methods"
+url="https://github.com/tantale/deprecated"
+license=('MIT')
+arch=('any')
+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')
+
+prepare() {
+  cd "$srcdir"/deprecated-$pkgver
+  patch -Np1 -i ../$pkgname-py39.patch
+}
+
+build() {
+  cd "$srcdir"/deprecated-$pkgver
+  python setup.py build
+}
+
+check() {
+  cd "$srcdir"/deprecated-$pkgver
+  python setup.py pytest
+}
+
+package() {
+  cd deprecated-$pkgver
+  python setup.py install --root="$pkgdir" --optimize=1
+  install -Dm644 LICENSE.rst "$pkgdir"/usr/share/licenses/$pkgname/LICENSE.rst
+}



More information about the arch-commits mailing list