Date: Friday, April 9, 2021 @ 10:31:03 Author: dvzrv Revision: 915254
upgpkg: python-furl 2.1.1-1: Upgrade to 2.1.1. Apply multiple upstreamed, but for unknown reasons not included fixes for python >= 3.9 (so that tests may run successfully and urllib related behavior is fixed): https://github.com/gruns/furl/pull/139 https://github.com/gruns/furl/pull/140 Modified: python-furl/trunk/PKGBUILD ----------+ PKGBUILD | 28 +++++++++++++++++++--------- 1 file changed, 19 insertions(+), 9 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2021-04-09 10:28:09 UTC (rev 915253) +++ PKGBUILD 2021-04-09 10:31:03 UTC (rev 915254) @@ -3,8 +3,8 @@ _name=furl pkgname=python-furl -pkgver=2.1.0 -pkgrel=6 +pkgver=2.1.1 +pkgrel=1 pkgdesc="A small Python library that makes parsing and manipulating URLs easy" url="https://github.com/gruns/furl" depends=('python-orderedmultidict' 'python-six') @@ -12,10 +12,22 @@ checkdepends=('python-pytest') license=('Unlicense') arch=('any') -source=("https://files.pythonhosted.org/packages/source/${_name::1}/${_name}/${_name}-${pkgver}.tar.gz") -sha512sums=('c7de9c87e5368a3ccb7c0639b9c679b3c71ac75144f275b2491e88d361bfca8612b3b23e76e538a98b02c1666e2dac000cb9f5add2e97d240cead7f40a1411ca') -b2sums=('9dedf9eec6bc94b7ab78c93832f144184f201d12bdcf82a4d81056d88bfd69bf15dc189d8e8d633a231221fc80c65db36c76e1519b1e64b8420f7defa22898d6') +source=("https://files.pythonhosted.org/packages/source/${_name::1}/${_name}/${_name}-${pkgver}.tar.gz" + "${pkgname}-2.1.1-python39.patch::https://github.com/gruns/furl/pull/140/commits/cb702b5de318799a7936f15da76f97e506fcae6d.patch" + "${pkgname}-2.1.1-urllib.patch::https://github.com/gruns/furl/pull/139/commits/322a20bd04e589a3d633a1c461d3d7d937f52b4e.patch") +sha512sums=('9501e057bc331ba31e35698aa1f62bd1b47865206bc69cb08d31d8fe708cf0b6d50f01165164811888917a86de811a31ddf2a81fdcf8d945c4507f5bbba9edb7' + '72bab5bac8a274fe54fbe7ed5e8e381a8d5ec306ebe83efa7aee89f676809fe2906f7a6ca13cf15cc2565bb10dbd60b072a07f0dfa2359794986049ad3e3efd1' + '23858361b7a492bb3f8d73221d96280e175bec67e88744880c3bcc848a380437078664f5cfddaf75de868b1456a7e383d9e9bf1a06b1e948e987a341cefa01fd') +b2sums=('f58c1f43f6cc8bb2bc5026edc4d0ad6f56e83a330893c7300e57e7f432cd8b8a76b49ac8fa4f38d500b5cfe38e16998767db26ad699a5061e98bc9b06bf00084' + '5b1fc1046ffece6e60cbf1b2f424f74075aa013725190bed4db165c190969f55f0a550489e4b00f56dccf30520b75492c16b2f8e034928ccf2c71f0d36fe5dba' + 'ac1243d02f20e7afcc38bccd600683219ff3afddcb2a0a6eb45e8cc2625f8c55da3af716276a64719e0e13b6d4af04ef14c12c86ab50d76db42c994a86ff7a8a') +prepare() { + cd "${_name}-${pkgver}" + patch -Np1 -i "../${pkgname}-2.1.1-python39.patch" + patch -Np1 -i "../${pkgname}-2.1.1-urllib.patch" +} + build() { cd "${_name}-${pkgver}" python setup.py build @@ -24,9 +36,7 @@ check() { cd "${_name}-${pkgver}" export PYTHONPATH="build:${PYTHONPATH}" - # disabling failing test for rather exotic url schemes: - # https://github.com/gruns/furl/issues/121 - pytest -v -k "not test_join" + pytest -v } package() { @@ -35,5 +45,5 @@ --optimize=1 \ --root="${pkgdir}" install -vDm 644 LICENSE.md -t "${pkgdir}/usr/share/licenses/${pkgname}" - install -vDm 644 {API,README}.md -t "${pkgdir}/usr/share/doc/${pkgname}" + install -vDm 644 README.md -t "${pkgdir}/usr/share/doc/${pkgname}" }