David Runge pushed to branch main at Arch Linux / Packaging / Packages / python-urllib3
Commits: d276a28b by David Runge at 2024-04-04T08:59:59+02:00 Remove makedepends on sphinx and -docs split package As using sphinx in makedepends introduces an unnecessary circular dependency, remove it and the -docs split package. Upstream provides documentation for all versions at: https://urllib3.readthedocs.io/en/stable/ Signed-off-by: David Runge <[email protected]> - - - - - 2 changed files: - .SRCINFO - PKGBUILD Changes: ===================================== .SRCINFO ===================================== @@ -22,13 +22,7 @@ pkgbase = python-urllib3 makedepends = python-build makedepends = python-installer makedepends = python-setuptools - makedepends = python-sphinx - makedepends = python-sphinx-furo makedepends = python-wheel - source = https://github.com/urllib3/urllib3/archive/1.26.18/python-urllib3-1.26.18.tar.gz - sha512sums = 62c0af4b11e797a85420ef3f0888f2e608334329eddd88b9fe563b5437189cbea8dbbcd53f999557d9828fcf4bf03b8ca9f6e3d401533bc4ae8ff96e3ece1557 - -pkgname = python-urllib3 depends = python optdepends = python-brotli: Brotli support optdepends = python-certifi: security support @@ -36,6 +30,7 @@ pkgname = python-urllib3 optdepends = python-idna: security support optdepends = python-pyopenssl: security support optdepends = python-pysocks: SOCKS support + source = https://github.com/urllib3/urllib3/archive/1.26.18/python-urllib3-1.26.18.tar.gz + sha512sums = 62c0af4b11e797a85420ef3f0888f2e608334329eddd88b9fe563b5437189cbea8dbbcd53f999557d9828fcf4bf03b8ca9f6e3d401533bc4ae8ff96e3ece1557 -pkgname = python-urllib3-doc - pkgdesc = urllib3 Documentation +pkgname = python-urllib3 ===================================== PKGBUILD ===================================== @@ -4,20 +4,18 @@ # Contributor: BorgHunter <borghunter at gmail dot com> _name=urllib3 -pkgbase=python-urllib3 -pkgname=(python-urllib3 python-urllib3-doc) +pkgname=python-urllib3 pkgver=1.26.18 pkgrel=1 pkgdesc="HTTP library with thread-safe connection pooling and file post support" arch=("any") url="https://github.com/urllib3/urllib3" license=("MIT") +depends=('python') makedepends=( 'python-build' 'python-installer' 'python-setuptools' - 'python-sphinx' - 'python-sphinx-furo' 'python-wheel' ) checkdepends=( @@ -36,7 +34,15 @@ checkdepends=( 'python-tornado' 'python-trustme' ) -source=("https://github.com/urllib3/urllib3/archive/$pkgver/$pkgbase-$pkgver.tar.gz") +optdepends=( + 'python-brotli: Brotli support' + 'python-certifi: security support' + 'python-cryptography: security support' + 'python-idna: security support' + 'python-pyopenssl: security support' + 'python-pysocks: SOCKS support' +) +source=("https://github.com/urllib3/urllib3/archive/$pkgver/$pkgname-$pkgver.tar.gz") sha512sums=('62c0af4b11e797a85420ef3f0888f2e608334329eddd88b9fe563b5437189cbea8dbbcd53f999557d9828fcf4bf03b8ca9f6e3d401533bc4ae8ff96e3ece1557') prepare() { @@ -47,9 +53,6 @@ prepare() { build() { cd $_name-$pkgver python -m build --wheel --no-isolation - - cd docs - PYTHONPATH="../build/lib" make html } check() { @@ -69,27 +72,8 @@ check() { pytest "${pytest_options[@]}" } -package_python-urllib3() { - depends=('python') - optdepends=( - 'python-brotli: Brotli support' - 'python-certifi: security support' - 'python-cryptography: security support' - 'python-idna: security support' - 'python-pyopenssl: security support' - 'python-pysocks: SOCKS support' - ) - +package() { cd $_name-$pkgver python -m installer --destdir="$pkgdir" dist/*.whl install -Dm644 LICENSE.txt -t "$pkgdir"/usr/share/licenses/$pkgname/ } - -package_python-urllib3-doc() { - pkgdesc="urllib3 Documentation" - - cd $_name-$pkgver/docs - install -d "$pkgdir"/usr/share/doc - cp -r _build/html "$pkgdir"/usr/share/doc/python-urllib3 - install -Dm644 ../LICENSE.txt -t "$pkgdir"/usr/share/licenses/$pkgname/ -} View it on GitLab: https://gitlab.archlinux.org/archlinux/packaging/packages/python-urllib3/-/commit/d276a28ba494948ffca7fbbcfd81f427901af6f0 -- View it on GitLab: https://gitlab.archlinux.org/archlinux/packaging/packages/python-urllib3/-/commit/d276a28ba494948ffca7fbbcfd81f427901af6f0 You're receiving this email because of your account on gitlab.archlinux.org.
