[arch-commits] Commit in python-virtualenv/repos/extra-any (PKGBUILD PKGBUILD)
Felix Yan
felixonmars at gemini.archlinux.org
Tue Aug 30 10:40:02 UTC 2022
Date: Tuesday, August 30, 2022 @ 10:40:02
Author: felixonmars
Revision: 454765
archrelease: copy trunk to extra-any
Added:
python-virtualenv/repos/extra-any/PKGBUILD
(from rev 454764, python-virtualenv/trunk/PKGBUILD)
Deleted:
python-virtualenv/repos/extra-any/PKGBUILD
----------+
PKGBUILD | 128 ++++++++++++++++++++++++++++++-------------------------------
1 file changed, 64 insertions(+), 64 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2022-08-30 10:39:47 UTC (rev 454764)
+++ PKGBUILD 2022-08-30 10:40:02 UTC (rev 454765)
@@ -1,64 +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
-pkgver=20.11.2
-pkgrel=1
-pkgdesc="Virtual Python Environment builder"
-url="https://virtualenv.pypa.io/"
-arch=('any')
-license=('MIT')
-depends=('python-platformdirs' 'python-distlib' 'python-filelock' 'python-six'
- 'python-importlib-metadata')
-makedepends=('python-setuptools' 'python-platformdirs' 'python-distlib' 'python-filelock'
- 'python-six' 'python-setuptools-scm' 'python-sphinx' 'python-sphinx_rtd_theme'
- 'python-sphinx-argparse' 'towncrier' 'python-importlib-metadata')
-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=(https://github.com/pypa/virtualenv/archive/$pkgver/$pkgbase-$pkgver.tar.gz)
-sha512sums=('8935f05100f844036b758741b2c4b8f5b9dde6da8b28cd002e280034c6e9b553c4d861e1b9980cc82811fbf2dbf2400c30255ae672c0ae237816937c77d64100')
-
-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
-
- # Use importlib-metadata directly for Python 3.9
- sed -i 's/from backports.entry_points_selectable import entry_points/from importlib_metadata import entry_points/' virtualenv-$pkgver/src/virtualenv/run/plugin/base.py
- sed -i '/backports.entry_points_selectable/d' virtualenv-$pkgver/setup.cfg
-}
-
-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
- )
-}
-
-check() {
- cd virtualenv-$pkgver
- PYTHONPATH="$PWD/build/lib:$PWD/src" python -m pytest
-}
-
-package() {
- 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/
-}
Copied: python-virtualenv/repos/extra-any/PKGBUILD (from rev 454764, python-virtualenv/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2022-08-30 10:40:02 UTC (rev 454765)
@@ -0,0 +1,64 @@
+# 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
+pkgver=20.12.0
+pkgrel=1
+pkgdesc="Virtual Python Environment builder"
+url="https://virtualenv.pypa.io/"
+arch=('any')
+license=('MIT')
+depends=('python-platformdirs' 'python-distlib' 'python-filelock' 'python-six'
+ 'python-importlib-metadata')
+makedepends=('python-setuptools' 'python-platformdirs' 'python-distlib' 'python-filelock'
+ 'python-six' 'python-setuptools-scm' 'python-sphinx' 'python-sphinx_rtd_theme'
+ 'python-sphinx-argparse' 'towncrier' 'python-importlib-metadata')
+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=(https://github.com/pypa/virtualenv/archive/$pkgver/$pkgbase-$pkgver.tar.gz)
+sha512sums=('e4d02a5ad4653cc2d03ab870b7059a6ee46ffea916706b48564fc2085c609da20b031600870bde71420edb65b17f98535003403e5fabded68ac0fff69d4c6f7f')
+
+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
+
+ # Use importlib-metadata directly for Python 3.9
+ sed -i 's/from backports.entry_points_selectable import entry_points/from importlib_metadata import entry_points/' virtualenv-$pkgver/src/virtualenv/run/plugin/base.py
+ sed -i '/backports.entry_points_selectable/d' virtualenv-$pkgver/setup.cfg
+}
+
+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
+ )
+}
+
+check() {
+ cd virtualenv-$pkgver
+ PYTHONPATH="$PWD/build/lib:$PWD/src" python -m pytest
+}
+
+package() {
+ 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/
+}
More information about the arch-commits
mailing list