Date: Saturday, October 24, 2020 @ 18:56:12 Author: felixonmars Revision: 398778
archrelease: copy trunk to extra-any Added: python-virtualenv/repos/extra-any/PKGBUILD (from rev 398777, python-virtualenv/trunk/PKGBUILD) Deleted: python-virtualenv/repos/extra-any/PKGBUILD ----------+ PKGBUILD | 158 ++++++++++++++++++++++++++++++------------------------------- 1 file changed, 79 insertions(+), 79 deletions(-) Deleted: PKGBUILD =================================================================== --- PKGBUILD 2020-10-24 18:55:53 UTC (rev 398777) +++ PKGBUILD 2020-10-24 18:56:12 UTC (rev 398778) @@ -1,79 +0,0 @@ -# Maintainer: Dan McGee <d...@archlinux.org> -# Maintainer: Felix Yan <felixonm...@archlinux.org> -# Contributor: Daniele Paolella <d...@mcrservice.it> - -pkgbase=python-virtualenv -pkgname=('python-virtualenv' 'python2-virtualenv') -pkgver=20.0.31 -pkgrel=1 -pkgdesc="Virtual Python Environment builder" -url="https://virtualenv.pypa.io/" -arch=('any') -license=('MIT') -makedepends=('python-setuptools' 'python-appdirs' 'python-distlib' 'python-filelock' 'python-six' - 'python2-setuptools' 'python2-appdirs' 'python2-distlib' 'python2-filelock' 'python2-six' - 'python2-importlib-metadata' 'python2-importlib_resources' 'python2-pathlib2' - 'python-setuptools-scm' 'python2-setuptools-scm' 'python-sphinx' - 'python-sphinx_rtd_theme' 'python-sphinx-argparse' 'towncrier') -checkdepends=('python-pytest-freezegun' 'python-pytest-mock' 'python-pip' 'python-coverage' 'fish' - 'xonsh' 'python-flaky') # 'tcsh' removed: randomly hangs tests -replaces=('virtualenv') -conflicts=('virtualenv') -options=('!makeflags') -source=($pkgbase-$pkgver.tar.gz::https://github.com/pypa/virtualenv/archive/$pkgver.tar.gz) -sha512sums=('9078a6d27b315934aa58450516c9bca89788110faf1bc9471c16ae0ec728eabfe739d03f1fbc27af8a1b6c7f82e7a2fff63da8bc53a7cf4a6591777f3371b18f') - -export SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver - -prepare() { - # TODO: figure out why - sed -i '/test_py_info_to_system_raises/i @pytest.mark.skip' virtualenv-$pkgver/tests/unit/discovery/py_info/test_py_info.py - - cp -a virtualenv-$pkgver{,-py2} -} - -build() { - (cd virtualenv-$pkgver - python setup.py build egg_info - export PYTHONPATH="$PWD/build/lib:$PWD/src" - sphinx-build -b man docs docs/_build/man - ) - (cd virtualenv-$pkgver-py2 - python2 setup.py build egg_info - ) -} - -check() { - cd virtualenv-$pkgver - PYTHONPATH="$PWD/build/lib:$PWD/src" python -m pytest -} - -package_python-virtualenv() { - depends=('python-setuptools' 'python-appdirs' 'python-distlib' 'python-filelock' 'python-six') - - cd virtualenv-$pkgver - python setup.py install --prefix=/usr --root="$pkgdir" --skip-build - install -Dm 644 docs/_build/man/virtualenv.1 "${pkgdir}/usr/share/man/man1/virtualenv.1" - ln -s virtualenv.1.gz "${pkgdir}/usr/share/man/man1/virtualenv3.1.gz" - - # link to a version with 3 suffix as well - ln "$pkgdir/usr/bin/virtualenv" "$pkgdir/usr/bin/virtualenv3" - - install -D -m644 LICENSE -t \ - "$pkgdir"/usr/share/licenses/$pkgname/ -} - -package_python2-virtualenv() { - depends=('python2-setuptools' 'python2-appdirs' 'python2-distlib' 'python2-filelock' 'python2-six' - 'python2-importlib-metadata' 'python2-importlib_resources' 'python2-pathlib2') - - cd virtualenv-$pkgver-py2 - python2 setup.py install --prefix=/usr --root="$pkgdir" --skip-build - install -Dm 644 ../virtualenv-$pkgver/docs/_build/man/virtualenv.1 "${pkgdir}/usr/share/man/man1/virtualenv2.1" - - # move this "old" version out of the way - mv "$pkgdir/usr/bin/virtualenv" "$pkgdir/usr/bin/virtualenv2" - - install -D -m644 LICENSE -t \ - "$pkgdir"/usr/share/licenses/$pkgname/ -} Copied: python-virtualenv/repos/extra-any/PKGBUILD (from rev 398777, python-virtualenv/trunk/PKGBUILD) =================================================================== --- PKGBUILD (rev 0) +++ PKGBUILD 2020-10-24 18:56:12 UTC (rev 398778) @@ -0,0 +1,79 @@ +# Maintainer: Dan McGee <d...@archlinux.org> +# Maintainer: Felix Yan <felixonm...@archlinux.org> +# Contributor: Daniele Paolella <d...@mcrservice.it> + +pkgbase=python-virtualenv +pkgname=('python-virtualenv' 'python2-virtualenv') +pkgver=20.0.32 +pkgrel=1 +pkgdesc="Virtual Python Environment builder" +url="https://virtualenv.pypa.io/" +arch=('any') +license=('MIT') +makedepends=('python-setuptools' 'python-appdirs' 'python-distlib' 'python-filelock' 'python-six' + 'python2-setuptools' 'python2-appdirs' 'python2-distlib' 'python2-filelock' 'python2-six' + 'python2-importlib-metadata' 'python2-importlib_resources' 'python2-pathlib2' + 'python-setuptools-scm' 'python2-setuptools-scm' 'python-sphinx' + 'python-sphinx_rtd_theme' 'python-sphinx-argparse' 'towncrier') +checkdepends=('python-pytest-freezegun' 'python-pytest-mock' 'python-pip' 'python-coverage' 'fish' + 'xonsh' 'python-flaky') # 'tcsh' removed: randomly hangs tests +replaces=('virtualenv') +conflicts=('virtualenv') +options=('!makeflags') +source=($pkgbase-$pkgver.tar.gz::https://github.com/pypa/virtualenv/archive/$pkgver.tar.gz) +sha512sums=('add84326388ddbc9cbd62f5ca9b847a8f07f04d762b420f93f89da582445a025a142be989c38287abe986cf189d3fe8b13dc22d6a8e3ecc4807a9260c48cb357') + +export SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver + +prepare() { + # TODO: figure out why + sed -i '/test_py_info_to_system_raises/i @pytest.mark.skip' virtualenv-$pkgver/tests/unit/discovery/py_info/test_py_info.py + + cp -a virtualenv-$pkgver{,-py2} +} + +build() { + (cd virtualenv-$pkgver + python setup.py build egg_info + export PYTHONPATH="$PWD/build/lib:$PWD/src" + sphinx-build -b man docs docs/_build/man + ) + (cd virtualenv-$pkgver-py2 + python2 setup.py build egg_info + ) +} + +check() { + cd virtualenv-$pkgver + PYTHONPATH="$PWD/build/lib:$PWD/src" python -m pytest +} + +package_python-virtualenv() { + depends=('python-setuptools' 'python-appdirs' 'python-distlib' 'python-filelock' 'python-six') + + cd virtualenv-$pkgver + python setup.py install --prefix=/usr --root="$pkgdir" --skip-build + install -Dm 644 docs/_build/man/virtualenv.1 "${pkgdir}/usr/share/man/man1/virtualenv.1" + ln -s virtualenv.1.gz "${pkgdir}/usr/share/man/man1/virtualenv3.1.gz" + + # link to a version with 3 suffix as well + ln "$pkgdir/usr/bin/virtualenv" "$pkgdir/usr/bin/virtualenv3" + + install -D -m644 LICENSE -t \ + "$pkgdir"/usr/share/licenses/$pkgname/ +} + +package_python2-virtualenv() { + depends=('python2-setuptools' 'python2-appdirs' 'python2-distlib' 'python2-filelock' 'python2-six' + 'python2-importlib-metadata' 'python2-importlib_resources' 'python2-pathlib2') + + cd virtualenv-$pkgver-py2 + python2 setup.py install --prefix=/usr --root="$pkgdir" --skip-build + install -Dm 644 ../virtualenv-$pkgver/docs/_build/man/virtualenv.1 "${pkgdir}/usr/share/man/man1/virtualenv2.1" + + # move this "old" version out of the way + mv "$pkgdir/usr/bin/virtualenv" "$pkgdir/usr/bin/virtualenv2" + + install -D -m644 LICENSE -t \ + "$pkgdir"/usr/share/licenses/$pkgname/ +}