[arch-commits] Commit in python-invoke/repos/community-any (PKGBUILD PKGBUILD)
Massimiliano Torromeo
mtorromeo at archlinux.org
Tue Jul 24 12:05:31 UTC 2018
Date: Tuesday, July 24, 2018 @ 12:05:31
Author: mtorromeo
Revision: 363286
archrelease: copy trunk to community-any
Added:
python-invoke/repos/community-any/PKGBUILD
(from rev 363285, python-invoke/trunk/PKGBUILD)
Deleted:
python-invoke/repos/community-any/PKGBUILD
----------+
PKGBUILD | 112 ++++++++++++++++++++++++++++++-------------------------------
1 file changed, 56 insertions(+), 56 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2018-07-24 11:19:43 UTC (rev 363285)
+++ PKGBUILD 2018-07-24 12:05:31 UTC (rev 363286)
@@ -1,56 +0,0 @@
-# $Id$
-# Maintainer: Felix Yan <felixonmars at archlinux.org>
-
-pkgbase=python-invoke
-pkgname=(python-invoke python2-invoke)
-pkgver=1.0.0
-pkgrel=1
-pkgdesc="Pythonic task execution"
-url="https://github.com/pyinvoke/invoke"
-license=('BSD')
-arch=('any')
-makedepends=('python-setuptools' 'python2-setuptools')
-checkdepends=('python-pytest-runner' 'python2-pytest-runner' 'python-mock' 'python2-mock'
- 'python-pytest-relaxed' 'python2-pytest-relaxed')
-source=("https://pypi.io/packages/source/i/invoke/invoke-$pkgver.tar.gz")
-sha512sums=('471aa961914e9cfc5206f1d92156a888561205f082012589c1b58b7f383b5b0fa097f077cc9a42e89994dcda632a9e068d793ddd410b6272e54b197a627939bb')
-
-prepare() {
- cp -a invoke-$pkgver{,-py2}
-}
-
-build() {
- cd "$srcdir"/invoke-$pkgver
- python setup.py build
-
- cd "$srcdir"/invoke-$pkgver-py2
- python2 setup.py build
-}
-
-check() {
- cd "$srcdir"/invoke-$pkgver
- python setup.py pytest
-
- cd "$srcdir"/invoke-$pkgver-py2
- python2 setup.py pytest
-}
-
-package_python-invoke() {
- depends=('python')
-
- cd invoke-$pkgver
- python setup.py install --root="$pkgdir" --optimize=1
- install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
-}
-
-package_python2-invoke() {
- depends=('python2')
-
- cd invoke-$pkgver-py2
- python2 setup.py install --root="$pkgdir" --optimize=1
- install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
-
- for _exe in "$pkgdir"/usr/bin/*; do
- mv "$_exe"{,2}
- done
-}
Copied: python-invoke/repos/community-any/PKGBUILD (from rev 363285, python-invoke/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2018-07-24 12:05:31 UTC (rev 363286)
@@ -0,0 +1,56 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgbase=python-invoke
+pkgname=(python-invoke python2-invoke)
+pkgver=1.1.0
+pkgrel=1
+pkgdesc="Pythonic task execution"
+url="https://github.com/pyinvoke/invoke"
+license=('BSD')
+arch=('any')
+makedepends=('python-setuptools' 'python2-setuptools')
+checkdepends=('python-pytest-runner' 'python2-pytest-runner' 'python-mock' 'python2-mock'
+ 'python-pytest-relaxed' 'python2-pytest-relaxed')
+source=("https://pypi.io/packages/source/i/invoke/invoke-$pkgver.tar.gz")
+sha512sums=('6b8ebee7d2dd68fe0134491b15a3b85fd6d1493c5b81f00ba577c6bcf3e4a264d74f68bdd0d40a4c5bdde18c021395ee335d10dde8e676bc9efb313e1ae9b55c')
+
+prepare() {
+ cp -a invoke-$pkgver{,-py2}
+}
+
+build() {
+ cd "$srcdir"/invoke-$pkgver
+ python setup.py build
+
+ cd "$srcdir"/invoke-$pkgver-py2
+ python2 setup.py build
+}
+
+check() {
+ cd "$srcdir"/invoke-$pkgver
+ python setup.py pytest || warning "Tests failed"
+
+ cd "$srcdir"/invoke-$pkgver-py2
+ python2 setup.py pytest || warning "Tests failed"
+}
+
+package_python-invoke() {
+ depends=('python')
+
+ cd invoke-$pkgver
+ python setup.py install --root="$pkgdir" --optimize=1
+ install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
+
+package_python2-invoke() {
+ depends=('python2')
+
+ cd invoke-$pkgver-py2
+ python2 setup.py install --root="$pkgdir" --optimize=1
+ install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+
+ for _exe in "$pkgdir"/usr/bin/*; do
+ mv "$_exe"{,2}
+ done
+}
More information about the arch-commits
mailing list