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

Felix Yan felixonmars at archlinux.org
Tue Dec 15 00:08:04 UTC 2020


    Date: Tuesday, December 15, 2020 @ 00:08:03
  Author: felixonmars
Revision: 404335

archrelease: copy trunk to extra-any

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

----------+
 PKGBUILD |  238 ++++++++++++++++++++++++++++++-------------------------------
 1 file changed, 119 insertions(+), 119 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2020-12-15 00:07:51 UTC (rev 404334)
+++ PKGBUILD	2020-12-15 00:08:03 UTC (rev 404335)
@@ -1,119 +0,0 @@
-# Maintainer: Dan McGee <dan at archlinux.org>
-# Contributor: Eli Schwartz <eschwartz at archlinux.org>
-# Contributor: Sebastien Binet <binet at lblbox>
-
-pkgname=('python-pip' 'python2-pip')
-pkgver=20.2.1
-pkgrel=1
-pkgdesc="The PyPA recommended tool for installing Python packages"
-url="https://pip.pypa.io/"
-arch=('any')
-license=('MIT')
-_deps=('appdirs' 'cachecontrol' 'colorama' 'contextlib2' 'distlib' 'distro' 'html5lib'
-       'packaging' 'pep517' 'progress' 'requests' 'retrying' 'resolvelib' 'setuptools' 'six' 'toml'
-       # add these until https://github.com/pypa/pip/issues/5354#issuecomment-672678167 is resolved
-       'pyopenssl')
-makedepends=("${_deps[@]/#/python-}" "${_deps[@]/#/python2-}" 'python2-ipaddress' 'python-sphinx')
-checkdepends=('python-pytest-runner' 'python-scripttest' 'python-virtualenv' 'python-pretend'
-              'python-yaml' 'python-mock' 'python-freezegun' 'python-cryptography' 'python-pip'
-              'python-wheel' 'python-werkzeug' 'python-csv23' 'git' 'subversion')
-source=("pip-${pkgver}.tar.gz::https://github.com/pypa/pip/archive/${pkgver}.tar.gz"
-        pip-fix-unbundle.patch::https://github.com/pypa/pip/commit/b215120b5ab1315c963ee409b720753ac690c7f6.patch
-        pip-packaging-xfail.patch::https://github.com/pypa/pip/commit/68713c0a26395e68240445fae62940091cb45519.patch)
-sha512sums=('52abcc336a3c06b0e2b790a7fd4283483b46c1cc6be8e89d8640072ae4517d79afa074683622f8374ebf76a7c3516a05f261e35363327d5d68fb15ec6e6718cd'
-            '36a41a80a205258740b7a192e7cc0df96cb66ff82f6263705355246ae9eda04b79f75c9953623129e12eb45c99e8a911dfa134870e6fff357c3f57ee6f38d337'
-            '08e9bbef95f0d725244d04eee4b5b329fddac2471e9c0bf68f8155d2154a40f50ef3bb62a75cfbe138fb2356056ecedeed6ea93f90e2a928324cca7fdb2fffbf')
-
-shopt -s extglob
-prepare() {
-  cd "$srcdir/pip-$pkgver"
-  patch -p1 -i ../pip-fix-unbundle.patch
-  patch -p1 -i ../pip-packaging-xfail.patch
-
-  # Remove certifi usage
-  sed -i 's|from pip._vendor.certifi import where|where = lambda: "/etc/ssl/certs/ca-certificates.crt"|' src/pip/_internal/commands/debug.py
-
-  rm -rf src/pip/_vendor/!(__init__.py)
-  sed -i -e 's/DEBUNDLED = False/DEBUNDLED = True/' \
-            src/pip/_vendor/__init__.py
-}
-
-build() {
-  cd "$srcdir/pip-$pkgver"
-
-  python setup.py build
-  python2 setup.py build
-
-  cd docs/
-  PYTHONPATH="$srcdir/pip-$pkgver/src/" python pip_sphinxext.py
-  PYTHONPATH="$srcdir/pip-$pkgver/src/" sphinx-build -W -b man -d build/doctrees/man man build/man -c html
-  mkdir -p build/man-pip2
-  cd build/man
-  for manfile in *; do
-    sed 's/pip/pip2/g;s/PIP/PIP2/g' $manfile > ../man-pip2/${manfile/pip/pip2}
-  done
-}
-
-check() {
-  cd "$srcdir"/pip-$pkgver
-  pip wheel -w tests/data/common_wheels -r tools/requirements/tests-common_wheels.txt
-  python setup.py install --root="$PWD/tmp_install" --optimize=1
-  # appdirs: https://github.com/pypa/pip/issues/7784
-  # build_env: TODO weird looking errors
-  # virtualenv: https://github.com/pypa/pip/issues/8273
-  PYTHONPATH="$PWD/tmp_install/usr/lib/python3.9/site-packages" PATH="$PWD/tmp_install/usr/bin:$PATH" \
-    python -m pytest -m unit --junit-xml=junit/unit-test.xml --deselect tests/unit/test_appdirs.py::TestSiteConfigDirs::test_site_config_dirs_linux \
-                                                             --deselect tests/unit/test_appdirs.py::TestSiteConfigDirs::test_site_config_dirs_linux_override \
-                                                             --deselect tests/unit/test_appdirs.py::TestSiteConfigDirs::test_site_config_dirs_linux_empty \
-                                                             --deselect tests/unit/test_appdirs.py::TestUserDataDir::test_user_data_dir_osx \
-                                                             --deselect tests/unit/test_appdirs.py::TestUserConfigDir::test_user_config_dir_osx \
-                                                             --deselect tests/unit/test_build_env.py::test_build_env_requirements_check \
-                                                             --deselect tests/unit/test_build_env.py::test_build_env_overlay_prefix_has_priority \
-                                                             --deselect tests/unit/test_build_env.py::test_build_env_isolation \
-                                                             --deselect tests/unit/test_build_env.py::test_build_env_allow_only_one_install \
-                                                             --deselect tests/unit/test_direct_url_helpers.py::test_from_link_vcs_with_source_dir_obtains_commit_id \
-                                                             --deselect tests/unit/test_direct_url_helpers.py::test_from_link_vcs_without_source_dir \
-                                                             --deselect tests/unit/test_wheel_builder.py::test_should_cache_git_sha \
-                                                             --deselect tests/unit/resolution_resolvelib/test_requirement.py::test_new_resolver_full_resolve
-}
-
-package_python-pip() {
-  depends=("${_deps[@]/#/python-}")
-
-  cd "$srcdir/pip-$pkgver"
-  python setup.py install --prefix=/usr --root="$pkgdir"
-
-  install -D -m644 LICENSE.txt \
-	  "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
-
-  install -Dm644 -t "$pkgdir"/usr/share/man/man1 docs/build/man/*
-
-  PYTHONPATH="$pkgdir"/usr/lib/python3.9/site-packages "$pkgdir"/usr/bin/pip completion --bash \
-    | install -Dm644 /dev/stdin "$pkgdir"/usr/share/bash-completion/completions/pip
-  PYTHONPATH="$pkgdir"/usr/lib/python3.9/site-packages "$pkgdir"/usr/bin/pip completion --fish \
-    | install -Dm644 /dev/stdin "$pkgdir"/usr/share/fish/vendor_completions.d/pip.fish
-}
-
-package_python2-pip() {
-  depends=("${_deps[@]/#/python2-}" 'python2-ipaddress')
-  conflicts=('python-pyinstall')
-  replaces=('python-pyinstall')
-
-  cd "$srcdir/pip-$pkgver"
-  python2 setup.py install --prefix=/usr --root="$pkgdir"
-
-  mv "$pkgdir/usr/bin/pip" "$pkgdir/usr/bin/pip2"
-  sed -i "s|#!/usr/bin/env python$|#!/usr/bin/env python2|" \
-    ${pkgdir}/usr/lib/python2.7/site-packages/pip/__init__.py
-  python2 -m compileall ${pkgdir}/usr/lib/python2.7/site-packages/pip/__init__.py
-
-  install -D -m644 LICENSE.txt \
-	  "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
-
-  install -Dm644 -t "$pkgdir"/usr/share/man/man1 docs/build/man-pip2/*
-
-  PYTHONPATH="$pkgdir"/usr/lib/python2.7/site-packages "$pkgdir"/usr/bin/pip2 completion --bash \
-    | install -Dm644 /dev/stdin "$pkgdir"/usr/share/bash-completion/completions/pip2
-  PYTHONPATH="$pkgdir"/usr/lib/python2.7/site-packages "$pkgdir"/usr/bin/pip2 completion --fish \
-    | install -Dm644 /dev/stdin "$pkgdir"/usr/share/fish/vendor_completions.d/pip2.fish
-}

Copied: python-pip/repos/extra-any/PKGBUILD (from rev 404334, python-pip/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2020-12-15 00:08:03 UTC (rev 404335)
@@ -0,0 +1,119 @@
+# Maintainer: Dan McGee <dan at archlinux.org>
+# Contributor: Eli Schwartz <eschwartz at archlinux.org>
+# Contributor: Sebastien Binet <binet at lblbox>
+
+pkgname=('python-pip' 'python2-pip')
+pkgver=20.2.2
+pkgrel=1
+pkgdesc="The PyPA recommended tool for installing Python packages"
+url="https://pip.pypa.io/"
+arch=('any')
+license=('MIT')
+_deps=('appdirs' 'cachecontrol' 'colorama' 'contextlib2' 'distlib' 'distro' 'html5lib'
+       'packaging' 'pep517' 'progress' 'requests' 'retrying' 'resolvelib' 'setuptools' 'six' 'toml'
+       # add these until https://github.com/pypa/pip/issues/5354#issuecomment-672678167 is resolved
+       'pyopenssl')
+makedepends=("${_deps[@]/#/python-}" "${_deps[@]/#/python2-}" 'python2-ipaddress' 'python-sphinx')
+checkdepends=('python-pytest-runner' 'python-scripttest' 'python-virtualenv' 'python-pretend'
+              'python-yaml' 'python-mock' 'python-freezegun' 'python-cryptography' 'python-pip'
+              'python-wheel' 'python-werkzeug' 'python-csv23' 'git' 'subversion')
+source=("pip-${pkgver}.tar.gz::https://github.com/pypa/pip/archive/${pkgver}.tar.gz"
+        pip-fix-unbundle.patch::https://github.com/pypa/pip/commit/b215120b5ab1315c963ee409b720753ac690c7f6.patch
+        pip-packaging-xfail.patch::https://github.com/pypa/pip/commit/68713c0a26395e68240445fae62940091cb45519.patch)
+sha512sums=('0b000977f169900eebd4afeabfc7bd59b104246bbb048ce5b4db7f701e20ef1caef22c7ca2311843eafc4a37abbb81a74beddddf655eeaf2e33e3949d5a811e6'
+            '36a41a80a205258740b7a192e7cc0df96cb66ff82f6263705355246ae9eda04b79f75c9953623129e12eb45c99e8a911dfa134870e6fff357c3f57ee6f38d337'
+            '08e9bbef95f0d725244d04eee4b5b329fddac2471e9c0bf68f8155d2154a40f50ef3bb62a75cfbe138fb2356056ecedeed6ea93f90e2a928324cca7fdb2fffbf')
+
+shopt -s extglob
+prepare() {
+  cd "$srcdir/pip-$pkgver"
+  patch -p1 -i ../pip-fix-unbundle.patch
+  patch -p1 -i ../pip-packaging-xfail.patch
+
+  # Remove certifi usage
+  sed -i 's|from pip._vendor.certifi import where|where = lambda: "/etc/ssl/certs/ca-certificates.crt"|' src/pip/_internal/commands/debug.py
+
+  rm -rf src/pip/_vendor/!(__init__.py)
+  sed -i -e 's/DEBUNDLED = False/DEBUNDLED = True/' \
+            src/pip/_vendor/__init__.py
+}
+
+build() {
+  cd "$srcdir/pip-$pkgver"
+
+  python setup.py build
+  python2 setup.py build
+
+  cd docs/
+  PYTHONPATH="$srcdir/pip-$pkgver/src/" python pip_sphinxext.py
+  PYTHONPATH="$srcdir/pip-$pkgver/src/" sphinx-build -W -b man -d build/doctrees/man man build/man -c html
+  mkdir -p build/man-pip2
+  cd build/man
+  for manfile in *; do
+    sed 's/pip/pip2/g;s/PIP/PIP2/g' $manfile > ../man-pip2/${manfile/pip/pip2}
+  done
+}
+
+check() {
+  cd "$srcdir"/pip-$pkgver
+  pip wheel -w tests/data/common_wheels -r tools/requirements/tests-common_wheels.txt
+  python setup.py install --root="$PWD/tmp_install" --optimize=1
+  # appdirs: https://github.com/pypa/pip/issues/7784
+  # build_env: TODO weird looking errors
+  # virtualenv: https://github.com/pypa/pip/issues/8273
+  PYTHONPATH="$PWD/tmp_install/usr/lib/python3.9/site-packages" PATH="$PWD/tmp_install/usr/bin:$PATH" \
+    python -m pytest -m unit --junit-xml=junit/unit-test.xml --deselect tests/unit/test_appdirs.py::TestSiteConfigDirs::test_site_config_dirs_linux \
+                                                             --deselect tests/unit/test_appdirs.py::TestSiteConfigDirs::test_site_config_dirs_linux_override \
+                                                             --deselect tests/unit/test_appdirs.py::TestSiteConfigDirs::test_site_config_dirs_linux_empty \
+                                                             --deselect tests/unit/test_appdirs.py::TestUserDataDir::test_user_data_dir_osx \
+                                                             --deselect tests/unit/test_appdirs.py::TestUserConfigDir::test_user_config_dir_osx \
+                                                             --deselect tests/unit/test_build_env.py::test_build_env_requirements_check \
+                                                             --deselect tests/unit/test_build_env.py::test_build_env_overlay_prefix_has_priority \
+                                                             --deselect tests/unit/test_build_env.py::test_build_env_isolation \
+                                                             --deselect tests/unit/test_build_env.py::test_build_env_allow_only_one_install \
+                                                             --deselect tests/unit/test_direct_url_helpers.py::test_from_link_vcs_with_source_dir_obtains_commit_id \
+                                                             --deselect tests/unit/test_direct_url_helpers.py::test_from_link_vcs_without_source_dir \
+                                                             --deselect tests/unit/test_wheel_builder.py::test_should_cache_git_sha \
+                                                             --deselect tests/unit/resolution_resolvelib/test_requirement.py::test_new_resolver_full_resolve
+}
+
+package_python-pip() {
+  depends=("${_deps[@]/#/python-}")
+
+  cd "$srcdir/pip-$pkgver"
+  python setup.py install --prefix=/usr --root="$pkgdir"
+
+  install -D -m644 LICENSE.txt \
+	  "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+
+  install -Dm644 -t "$pkgdir"/usr/share/man/man1 docs/build/man/*
+
+  PYTHONPATH="$pkgdir"/usr/lib/python3.9/site-packages "$pkgdir"/usr/bin/pip completion --bash \
+    | install -Dm644 /dev/stdin "$pkgdir"/usr/share/bash-completion/completions/pip
+  PYTHONPATH="$pkgdir"/usr/lib/python3.9/site-packages "$pkgdir"/usr/bin/pip completion --fish \
+    | install -Dm644 /dev/stdin "$pkgdir"/usr/share/fish/vendor_completions.d/pip.fish
+}
+
+package_python2-pip() {
+  depends=("${_deps[@]/#/python2-}" 'python2-ipaddress')
+  conflicts=('python-pyinstall')
+  replaces=('python-pyinstall')
+
+  cd "$srcdir/pip-$pkgver"
+  python2 setup.py install --prefix=/usr --root="$pkgdir"
+
+  mv "$pkgdir/usr/bin/pip" "$pkgdir/usr/bin/pip2"
+  sed -i "s|#!/usr/bin/env python$|#!/usr/bin/env python2|" \
+    ${pkgdir}/usr/lib/python2.7/site-packages/pip/__init__.py
+  python2 -m compileall ${pkgdir}/usr/lib/python2.7/site-packages/pip/__init__.py
+
+  install -D -m644 LICENSE.txt \
+	  "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+
+  install -Dm644 -t "$pkgdir"/usr/share/man/man1 docs/build/man-pip2/*
+
+  PYTHONPATH="$pkgdir"/usr/lib/python2.7/site-packages "$pkgdir"/usr/bin/pip2 completion --bash \
+    | install -Dm644 /dev/stdin "$pkgdir"/usr/share/bash-completion/completions/pip2
+  PYTHONPATH="$pkgdir"/usr/lib/python2.7/site-packages "$pkgdir"/usr/bin/pip2 completion --fish \
+    | install -Dm644 /dev/stdin "$pkgdir"/usr/share/fish/vendor_completions.d/pip2.fish
+}



More information about the arch-commits mailing list