[arch-commits] Commit in python-tox/repos/community-any (PKGBUILD PKGBUILD)
Felix Yan
fyan at archlinux.org
Wed Nov 11 14:43:41 UTC 2015
Date: Wednesday, November 11, 2015 @ 15:43:40
Author: fyan
Revision: 146583
archrelease: copy trunk to community-any
Added:
python-tox/repos/community-any/PKGBUILD
(from rev 146582, python-tox/trunk/PKGBUILD)
Deleted:
python-tox/repos/community-any/PKGBUILD
----------+
PKGBUILD | 134 ++++++++++++++++++++++++++-----------------------------------
1 file changed, 59 insertions(+), 75 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2015-11-11 14:43:20 UTC (rev 146582)
+++ PKGBUILD 2015-11-11 14:43:40 UTC (rev 146583)
@@ -1,75 +0,0 @@
-# $Id$
-# Maintainer: Felix Yan <felixonmars at archlinux.org>
-# Contributor: Thomas Weißschuh <thomas t-8ch.de>
-# Contributor: George Brooke <george+arch.aur at george-brooke.co.uk>
-# Contributor: Sebastian Wiesner <lunaryorn googlemail com>
-
-pkgbase=python-tox
-pkgname=(python-tox python2-tox)
-pkgver=2.1.1
-pkgrel=3
-pkgdesc='Python virtualenv management and testing tool'
-arch=('any')
-url='http://testrun.org/tox/latest/'
-license=('GPL2')
-makedepends=('python-setuptools' 'python2-setuptools' 'python-py' 'python2-py' 'python-virtualenv' 'python2-virtualenv' 'python-pluggy' 'python2-pluggy')
-checkdepends=('python-pytest' 'python2-pytest' 'python-pip' 'python2-pip')
-source=("http://pypi.python.org/packages/source/t/tox/tox-${pkgver}.tar.gz")
-sha256sums=('a03aa022a1f6f82cc21732af0ed48217a3c16873b98e16be22baa7cea74e1eef')
-
-prepare() {
- cp -a tox-$pkgver{,-py2}
-}
-
-build() {
- cd "$srcdir/tox-$pkgver"
- python setup.py build
-
- cd "$srcdir/tox-$pkgver-py2"
- python2 setup.py build
-}
-
-check() {
- # TODO: Make the workaround less dirty
- mkdir "$srcdir/bin"
- touch "$srcdir/bin/tox"
- chmod +x "$srcdir/bin/tox"
- export PATH="$srcdir/bin:$PATH"
-
- cd "$srcdir/tox-$pkgver"
- cat > "$srcdir/bin/tox" << EOF
-#!/usr/bin/env python
-import sys
-from tox import cmdline
-sys.exit(cmdline())
-EOF
-
- XDG_CACHE_HOME="$srcdir" PYTHONPATH="$PWD/build/lib:$PYTHONPATH" py.test
-
- cd "$srcdir/tox-$pkgver-py2"
- cat > "$srcdir/bin/tox" << EOF
-#!/usr/bin/env python2
-import sys
-from tox import cmdline
-sys.exit(cmdline())
-EOF
-
- XDG_CACHE_HOME="$srcdir" PYTHONPATH="$PWD/build/lib:$PYTHONPATH" py.test2
-}
-
-package_python-tox() {
- depends=('python-py' 'python-virtualenv' 'python-setuptools' 'python-pluggy')
-
- cd "$srcdir/tox-$pkgver"
- python setup.py install --root="$pkgdir" --optimize=1
- ln -s tox "${pkgdir}/usr/bin/tox3"
-}
-
-package_python2-tox() {
- depends=('python2-py' 'python2-virtualenv' 'python2-setuptools' 'python2-pluggy')
-
- cd "$srcdir/tox-$pkgver-py2"
- python2 setup.py install --root="$pkgdir" --optimize=1
- mv "${pkgdir}"/usr/bin/tox{,2}
- mv "${pkgdir}"/usr/bin/{tox-quickstart,tox2-quickstart}
-}
Copied: python-tox/repos/community-any/PKGBUILD (from rev 146582, python-tox/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2015-11-11 14:43:40 UTC (rev 146583)
@@ -0,0 +1,59 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Thomas Weißschuh <thomas t-8ch.de>
+# Contributor: George Brooke <george+arch.aur at george-brooke.co.uk>
+# Contributor: Sebastian Wiesner <lunaryorn googlemail com>
+
+pkgbase=python-tox
+pkgname=(python-tox python2-tox)
+pkgver=2.2.0
+pkgrel=1
+pkgdesc='Python virtualenv management and testing tool'
+arch=('any')
+url='http://testrun.org/tox/latest/'
+license=('GPL2')
+makedepends=('python-setuptools' 'python2-setuptools' 'python-py' 'python2-py' 'python-virtualenv' 'python2-virtualenv' 'python-pluggy' 'python2-pluggy')
+checkdepends=('python-pytest' 'python2-pytest' 'python-pip' 'python2-pip')
+source=("http://pypi.python.org/packages/source/t/tox/tox-${pkgver}.tar.gz")
+sha256sums=('121685ff0ba93c6a95e17cdd872cc804aab9f62ccdaa233bb629fecfe2ceb255')
+
+prepare() {
+ cp -a tox-$pkgver{,-py2}
+}
+
+build() {
+ cd "$srcdir/tox-$pkgver"
+ python setup.py build
+
+ cd "$srcdir/tox-$pkgver-py2"
+ python2 setup.py build
+}
+
+check() {
+ # Hack entry points by installing it
+
+ cd "$srcdir/tox-$pkgver"
+ python setup.py install --root="$PWD/tmp_install" --optimize=1
+ XDG_CACHE_HOME="$srcdir" PATH="$PWD/tmp_install/usr/bin:$PATH" PYTHONPATH="$PWD/tmp_install/usr/lib/python3.5/site-packages:$PYTHONPATH" py.test
+
+ cd "$srcdir/tox-$pkgver-py2"
+ python2 setup.py install --root="$PWD/tmp_install" --optimize=1
+ XDG_CACHE_HOME="$srcdir" PATH="$PWD/tmp_install/usr/bin:$PATH" PYTHONPATH="$PWD/tmp_install/usr/lib/python2.7/site-packages:$PYTHONPATH" py.test2
+}
+
+package_python-tox() {
+ depends=('python-py' 'python-virtualenv' 'python-setuptools' 'python-pluggy')
+
+ cd "$srcdir/tox-$pkgver"
+ python setup.py install --root="$pkgdir" --optimize=1
+ ln -s tox "${pkgdir}/usr/bin/tox3"
+}
+
+package_python2-tox() {
+ depends=('python2-py' 'python2-virtualenv' 'python2-setuptools' 'python2-pluggy')
+
+ cd "$srcdir/tox-$pkgver-py2"
+ python2 setup.py install --root="$pkgdir" --optimize=1
+ mv "${pkgdir}"/usr/bin/tox{,2}
+ mv "${pkgdir}"/usr/bin/{tox-quickstart,tox2-quickstart}
+}
More information about the arch-commits
mailing list