[arch-commits] Commit in python-deprecation/repos/community-any (PKGBUILD PKGBUILD)
Felix Yan
felixonmars at archlinux.org
Wed May 3 14:51:41 UTC 2017
Date: Wednesday, May 3, 2017 @ 14:51:41
Author: felixonmars
Revision: 226669
archrelease: copy trunk to community-any
Added:
python-deprecation/repos/community-any/PKGBUILD
(from rev 226668, python-deprecation/trunk/PKGBUILD)
Deleted:
python-deprecation/repos/community-any/PKGBUILD
----------+
PKGBUILD | 107 ++++++++++++++++++++++++++++++-------------------------------
1 file changed, 53 insertions(+), 54 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2017-05-03 14:51:09 UTC (rev 226668)
+++ PKGBUILD 2017-05-03 14:51:41 UTC (rev 226669)
@@ -1,54 +0,0 @@
-# $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
-}
Copied: python-deprecation/repos/community-any/PKGBUILD (from rev 226668, python-deprecation/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2017-05-03 14:51:41 UTC (rev 226669)
@@ -0,0 +1,53 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgbase=python-deprecation
+pkgname=('python-deprecation' 'python2-deprecation')
+pkgver=1.0.1
+pkgrel=1
+pkgdesc="A library to handle automated deprecations"
+arch=('any')
+license=('Apache')
+url="http://deprecation.readthedocs.io"
+makedepends=('python-setuptools' 'python2-setuptools')
+checkdepends=('python2-unittest2')
+source=("$pkgbase-$pkgver.tar.gz::https://github.com/briancurtin/deprecation/archive/$pkgver.tar.gz")
+sha512sums=('522ef7daca49f3174f54f53d3405ed81dc20ab4292d74a2fc7fffbbdc9f7f05610a201a6698f0ac9172d64e37927b2c2e23a1bf475b5b5291dd9bcc60484161b')
+
+prepare() {
+ cp -a deprecation-$pkgver{,-py2}
+
+ sed -i 's/unittest2/unittest/g' deprecation-$pkgver/tests/*.py
+
+ export LC_CTYPE=en_US.UTF-8
+}
+
+build() {
+ cd "$srcdir"/deprecation-$pkgver
+ python setup.py build
+
+ cd "$srcdir"/deprecation-$pkgver-py2
+ python2 setup.py build
+}
+
+check() {
+ cd "$srcdir"/deprecation-$pkgver
+ python -m unittest discover
+
+ cd "$srcdir"/deprecation-$pkgver-py2
+ python2 -m unittest discover
+}
+
+package_python-deprecation() {
+ depends=('python')
+
+ cd deprecation-$pkgver
+ python setup.py install --root="$pkgdir" --optimize=1
+}
+
+package_python2-deprecation() {
+ depends=('python2')
+
+ cd deprecation-$pkgver-py2
+ python2 setup.py install --root="$pkgdir" --optimize=1
+}
More information about the arch-commits
mailing list