[arch-commits] Commit in python-deprecation/repos (2 files)

Felix Yan felixonmars at archlinux.org
Mon Nov 9 15:48:03 UTC 2020


    Date: Monday, November 9, 2020 @ 15:48:02
  Author: felixonmars
Revision: 747149

archrelease: copy trunk to community-staging-any

Added:
  python-deprecation/repos/community-staging-any/
  python-deprecation/repos/community-staging-any/PKGBUILD
    (from rev 747148, python-deprecation/trunk/PKGBUILD)

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

Copied: python-deprecation/repos/community-staging-any/PKGBUILD (from rev 747148, python-deprecation/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2020-11-09 15:48:02 UTC (rev 747149)
@@ -0,0 +1,34 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python-deprecation
+pkgver=2.1.0
+pkgrel=2
+pkgdesc="A library to handle automated deprecations"
+arch=('any')
+license=('Apache')
+url="https://deprecation.readthedocs.io"
+depends=('python')
+makedepends=('python-setuptools')
+source=("https://files.pythonhosted.org/packages/source/d/deprecation/deprecation-$pkgver.tar.gz")
+sha512sums=('c184665d210c6eeb3f055b23e75c3714f3b18050e03bfe1384baf6c2504f1370116ae0e8c53ff818ccc54c0d633bbb3ba5791fe20b8029f3be0207b019a00275')
+
+prepare() {
+  sed -i 's/unittest2/unittest/g' deprecation-$pkgver/tests/*.py
+
+  export LC_CTYPE=en_US.UTF-8
+}
+
+build() {
+  cd deprecation-$pkgver
+  python setup.py build
+}
+
+check() {
+  cd deprecation-$pkgver
+  python -m unittest discover
+}
+
+package() {
+  cd deprecation-$pkgver
+  python setup.py install --root="$pkgdir" --optimize=1
+}



More information about the arch-commits mailing list