diff options
author | Britney Fransen <brfransen@gmail.com> | 2018-02-23 21:53:20 (GMT) |
---|---|---|
committer | Britney Fransen <brfransen@gmail.com> | 2018-02-23 21:53:20 (GMT) |
commit | 93d93663e33d5cb0b56f716a84627d6b1c6fe613 (patch) | |
tree | f91adf0eab1f5c1f666f8b8c0f310997e9b323a0 | |
parent | 2ec8a25c8d044b9328abb999cb3abc97827b730d (diff) | |
download | linhes_pkgbuild-93d93663e33d5cb0b56f716a84627d6b1c6fe613.zip linhes_pkgbuild-93d93663e33d5cb0b56f716a84627d6b1c6fe613.tar.gz linhes_pkgbuild-93d93663e33d5cb0b56f716a84627d6b1c6fe613.tar.bz2 |
python-setuptools: update to 38.5.1
-rw-r--r-- | abs/core/python_modules/python-setuptools/PKGBUILD | 39 | ||||
-rw-r--r-- | abs/core/python_modules/python-setuptools/__changelog | 1 |
2 files changed, 25 insertions, 15 deletions
diff --git a/abs/core/python_modules/python-setuptools/PKGBUILD b/abs/core/python_modules/python-setuptools/PKGBUILD index 31a941e..2497838 100644 --- a/abs/core/python_modules/python-setuptools/PKGBUILD +++ b/abs/core/python_modules/python-setuptools/PKGBUILD @@ -3,20 +3,22 @@ # Maintainer: Felix Yan <felixonmars@archlinux.org> pkgbase=python-setuptools -pkgname=('python2-setuptools') -pkgver=36.2.0 +pkgname=('python-setuptools' 'python2-setuptools') +pkgver=38.5.1 pkgrel=1 epoch=1 pkgdesc="Easily download, build, install, upgrade, and uninstall Python packages" arch=('any') license=('PSF') url="http://pypi.python.org/pypi/setuptools" -makedepends=('python2-packaging' 'python2-appdirs' +makedepends=('python-packaging' 'python2-packaging' 'python-appdirs' 'python2-appdirs' 'python-pip' 'python2-pip') -checkdepends=('python2-pytest-runner' - 'python2-pytest-flake8' 'python2-backports.unittest_mock' 'git') +checkdepends=('python-pytest-runner' 'python2-pytest-runner' 'python-pytest-flake8' + 'python2-pytest-flake8' 'python-mock' 'python2-mock' 'python-pytest-fixture-config' + 'python2-pytest-fixture-config' 'python-pytest-virtualenv' 'python2-pytest-virtualenv' + 'python-wheel' 'python2-wheel' 'git') source=("$pkgbase-$pkgver.tar.gz::https://github.com/pypa/setuptools/archive/v$pkgver.tar.gz") -sha512sums=('579e63feb9f5ea33e29f4ae3a2736a2cfd18e83927775a56553dbe34bcfa32f325457204333d4f183759dbcd57e4ad7f8b166fcfbf626db597b18e14bbcd9ea4') +sha512sums=('ab164e6de1692a64dbc468958d3150dec4ca357ea25ab4a40382af857217d576e79111c2401b03d5daf741094aa4f2e3ee535ad6d8367f66b1e83692ee9c7cf9') prepare() { # Don't download and install deps @@ -29,22 +31,31 @@ prepare() { -e '/tag_date = 1/d' \ -i setuptools-$pkgver/setup.cfg + # 'Clean' installation is expected to fail since we removed bundled packages + sed -i '/^def test_clean_env_install/i import pytest\n\n@pytest.mark.xfail' setuptools-$pkgver/setuptools/tests/test_virtualenv.py + + # Tests failed. Importing an unbundled new setuptools in a virtualenv does not work, but this won't + # affect normal virtualenv usage (which don't have to import the unbundled setuptools in *current* + # dir. + sed -e '/^def test_pip_upgrade_from_source/i @pytest.mark.xfail' \ + -e '/^def test_test_command_install_requirements/i @pytest.mark.xfail' \ + -i setuptools-$pkgver/setuptools/tests/test_virtualenv.py + cp -a setuptools-$pkgver{,-py2} -# cd "$srcdir"/setuptools-$pkgver -# sed -i -e "s|^#\!.*/usr/bin/env python|#!/usr/bin/env python3|" setuptools/command/easy_install.py + cd "$srcdir"/setuptools-$pkgver + sed -i -e "s|^#\!.*/usr/bin/env python|#!/usr/bin/env python3|" setuptools/command/easy_install.py cd "$srcdir"/setuptools-$pkgver-py2 sed -i -e "s|^#\!.*/usr/bin/env python|#!/usr/bin/env python2|" setuptools/command/easy_install.py - sed -i -e "s|'pip'|'pip2'|" setuptools/tests/{test_develop.py,test_namespaces.py} export SETUPTOOLS_INSTALL_WINDOWS_SPECIFIC_FILES=0 } build() { -# cd "$srcdir"/setuptools-$pkgver -# python bootstrap.py -# python setup.py build + cd "$srcdir"/setuptools-$pkgver + python bootstrap.py + python setup.py build cd "$srcdir"/setuptools-$pkgver-py2 python2 bootstrap.py @@ -58,8 +69,8 @@ check() { ( # https://github.com/pypa/setuptools/pull/810 export PYTHONDONTWRITEBYTECODE=1 -# cd "$srcdir"/setuptools-$pkgver -# python setup.py pytest + cd "$srcdir"/setuptools-$pkgver + python setup.py pytest cd "$srcdir"/setuptools-$pkgver-py2 python2 setup.py pytest diff --git a/abs/core/python_modules/python-setuptools/__changelog b/abs/core/python_modules/python-setuptools/__changelog deleted file mode 100644 index 9715c21..0000000 --- a/abs/core/python_modules/python-setuptools/__changelog +++ /dev/null @@ -1 +0,0 @@ -PKGBUILD - comment out all python 3 stuff and only build for py 2 |