[arch-commits] Commit in python-httpcore/repos/community-any (PKGBUILD PKGBUILD)

Chih-Hsuan Yen yan12125 at gemini.archlinux.org
Wed May 18 04:54:51 UTC 2022


    Date: Wednesday, May 18, 2022 @ 04:54:51
  Author: yan12125
Revision: 1207758

archrelease: copy trunk to community-any

Added:
  python-httpcore/repos/community-any/PKGBUILD
    (from rev 1207757, python-httpcore/trunk/PKGBUILD)
Deleted:
  python-httpcore/repos/community-any/PKGBUILD

----------+
 PKGBUILD |   95 ++++++++++++++++++++++++++++++++-----------------------------
 1 file changed, 50 insertions(+), 45 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2022-05-18 04:54:37 UTC (rev 1207757)
+++ PKGBUILD	2022-05-18 04:54:51 UTC (rev 1207758)
@@ -1,45 +0,0 @@
-# Maintainer: Eli Schwartz <eschwartz at archlinux.org>
-
-_pkgname=httpcore
-pkgname=python-httpcore
-pkgver=0.14.7
-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')
-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')
-
-prepare() {
-    cd ${_pkgname}-${pkgver}
-
-    # do not run coverage in unittests!
-    sed -i '/^addopts/d' setup.cfg
-}
-
-build() {
-    cd ${_pkgname}-${pkgver}
-
-    python setup.py build
-}
-
-check() {
-    cd ${_pkgname}-${pkgver}
-
-    # raise open files limits, many tests will fail otherwise
-    ulimit -S -n 4096
-
-    python -m pytest
-}
-
-package() {
-    cd ${_pkgname}-${pkgver}
-
-    python setup.py install --root="${pkgdir}" --optimize=1 --skip-build
-    install -Dm644 LICENSE.md "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE.md
-}

Copied: python-httpcore/repos/community-any/PKGBUILD (from rev 1207757, python-httpcore/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2022-05-18 04:54:51 UTC (rev 1207758)
@@ -0,0 +1,50 @@
+# Maintainer: Eli Schwartz <eschwartz at archlinux.org>
+
+_pkgname=httpcore
+pkgname=python-httpcore
+# 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'
+  '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=('3c25630d582448e3c7d46176c8862e4d92c6c4aac954bfe46b06e26297b32f996db2e002a87c7187accb5bf4ef86e82d7f9051404bee651ce5254119571d0c95')
+
+prepare() {
+    cd ${_pkgname}-${pkgver}
+
+    # disable -Werror, which often causes failures due to newer dependencies in Arch
+    sed -i '/\berror\b/d' setup.cfg
+}
+
+build() {
+    cd ${_pkgname}-${pkgver}
+
+    python setup.py build
+}
+
+check() {
+    cd ${_pkgname}-${pkgver}
+
+    # raise open files limits, many tests will fail otherwise
+    ulimit -S -n 4096
+
+    python -m pytest
+}
+
+package() {
+    cd ${_pkgname}-${pkgver}
+
+    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