[arch-commits] Commit in python-httpx/trunk (PKGBUILD)
Antonio Rojas
arojas at gemini.archlinux.org
Wed Jan 26 16:51:34 UTC 2022
Date: Wednesday, January 26, 2022 @ 16:51:34
Author: arojas
Revision: 1116061
Update to 0.22.0, ignore tests that fail with new python
Modified:
python-httpx/trunk/PKGBUILD
----------+
PKGBUILD | 33 ++++++++++++++++-----------------
1 file changed, 16 insertions(+), 17 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2022-01-26 16:45:09 UTC (rev 1116060)
+++ PKGBUILD 2022-01-26 16:51:34 UTC (rev 1116061)
@@ -2,7 +2,7 @@
_pkgname=httpx
pkgname=python-httpx
-pkgver=0.21.3
+pkgver=0.22.0
pkgrel=1
pkgdesc="A next generation HTTP client for Python"
arch=('any')
@@ -11,39 +11,38 @@
depends=('python-charset-normalizer' 'python-httpcore' 'python-idna' 'python-rfc3986' 'python-sniffio' 'python-rich')
optdepends=('python-brotlicffi: for brotli response decompression')
makedepends=('python-setuptools')
-checkdepends=('python-pytest-asyncio' 'python-pytest-trio' 'python-typing_extensions' 'python-brotlicffi' 'python-h2' 'python-trustme' 'uvicorn')
+checkdepends=('python-pytest-asyncio' 'python-pytest-trio' 'python-typing_extensions' 'python-brotlicffi' 'python-h2' 'python-trustme' 'uvicorn' 'python-socksio')
source=("${pkgname}-${pkgver}.tar.gz::${url}/archive/${pkgver}.tar.gz"
"0001-Do-not-override-the-system-SSL-certificates-with-the.patch")
-sha512sums=('0a551de52954db5ed2c33d1b5c172607516031a7c86c0f235bd04f12f4cf82f63980a9f53115dac801748b0c282890b3ed4a53b2c912adbd245c10ad61dbf67e'
+sha512sums=('a7360f5355f75f07425b42d49697e480319f3fe606d4601bb6d64b870c8a8fce6fad8bd857ef422fc48e6141201307ee94876d5bc54a68557c7dc32ce8f1451b'
'faf90f908ab8d5054d096eef1ba4e9cee733eb8178d2df0dfe922923bf8a98eebf880b9a6be3386caffed88229f82f1199c026ede455a57998246821a37e5748')
-b2sums=('08a9328a7350534abe646f0bf60bd15600a1cb3eb8d06578c87ed9a7d4e55efdddd2be597650cddec9f6456e89a1b159f3e23aa657f379f78157c12670cdadb0'
+b2sums=('bb08a7c4b72478d24264c0dca5630205ff386af73294dca66dcd12b646de602ad64e308feedaabd58742cb7a9d799fa23cd2f922e685e74f8181e1b5e9f1c4ee'
'3e020b5f3c3aeeede6304851023eed4ab10f74df68203b504b5564892aa960d5c52521279a0b9cf40ead1e18b5ce9ee3998ad4502e6008f07808817d0405b7c7')
prepare() {
- cd ${_pkgname}-${pkgver}
+ cd ${_pkgname}-${pkgver}
- # bad certifi
- patch -p1 -i ../0001-Do-not-override-the-system-SSL-certificates-with-the.patch
-
- # fix tests
- sed -e 's|Transfer-Encoding|transfer-encoding|g' -i tests/test_main.py
+ # bad certifi
+ patch -p1 -i ../0001-Do-not-override-the-system-SSL-certificates-with-the.patch
+ # fix tests
+ sed -e 's|Transfer-Encoding|transfer-encoding|g' -i tests/test_main.py
}
build() {
- cd ${_pkgname}-${pkgver}
+ cd ${_pkgname}-${pkgver}
- python setup.py build
+ python setup.py build
}
check() {
- cd ${_pkgname}-${pkgver}
+ cd ${_pkgname}-${pkgver}
- pytest -W ignore::DeprecationWarning
+ pytest -W ignore::DeprecationWarning -k 'not text_decoder[data3-iso-8859-1] and not response_no_charset_with_iso_8859_1_content'
}
package() {
- cd ${_pkgname}-${pkgver}
+ cd ${_pkgname}-${pkgver}
- python setup.py install --root="${pkgdir}" --optimize=1 --skip-build
- install -Dm644 LICENSE.md "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE.md
+ python setup.py install --root="${pkgdir}" --optimize=1 --skip-build
+ install -Dm644 LICENSE.md "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE.md
}
More information about the arch-commits
mailing list