Chih-Hsuan Yen pushed to branch main at Arch Linux / Packaging / Packages / python-treq
Commits: f7e3c158 by Chih-Hsuan Yen at 2023-11-09T19:52:47+08:00 upgpkg: 23.11.0-1 * Add a link to upstream changelog * Add dependencies as suggested by namcap * Switch to PEP 517; also drops the unneeded PYTHONDONTWRITEBYTECODE=1 trick - with PEP 517, wheels will not be modified by check() - - - - - 2 changed files: - + .SRCINFO - PKGBUILD Changes: ===================================== .SRCINFO ===================================== @@ -0,0 +1,25 @@ +pkgbase = python-treq + pkgdesc = A requests-like API built on top of twisted.web's Agent + pkgver = 23.11.0 + pkgrel = 1 + url = https://github.com/twisted/treq + arch = any + license = MIT + makedepends = python-build + makedepends = python-installer + makedepends = python-setuptools + makedepends = python-wheel + makedepends = httpbin + depends = python + depends = python-incremental + depends = python-requests + depends = python-pyopenssl + depends = python-service-identity + depends = python-attrs + depends = python-twisted + depends = python-hyperlink + depends = python-zope-interface + source = https://github.com/twisted/treq/archive/release-23.11.0/python-treq-23.11.0.tar.gz + sha512sums = 3e5feba73127d86f7cb3b98fee391cad954cff22fa2a7b67301fd792dfc5d83fd14d4df30cc42608c1ca3bbfc0dcbee985cdebae06a65df3a8d79a19283b0b9a + +pkgname = python-treq ===================================== PKGBUILD ===================================== @@ -2,30 +2,33 @@ # Maintainer: Chih-Hsuan Yen <[email protected]> pkgname=python-treq -pkgver=22.2.0 -pkgrel=3 +# https://github.com/twisted/treq/blob/trunk/CHANGELOG.rst +pkgver=23.11.0 +pkgrel=1 pkgdesc="A requests-like API built on top of twisted.web's Agent" arch=('any') license=('MIT') url='https://github.com/twisted/treq' -depends=('python-incremental' 'python-requests' 'python-pyopenssl' 'python-service-identity' - 'python-idna' 'python-attrs' 'python-twisted' 'python-hyperlink') -makedepends=('python-setuptools' 'httpbin') +depends=('python' 'python-incremental' 'python-requests' 'python-pyopenssl' 'python-service-identity' + 'python-attrs' 'python-twisted' 'python-hyperlink' + # Used but not declared upstream + 'python-zope-interface') +makedepends=('python-build' 'python-installer' 'python-setuptools' 'python-wheel' 'httpbin') source=("https://github.com/twisted/treq/archive/release-$pkgver/$pkgname-$pkgver.tar.gz") -sha512sums=('fa69bde03be083236fee7bd8adfd549578eb46f7dbb51d2a5acb1923a8e7d047d81de0a0c9ac407ac7ac6f11a677ffa57a6203b7fd139534eb698d987f019d69') +sha512sums=('3e5feba73127d86f7cb3b98fee391cad954cff22fa2a7b67301fd792dfc5d83fd14d4df30cc42608c1ca3bbfc0dcbee985cdebae06a65df3a8d79a19283b0b9a') build() { cd treq-release-$pkgver - python setup.py build + python -m build --wheel --no-isolation } check() { cd treq-release-$pkgver - PYTHONDONTWRITEBYTECODE=1 PYTHONPATH="$PWD/build/lib" trial treq + PYTHONPATH="$PWD/build/lib" trial treq } package() { cd treq-release-$pkgver - python setup.py install --root="$pkgdir" --optimize=1 + python -m installer --destdir="$pkgdir" dist/*.whl install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/ } View it on GitLab: https://gitlab.archlinux.org/archlinux/packaging/packages/python-treq/-/commit/f7e3c158bd1a35d648dc3757db31fdb95c4abb31 -- View it on GitLab: https://gitlab.archlinux.org/archlinux/packaging/packages/python-treq/-/commit/f7e3c158bd1a35d648dc3757db31fdb95c4abb31 You're receiving this email because of your account on gitlab.archlinux.org.
