Date: Wednesday, July 14, 2021 @ 17:20:08 Author: felixonmars Revision: 977007
archrelease: copy trunk to community-any Added: python-tox/repos/community-any/PKGBUILD (from rev 977006, python-tox/trunk/PKGBUILD) Deleted: python-tox/repos/community-any/PKGBUILD ----------+ PKGBUILD | 150 ++++++++++++++++++++++++++++++------------------------------- 1 file changed, 75 insertions(+), 75 deletions(-) Deleted: PKGBUILD =================================================================== --- PKGBUILD 2021-07-14 17:19:51 UTC (rev 977006) +++ PKGBUILD 2021-07-14 17:20:08 UTC (rev 977007) @@ -1,75 +0,0 @@ -# Maintainer: Felix Yan <felixonm...@archlinux.org> -# Contributor: Thomas Weißschuh <thomas t-8ch.de> -# Contributor: George Brooke <george+arch....@george-brooke.co.uk> -# Contributor: Sebastian Wiesner <lunaryorn googlemail com> - -pkgbase=python-tox -pkgname=(python-tox python2-tox) -pkgver=3.23.1 -pkgrel=1 -pkgdesc='Python virtualenv management and testing tool' -arch=('any') -url='https://tox.readthedocs.io' -license=('GPL2') -makedepends=('python-setuptools-scm' 'python2-setuptools-scm' 'python-py' 'python2-py' 'python-virtualenv' - 'python2-virtualenv' 'python-pluggy' 'python2-pluggy' 'python-toml' 'python2-toml' - 'python-filelock' 'python2-filelock' 'python-freezegun' 'python2-freezegun') -checkdepends=('python-pytest-runner' 'python2-pytest-runner' 'python-pytest-mock' - 'python2-pytest-mock' 'python-flaky' 'python2-flaky' 'python2-pathlib2') -source=("https://pypi.io/packages/source/t/tox/tox-$pkgver.tar.gz") -sha512sums=('94b58f12f0fa117e80e26e9d422e61f3b43d8467568644fac6fa4f270fee0089e2681709880e97c402f04aaddfb8d2dd65f6f5c7219f0b673b9d567729cdedbb') - -prepare() { - find tox-$pkgver -name "*.pyc" -delete - - cp -a tox-$pkgver{,-py2} -} - -build() { - export LC_CTYPE=en_US.UTF-8 - - cd "$srcdir"/tox-$pkgver - python setup.py build - - cd "$srcdir"/tox-$pkgver-py2 - python2 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 - ) - - ( - cd "$srcdir"/tox-$pkgver-py2 - virtualenv2 "$srcdir/pyvenv-py2" --system-site-packages - . "$srcdir/pyvenv-py2/bin/activate" - python setup.py install - python setup.py pytest - ) -} - -package_python-tox() { - depends=('python-py' 'python-virtualenv' 'python-packaging' 'python-pluggy' 'python-toml' - 'python-filelock' 'python-six') - - 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-packaging' 'python2-pluggy' 'python2-toml' - 'python2-filelock' 'python2-six' 'python2-importlib-metadata') - - 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 977006, python-tox/trunk/PKGBUILD) =================================================================== --- PKGBUILD (rev 0) +++ PKGBUILD 2021-07-14 17:20:08 UTC (rev 977007) @@ -0,0 +1,75 @@ +# Maintainer: Felix Yan <felixonm...@archlinux.org> +# Contributor: Thomas Weißschuh <thomas t-8ch.de> +# Contributor: George Brooke <george+arch....@george-brooke.co.uk> +# Contributor: Sebastian Wiesner <lunaryorn googlemail com> + +pkgbase=python-tox +pkgname=(python-tox python2-tox) +pkgver=3.24.0 +pkgrel=1 +pkgdesc='Python virtualenv management and testing tool' +arch=('any') +url='https://tox.readthedocs.io' +license=('GPL2') +makedepends=('python-setuptools-scm' 'python2-setuptools-scm' 'python-py' 'python2-py' 'python-virtualenv' + 'python2-virtualenv' 'python-pluggy' 'python2-pluggy' 'python-toml' 'python2-toml' + 'python-filelock' 'python2-filelock' 'python-freezegun' 'python2-freezegun') +checkdepends=('python-pytest-runner' 'python2-pytest-runner' 'python-pytest-mock' + 'python2-pytest-mock' 'python-flaky' 'python2-flaky' 'python2-pathlib2') +source=("https://pypi.io/packages/source/t/tox/tox-$pkgver.tar.gz") +sha512sums=('3c15db668452b927904d48e3ea92c2a4a79e6f3c3097fde878132d0796c86bd76597e43c5b2498157df679d4d35c134b64abd125b0ab4b4c0c2b125202120091') + +prepare() { + find tox-$pkgver -name "*.pyc" -delete + + cp -a tox-$pkgver{,-py2} +} + +build() { + export LC_CTYPE=en_US.UTF-8 + + cd "$srcdir"/tox-$pkgver + python setup.py build + + cd "$srcdir"/tox-$pkgver-py2 + python2 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 + ) + + ( + cd "$srcdir"/tox-$pkgver-py2 + virtualenv2 "$srcdir/pyvenv-py2" --system-site-packages + . "$srcdir/pyvenv-py2/bin/activate" + python setup.py install + python setup.py pytest + ) +} + +package_python-tox() { + depends=('python-py' 'python-virtualenv' 'python-packaging' 'python-pluggy' 'python-toml' + 'python-filelock' 'python-six') + + 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-packaging' 'python2-pluggy' 'python2-toml' + 'python2-filelock' 'python2-six' 'python2-importlib-metadata') + + 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} +}