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

Felix Yan felixonmars at archlinux.org
Fri Mar 20 17:49:44 UTC 2020


    Date: Friday, March 20, 2020 @ 17:49:43
  Author: felixonmars
Revision: 378014

archrelease: copy trunk to extra-any

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

----------+
 PKGBUILD |  154 +++++++++++++++++++++++++++++++------------------------------
 1 file changed, 79 insertions(+), 75 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2020-03-20 17:49:28 UTC (rev 378013)
+++ PKGBUILD	2020-03-20 17:49:43 UTC (rev 378014)
@@ -1,75 +0,0 @@
-# Maintainer: Dan McGee <dan at archlinux.org>
-# Maintainer: Felix Yan <felixonmars at archlinux.org>
-# Contributor: Daniele Paolella <dp at mcrservice.it>
-
-pkgname=('python-virtualenv' 'python2-virtualenv')
-pkgver=16.1.0
-pkgrel=3
-pkgdesc="Virtual Python Environment builder"
-url="https://virtualenv.pypa.io/"
-arch=('any')
-license=('MIT')
-makedepends=('python-setuptools' 'python-sphinx' 'python2-setuptools' 'python2-sphinx')
-checkdepends=('python-pytest-runner' 'python-mock' 'python2-pytest-runner' 'python2-mock')
-replaces=('virtualenv')
-conflicts=('virtualenv')
-options=('!makeflags')
-source=(${pkgname}-${pkgver}.tar.gz::https://github.com/pypa/virtualenv/archive/${pkgver}.tar.gz)
-sha512sums=('a946b18c6b35fed32329ff398a55f2b3e3bf0b96ff00b11f70255dad9af7a341d0d2b1f5a5a62792bf5a66096401055909afcddfe47302420709abce17e1c151')
-
-prepare() {
-  cp -a virtualenv-${pkgver}{,-py2}
-  cd virtualenv-${pkgver}-py2
-  sed -i "s|#!/usr/bin/env python$|#!/usr/bin/env python2|" src/virtualenv.py
-}
-
-build() {
-  (cd virtualenv-${pkgver}
-    python setup.py build
-    make -C docs text man
-  )
-  (cd virtualenv-${pkgver}-py2
-    python2 setup.py build
-    make -C docs text man
-  )
-}
-
-check() {
-  (cd virtualenv-${pkgver}
-    python setup.py pytest
-  )
-  (cd virtualenv-${pkgver}-py2
-    python2 setup.py pytest
-  )
-}
-
-package_python-virtualenv() {
-  depends=('python-setuptools')
-
-  cd virtualenv-$pkgver
-  python setup.py install --prefix=/usr --root="$pkgdir" --skip-build
-  install -Dm 644 docs/_build/text/* -t "${pkgdir}/usr/share/doc/${pkgname}"
-  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.txt \
-    "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
-}
-
-package_python2-virtualenv() {
-  depends=('python2-setuptools')
-
-  cd virtualenv-$pkgver-py2
-  python2 setup.py install --prefix=/usr --root="$pkgdir" --skip-build
-  install -Dm 644 docs/_build/text/* -t "${pkgdir}/usr/share/doc/${pkgname}"
-  install -Dm 644 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.txt \
-    "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
-}

Copied: python-virtualenv/repos/extra-any/PKGBUILD (from rev 378013, python-virtualenv/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2020-03-20 17:49:43 UTC (rev 378014)
@@ -0,0 +1,79 @@
+# Maintainer: Dan McGee <dan at archlinux.org>
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Daniele Paolella <dp at mcrservice.it>
+
+pkgname=('python-virtualenv' 'python2-virtualenv')
+pkgver=16.2.0
+pkgrel=1
+pkgdesc="Virtual Python Environment builder"
+url="https://virtualenv.pypa.io/"
+arch=('any')
+license=('MIT')
+makedepends=('python-setuptools' 'python-sphinx' 'python2-setuptools' 'towncrier')
+checkdepends=('python-pytest-runner' 'python-mock' 'python2-pytest-runner' 'python2-mock'
+              'python-pip' 'python2-pip')
+replaces=('virtualenv')
+conflicts=('virtualenv')
+options=('!makeflags')
+source=(${pkgname}-${pkgver}.tar.gz::https://github.com/pypa/virtualenv/archive/${pkgver}.tar.gz)
+sha512sums=('1c80f1ea693a4223d78571919bf7e33650e569060674cacf880f2142e6cd78a39d2cd2c2310bdbb6968ff0dc2e75ab1245029a0e792228d15dc33569b237d58a')
+
+prepare() {
+  cp -a virtualenv-${pkgver}{,-py2}
+}
+
+build() {
+  (cd virtualenv-${pkgver}
+    python setup.py build
+    export PYTHONPATH="$PWD/build/lib"
+    sphinx-build -b man docs docs/_build/man
+    sphinx-build -b text docs docs/_build/text
+  )
+  (cd virtualenv-${pkgver}-py2
+    python2 setup.py build
+    export PYTHONPATH="$PWD/build/lib"
+    sphinx-build -b man docs docs/_build/man
+    sphinx-build -b text docs docs/_build/text
+  )
+}
+
+check() {
+  (cd virtualenv-${pkgver}
+    python setup.py pytest --addopts "--deselect tests/test_source_content.py::test_wheel_contains"
+  )
+  (cd virtualenv-${pkgver}-py2
+    python2 setup.py pytest --addopts "--deselect tests/test_source_content.py::test_wheel_contains \
+                                       --deselect tests/test_bootstrap.py"
+  )
+}
+
+package_python-virtualenv() {
+  depends=('python-setuptools')
+
+  cd virtualenv-$pkgver
+  python setup.py install --prefix=/usr --root="$pkgdir" --skip-build
+  install -Dm 644 docs/_build/text/* -t "${pkgdir}/usr/share/doc/${pkgname}"
+  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.txt \
+    "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}
+
+package_python2-virtualenv() {
+  depends=('python2-setuptools')
+
+  cd virtualenv-$pkgver-py2
+  python2 setup.py install --prefix=/usr --root="$pkgdir" --skip-build
+  install -Dm 644 docs/_build/text/* -t "${pkgdir}/usr/share/doc/${pkgname}"
+  install -Dm 644 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.txt \
+    "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}



More information about the arch-commits mailing list