Massimiliano Torromeo pushed to branch main at Arch Linux / Packaging /
Packages / python-ndg-httpsclient
Commits:
afa77fe6 by Massimiliano Torromeo at 2026-01-31T11:54:46+01:00
upgpkg: 0.5.1-17: Use PEP 517 for building
- - - - -
2 changed files:
- .SRCINFO
- PKGBUILD
Changes:
=====================================
.SRCINFO
=====================================
@@ -1,11 +1,14 @@
pkgbase = python-ndg-httpsclient
pkgdesc = Provides enhanced HTTPS support for httplib and urllib2 using
PyOpenSSL
pkgver = 0.5.1
- pkgrel = 16
+ pkgrel = 17
url = https://pypi.python.org/pypi/ndg-httpsclient
arch = any
- license = BSD
+ license = BSD-3-Clause
makedepends = python-setuptools
+ makedepends = python-build
+ makedepends = python-installer
+ makedepends = python-wheel
depends = python-pyopenssl
depends = python-pyasn1
options = !emptydirs
=====================================
PKGBUILD
=====================================
@@ -4,29 +4,26 @@
pkgname=python-ndg-httpsclient
_pkgname=ndg_httpsclient
pkgver=0.5.1
-pkgrel=16
+pkgrel=17
pkgdesc="Provides enhanced HTTPS support for httplib and urllib2 using
PyOpenSSL"
arch=(any)
url="https://pypi.python.org/pypi/ndg-httpsclient"
-license=('BSD')
+license=('BSD-3-Clause')
depends=(python-pyopenssl python-pyasn1)
-makedepends=(python-setuptools)
+makedepends=(python-setuptools python-build python-installer python-wheel)
options=(!emptydirs)
source=(https://files.pythonhosted.org/packages/source/n/ndg-httpsclient/$_pkgname-$pkgver.tar.gz)
sha256sums=('d72faed0376ab039736c2ba12e30695e2788c4aa569c9c3e3d72131de2592210')
build() {
cd "$srcdir"/$_pkgname-$pkgver
-
- rm -rf ../buildpy3; mkdir ../buildpy3
- python setup.py build -b ../buildpy3
+ python -m build --wheel --no-isolation
}
package() {
_site_packages=$(python -sSc 'import site; print(site.getsitepackages()[0])')
cd "$srcdir"/$_pkgname-$pkgver
- rm -rf build; ln -s ../buildpy3 build
- python setup.py install --skip-build -O1 --root="$pkgdir"
+ python -m installer --destdir="$pkgdir" dist/*.whl
install -Dm0644 "$pkgdir$_site_packages"/ndg/httpsclient/LICENSE
"$pkgdir"/usr/share/licenses/$pkgname/LICENSE
}
View it on GitLab:
https://gitlab.archlinux.org/archlinux/packaging/packages/python-ndg-httpsclient/-/commit/afa77fe60f3f7b3b8a6c98706ca58161e7e5ec6a
--
View it on GitLab:
https://gitlab.archlinux.org/archlinux/packaging/packages/python-ndg-httpsclient/-/commit/afa77fe60f3f7b3b8a6c98706ca58161e7e5ec6a
You're receiving this email because of your account on gitlab.archlinux.org.