[arch-commits] Commit in python-virtualenv/repos/extra-any (PKGBUILD PKGBUILD)

Felix Yan felixonmars at archlinux.org
Tue May 25 21:42:57 UTC 2021


    Date: Tuesday, May 25, 2021 @ 21:42:57
  Author: felixonmars
Revision: 416456

archrelease: copy trunk to extra-any

Added:
  python-virtualenv/repos/extra-any/PKGBUILD
    (from rev 416455, python-virtualenv/trunk/PKGBUILD)
Deleted:
  python-virtualenv/repos/extra-any/PKGBUILD

----------+
 PKGBUILD |  164 ++++++++++++++++++++++++++++++-------------------------------
 1 file changed, 82 insertions(+), 82 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2021-05-25 21:42:43 UTC (rev 416455)
+++ PKGBUILD	2021-05-25 21:42:57 UTC (rev 416456)
@@ -1,82 +0,0 @@
-# Maintainer: Dan McGee <dan at archlinux.org>
-# Maintainer: Felix Yan <felixonmars at archlinux.org>
-# Contributor: Daniele Paolella <dp at mcrservice.it>
-
-pkgbase=python-virtualenv
-pkgname=('python-virtualenv' 'python2-virtualenv')
-pkgver=20.4.6
-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=('66fb2cc7321fba124de79cada299491ae0448af13fc109b0ca54cd8cea6983e4fa14ee5a6e2ecb7736d229523d5e6ae9b5be5ad07fe7f3c94d9c7b32d2682595')
-
-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
-
-  # workaround pip vendorod certifi
-  sed -i "s|pkgutil.get_data(\"pip._vendor.certifi\", \"cacert.pem\")|open(os.path.join('/etc/ssl/certs/ca-certificates.crt'), 'rb').read()|" virtualenv-$pkgver/tests/conftest.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-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/1/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-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/1/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 416455, python-virtualenv/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2021-05-25 21:42:57 UTC (rev 416456)
@@ -0,0 +1,82 @@
+# Maintainer: Dan McGee <dan at archlinux.org>
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Daniele Paolella <dp at mcrservice.it>
+
+pkgbase=python-virtualenv
+pkgname=('python-virtualenv' 'python2-virtualenv')
+pkgver=20.4.7
+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=('d2868e83a7add60e3d3f85dbdb3c61655f7461e6a46e4b7433c1dd3fbe0df17ee1fd09d1a2f4fe727eabeb8ddecee2484e1c770b78b7fafd019a330af07098d7')
+
+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
+
+  # workaround pip vendorod certifi
+  sed -i "s|pkgutil.get_data(\"pip._vendor.certifi\", \"cacert.pem\")|open(os.path.join('/etc/ssl/certs/ca-certificates.crt'), 'rb').read()|" virtualenv-$pkgver/tests/conftest.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-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-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/
+}



More information about the arch-commits mailing list