[arch-commits] Commit in (4 files)

Felix Yan felixonmars at archlinux.org
Wed Mar 1 07:12:20 UTC 2017


    Date: Wednesday, March 1, 2017 @ 07:12:20
  Author: felixonmars
Revision: 214293

addpkg: python-deprecation 1.0-1

Added:
  python-deprecation/
  python-deprecation/repos/
  python-deprecation/trunk/
  python-deprecation/trunk/PKGBUILD

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

Added: python-deprecation/trunk/PKGBUILD
===================================================================
--- python-deprecation/trunk/PKGBUILD	                        (rev 0)
+++ python-deprecation/trunk/PKGBUILD	2017-03-01 07:12:20 UTC (rev 214293)
@@ -0,0 +1,54 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgbase=python-deprecation
+pkgname=('python-deprecation' 'python2-deprecation')
+pkgver=1.0
+_commit=6f27aaad7de77f5bbf804da82f08d39b78a139e6
+pkgrel=1
+pkgdesc="A library to handle automated deprecations"
+arch=('any')
+license=('Apache')
+url="http://deprecation.readthedocs.io"
+makedepends=('python-setuptools' 'python2-setuptools' 'git')
+checkdepends=('python2-unittest2')
+source=("git+https://github.com/briancurtin/deprecation.git#commit=$_commit")
+sha512sums=('SKIP')
+
+prepare() {
+  cp -a deprecation{,-py2}
+
+  sed -i 's/unittest2/unittest/g' deprecation/tests/*.py
+
+  export LC_CTYPE=en_US.UTF-8
+}
+
+build() {
+  cd "$srcdir"/deprecation
+  python setup.py build
+
+  cd "$srcdir"/deprecation-py2
+  python2 setup.py build
+}
+
+check() {
+  cd "$srcdir"/deprecation
+  python -m unittest discover
+
+  cd "$srcdir"/deprecation-py2
+  python2 -m unittest discover
+}
+
+package_python-deprecation() {
+  depends=('python')
+
+  cd deprecation
+  python setup.py install --root="$pkgdir" --optimize=1
+}
+
+package_python2-deprecation() {
+  depends=('python2')
+
+  cd deprecation-py2
+  python2 setup.py install --root="$pkgdir" --optimize=1
+}


Property changes on: python-deprecation/trunk/PKGBUILD
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+Id
\ No newline at end of property



More information about the arch-commits mailing list