[arch-commits] Commit in python-pip/trunk (PKGBUILD)

Felix Yan felixonmars at archlinux.org
Tue Feb 25 15:31:26 UTC 2020


    Date: Tuesday, February 25, 2020 @ 15:31:26
  Author: felixonmars
Revision: 376188

upgpkg: python-pip 20.0-1

Modified:
  python-pip/trunk/PKGBUILD

----------+
 PKGBUILD |   28 ++++++++++++++++++++++------
 1 file changed, 22 insertions(+), 6 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-02-25 12:38:34 UTC (rev 376187)
+++ PKGBUILD	2020-02-25 15:31:26 UTC (rev 376188)
@@ -3,7 +3,7 @@
 # Contributor: Sebastien Binet <binet at lblbox>
 
 pkgname=('python-pip' 'python2-pip')
-pkgver=19.3.1
+pkgver=20.0
 pkgrel=1
 pkgdesc="The PyPA recommended tool for installing Python packages"
 url="https://pip.pypa.io/"
@@ -14,15 +14,21 @@
        'setuptools' 'six' 'webencodings')
 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-pip' 'python-wheel'
-              'git' 'subversion')
-source=("pip-${pkgver}.tar.gz::https://github.com/pypa/pip/archive/${pkgver}.tar.gz")
-sha512sums=('39446c0ab6e4495d98f22923a2a76901b024d9047b60d92580b21d447a718e5285cfd66f8ad0c20befcfe1abc7f06be29b6a5644d1b30265d3b67399fe76e033')
+              'python-yaml' 'python-mock' 'python-freezegun' 'python-cryptography' 'python-pip'
+              'python-wheel' 'python-werkzeug' 'git' 'subversion')
+source=("pip-${pkgver}.tar.gz::https://github.com/pypa/pip/archive/${pkgver}.tar.gz"
+        pip-vendor-appdirs.patch::https://github.com/pypa/pip/commit/9be7454fd69081d06a3f8234a08a6d791e13173f.patch)
+sha512sums=('3159efffba5eb3cc4c4302e3b4c842456f81a5fbbe72ea22eac035749da38320056ad417175feceee635710c8e1b8d38260e10c15185bfb42afbb7405eb3dc11'
+            '61732786303ca7ec7828d04099a884534034d50cdd9a7a0de2ace34c28381a992943880f03797a64d5d4f3a76d317d356f76ffff5e3ffd97ed611b234cc05528')
 
 shopt -s extglob
 prepare() {
   cd "$srcdir/pip-$pkgver"
+  patch -p1 -i ../pip-vendor-appdirs.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
@@ -47,8 +53,18 @@
   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
   PYTHONPATH="$PWD/tmp_install/usr/lib/python3.8/site-packages" PATH="$PWD/tmp_install/usr/bin:$PATH" \
-    python setup.py pytest --addopts "-m unit --junit-xml=junit/unit-test.xml" || warning "Tests failed"
+    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
+
 }
 
 package_python-pip() {



More information about the arch-commits mailing list