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

Felix Yan felixonmars at gemini.archlinux.org
Wed Dec 1 11:18:29 UTC 2021


    Date: Wednesday, December 1, 2021 @ 11:18:29
  Author: felixonmars
Revision: 1059167

archrelease: copy trunk to community-staging-any

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

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

Copied: python-tox/repos/community-staging-any/PKGBUILD (from rev 1059163, python-tox/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2021-12-01 11:18:29 UTC (rev 1059167)
@@ -0,0 +1,49 @@
+# 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>
+
+pkgname=python-tox
+pkgver=3.24.4
+pkgrel=3
+pkgdesc='Python virtualenv management and testing tool'
+arch=('any')
+url='https://tox.readthedocs.io'
+license=('GPL2')
+depends=('python-py' 'python-virtualenv' 'python-packaging' 'python-pluggy' 'python-toml' 'python-filelock' 'python-six')
+makedepends=('python-setuptools-scm' 'python-py' 'python-virtualenv'
+             'python-pluggy' 'python-toml'
+             'python-filelock' 'python-freezegun')
+checkdepends=('python-pytest-runner' 'python-pytest-mock'
+              'python-flaky')
+source=("https://pypi.io/packages/source/t/tox/tox-$pkgver.tar.gz")
+sha512sums=('9fe2256276b83bf3bc55ec1876be41da2ff7217187f4bf8f4d728106f9c63fc59d146de5e424f7a90d28b938d312c175f7c815bfd3a17d329bec9ba4102139fc')
+
+prepare() {
+  find tox-$pkgver -name "*.pyc" -delete
+}
+
+build() {
+  export LC_CTYPE=en_US.UTF-8
+
+  cd "$srcdir"/tox-$pkgver
+  python setup.py build
+}
+
+check() {
+  # Hack entry points
+
+  (
+    cd "$srcdir"/tox-$pkgver
+    virtualenv "$srcdir/pyvenv" --system-site-packages
+    . "$srcdir/pyvenv/bin/activate"
+    python setup.py install
+    python setup.py pytest
+  )
+}
+
+package() {
+  cd "$srcdir"/tox-$pkgver
+  python setup.py install --root="$pkgdir" --optimize=1
+  ln -s tox "$pkgdir"/usr/bin/tox3
+}



More information about the arch-commits mailing list