[arch-commits] Commit in python2-backports.functools_lru_cache/repos/extra-any (2 files)

Felix Yan felixonmars at archlinux.org
Wed Mar 18 21:23:10 UTC 2020


    Date: Wednesday, March 18, 2020 @ 21:23:09
  Author: felixonmars
Revision: 377880

archrelease: copy trunk to extra-any

Added:
  python2-backports.functools_lru_cache/repos/extra-any/PKGBUILD
    (from rev 377879, python2-backports.functools_lru_cache/trunk/PKGBUILD)
Deleted:
  python2-backports.functools_lru_cache/repos/extra-any/PKGBUILD

----------+
 PKGBUILD |   73 ++++++++++++++++++++++++++++++++-----------------------------
 1 file changed, 39 insertions(+), 34 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2020-03-18 21:22:53 UTC (rev 377879)
+++ PKGBUILD	2020-03-18 21:23:09 UTC (rev 377880)
@@ -1,34 +0,0 @@
-# $Id$
-# Maintainer: Felix Yan <felixonmars at archlinux.org>
-# Contributor: Crass00 <crass00 @ hotmail . com>
-
-pkgname=python2-backports.functools_lru_cache
-pkgver=1.5
-pkgrel=1
-pkgdesc="Backport of functools.lru_cache from Python 3.3"
-arch=('any')
-url="https://github.com/jaraco/backports.functools_lru_cache"
-license=('MIT')
-depends=('python2-backports')
-makedepends=('python2-setuptools-scm')
-checkdepends=('python2-pytest-runner')
-optdepends=('python2-ipaddress: for IPAddress ServerAltnames support')
-source=("https://pypi.io/packages/source/b/backports.functools_lru_cache/backports.functools_lru_cache-$pkgver.tar.gz")
-sha512sums=('083a69beb050a6de0f838231ceae05cd1825f42310b2cd4f0e53f7ca043af4c699ad7042c32831ee365bb6b374d33189136e45689c77815b99773d145f0ef4f1')
-
-build() {
-  cd backports.functools_lru_cache-$pkgver
-  python2 setup.py build
-}
-
-check() {
-  cd backports.functools_lru_cache-$pkgver
-  python2 setup.py pytest
-}
-
-package() {
-  cd backports.functools_lru_cache-$pkgver
-  python2 setup.py install --root="$pkgdir" --optimize=1
-
-  rm "$pkgdir"/usr/lib/python2.7/site-packages/backports/__init__.py*
-}

Copied: python2-backports.functools_lru_cache/repos/extra-any/PKGBUILD (from rev 377879, python2-backports.functools_lru_cache/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2020-03-18 21:23:09 UTC (rev 377880)
@@ -0,0 +1,39 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Crass00 <crass00 @ hotmail . com>
+
+pkgname=python2-backports.functools_lru_cache
+pkgver=1.6.1
+pkgrel=1
+pkgdesc="Backport of functools.lru_cache from Python 3.3"
+arch=('any')
+url="https://github.com/jaraco/backports.functools_lru_cache"
+license=('MIT')
+depends=('python2-backports')
+makedepends=('python2-setuptools-scm')
+checkdepends=('python2-pytest')
+optdepends=('python2-ipaddress: for IPAddress ServerAltnames support')
+source=("https://pypi.io/packages/source/b/backports.functools_lru_cache/backports.functools_lru_cache-$pkgver.tar.gz")
+sha512sums=('5764cc6ed83dc4abc2a7e5f8b5bb30c7b7554aafcbb6dfcececdb3646fe9298a8c1791a02112238ec94a0e383855bdec43bf9094f40b57124d0a0c9aa7c67f88')
+
+prepare() {
+  cd backports.functools_lru_cache-$pkgver
+  # Style or coverage checks are not relevant for us
+  sed -i 's/--flake8 --black --cov//' pytest.ini
+}
+
+build() {
+  cd backports.functools_lru_cache-$pkgver
+  python2 setup.py build
+}
+
+check() {
+  cd backports.functools_lru_cache-$pkgver
+  python2 -m pytest
+}
+
+package() {
+  cd backports.functools_lru_cache-$pkgver
+  python2 setup.py install --root="$pkgdir" --optimize=1
+
+  rm "$pkgdir"/usr/lib/python2.7/site-packages/backports/__init__.py*
+}



More information about the arch-commits mailing list