Chih-Hsuan Yen pushed to branch main at Arch Linux / Packaging / Packages / python-httpcore
Commits: ad7129aa by Chih-Hsuan Yen at 2023-11-30T14:30:41+08:00 Allow anyio 3.x Also moves to a more reliable way for overriding -Werror - - - - - 84cfa00b by Chih-Hsuan Yen at 2023-12-09T14:07:23+08:00 upgpkg: 1.0.2-2 - - - - - 3 changed files: - .SRCINFO - PKGBUILD - + allow-older-anyio.diff Changes: ===================================== .SRCINFO ===================================== @@ -1,7 +1,7 @@ pkgbase = python-httpcore pkgdesc = A minimal HTTP client pkgver = 1.0.2 - pkgrel = 1 + pkgrel = 2 url = https://github.com/encode/httpcore arch = any license = BSD @@ -25,6 +25,8 @@ pkgbase = python-httpcore optdepends = python-trio: for trio backend optdepends = python-sniffio: for async support source = python-httpcore-1.0.2.tar.gz::https://github.com/encode/httpcore/archive/1.0.2.tar.gz + source = allow-older-anyio.diff sha512sums = 6fc0c686b0b02b1e822550c18a7a90d2501f9d530598511877ee8cb09a0bdc4d56afe48cbb5fab5f8c1a12ea443055fe2a081b990fa4270f84db8197646b4979 + sha512sums = 5be9cca027e67dafad716ffd68001f2eb4560e71cd213c0c4833c985313ced0cff50e924a54a3773732a3909a75e842ddf3c0b9ecaea5015dea9f934837a2e61 pkgname = python-httpcore ===================================== PKGBUILD ===================================== @@ -5,7 +5,7 @@ _pkgname=httpcore pkgname=python-httpcore # https://github.com/encode/httpcore/blob/master/CHANGELOG.md pkgver=1.0.2 -pkgrel=1 +pkgrel=2 pkgdesc="A minimal HTTP client" arch=('any') url="https://github.com/encode/${_pkgname}" @@ -22,14 +22,15 @@ optdepends=( makedepends=('python-build' 'python-installer' 'python-hatchling' 'python-hatch-fancy-pypi-readme' 'python-h2' 'python-socksio' 'python-trio' 'python-anyio' 'python-sniffio') checkdepends=('python-pytest-httpbin' 'python-pytest-trio') -source=("${pkgname}-${pkgver}.tar.gz::${url}/archive/${pkgver}.tar.gz") -sha512sums=('6fc0c686b0b02b1e822550c18a7a90d2501f9d530598511877ee8cb09a0bdc4d56afe48cbb5fab5f8c1a12ea443055fe2a081b990fa4270f84db8197646b4979') +source=("${pkgname}-${pkgver}.tar.gz::${url}/archive/${pkgver}.tar.gz" + "allow-older-anyio.diff") +sha512sums=('6fc0c686b0b02b1e822550c18a7a90d2501f9d530598511877ee8cb09a0bdc4d56afe48cbb5fab5f8c1a12ea443055fe2a081b990fa4270f84db8197646b4979' + '5be9cca027e67dafad716ffd68001f2eb4560e71cd213c0c4833c985313ced0cff50e924a54a3773732a3909a75e842ddf3c0b9ecaea5015dea9f934837a2e61') prepare() { cd ${_pkgname}-${pkgver} - # disable -Werror, which often causes failures due to newer dependencies in Arch - sed -i '/filterwarnings/d' pyproject.toml + patch -Np1 -i ../allow-older-anyio.diff } build() { @@ -44,7 +45,8 @@ check() { # raise open files limits, many tests will fail otherwise ulimit -S -n 4096 - python -m pytest + # Overrides -Werror via -Wdefault, as the former often causes failures due to newer dependencies in Arch + python -m pytest -Wdefault } package() { ===================================== allow-older-anyio.diff ===================================== @@ -0,0 +1,11 @@ +--- a/pyproject.toml 2023-11-30 14:14:32.171578063 +0800 ++++ b/pyproject.toml 2023-11-30 14:14:38.721407840 +0800 +@@ -44,7 +44,7 @@ + "trio>=0.22.0,<0.23.0", + ] + asyncio = [ +- "anyio>=4.0,<5.0", ++ "anyio>=3.0,<5.0", + ] + + [project.urls] View it on GitLab: https://gitlab.archlinux.org/archlinux/packaging/packages/python-httpcore/-/compare/8f0cbf999e16cbc67f68fc6c743b82b77ea4b6c2...84cfa00be2468dfeed679aa61ec39c727d51ab3c -- View it on GitLab: https://gitlab.archlinux.org/archlinux/packaging/packages/python-httpcore/-/compare/8f0cbf999e16cbc67f68fc6c743b82b77ea4b6c2...84cfa00be2468dfeed679aa61ec39c727d51ab3c You're receiving this email because of your account on gitlab.archlinux.org.