Skip to content
This repository has been archived by the owner on May 20, 2023. It is now read-only.

Commit

Permalink
upgpkg: python-httpcore 0.15.0-1
Browse files Browse the repository at this point in the history
* Add a link to upstream changelogs
* Update optdepends per namcap errors
* Drop the hack for pytest-cov, which is no longer used [1]
* Don't treat warnings as errors. That is introduced in [2] and causes
  issues like [3].

[1] encode/httpcore#218
[2] encode/httpcore#442
[3] encode/httpcore#548


git-svn-id: file:///srv/repos/svn-community/svn@1207757 9fca08f4-af9d-4005-b8df-a31f2cc04f65
  • Loading branch information
yan12125 committed May 18, 2022
1 parent a384b11 commit d6d8f8b
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions python-httpcore/trunk/PKGBUILD
Expand Up @@ -2,24 +2,29 @@

_pkgname=httpcore
pkgname=python-httpcore
pkgver=0.14.7
# https://github.com/encode/httpcore/blob/master/CHANGELOG.md
pkgver=0.15.0
pkgrel=1
pkgdesc="A minimal HTTP client"
arch=('any')
url="https://github.com/encode/${_pkgname}"
license=('BSD')
depends=('python-anyio' 'python-h11' 'python-sniffio' 'python-certifi')
optdepends=('python-h2: for HTTP/2 support' 'python-socksio: for SOCKS support')
optdepends=(
'python-h2: for HTTP/2 support'
'python-socksio: for SOCKS support'
'python-trio: for trio backend'
)
makedepends=('python-setuptools' 'python-h2')
checkdepends=('hypercorn' 'python-curio' 'python-pproxy' 'python-pytest-asyncio' 'python-pytest-httpbin' 'python-pytest-trio' 'python-trustme' 'uvicorn' 'python-socksio')
source=("${pkgname}-${pkgver}.tar.gz::${url}/archive/${pkgver}.tar.gz")
sha512sums=('6865e97f9b84846bb4e9304ea358b0a28d66fd2d1e244e8a2a439ee446a294ecbc68ac07d5a718fd1c3eceaa44a391d7a8f7f2ca659f1674eb17a90f39987d48')
sha512sums=('3c25630d582448e3c7d46176c8862e4d92c6c4aac954bfe46b06e26297b32f996db2e002a87c7187accb5bf4ef86e82d7f9051404bee651ce5254119571d0c95')

prepare() {
cd ${_pkgname}-${pkgver}

# do not run coverage in unittests!
sed -i '/^addopts/d' setup.cfg
# disable -Werror, which often causes failures due to newer dependencies in Arch
sed -i '/\berror\b/d' setup.cfg
}

build() {
Expand Down

0 comments on commit d6d8f8b

Please sign in to comment.