Robin Candau pushed to branch main at Arch Linux / Packaging / Packages /
python-starlette
Commits:
53315747 by Robin Candau at 2024-12-27T15:49:08+01:00
upgpkg: 0.43.0-4: python-httpx 0.28 rebuild
- - - - -
3 changed files:
- .SRCINFO
- PKGBUILD
- − fix_tests_with_httpx_0.27.patch
Changes:
=====================================
.SRCINFO
=====================================
@@ -1,7 +1,7 @@
pkgbase = python-starlette
pkgdesc = The little ASGI framework that shines
pkgver = 0.43.0
- pkgrel = 3
+ pkgrel = 4
url = https://github.com/encode/starlette
arch = any
license = BSD-3-Clause
@@ -27,10 +27,7 @@ pkgbase = python-starlette
optdepends = python-pyyaml: for schema generator
optdepends = python-httpx: for test client
source =
starlette-0.43.0.tar.gz::https://github.com/encode/starlette/archive/0.43.0.tar.gz
- source = fix_tests_with_httpx_0.27.patch
sha512sums =
9cb80e0eebb6fecde411dce6c3beb1d733ccf887b9145c88b5608ef78e942d8c808c0bc8971fcdb233b6f2b973617fe7e60bc8a0d97cc14b002efe74f1900683
- sha512sums =
673f1e3f714b2d7c962111e279d9086ee2868fab93e537f6363749c2043c92711db403460d5adfc8520cc8253417a47f55a2da4a1df4aa4abc0e662dad25875a
b2sums =
9905f678f5ea26e40e8b37cbf130fb03c1b6337c30777a24f3092134ac2ab077b4de2ca7b25feae8ee6bdb3334558c196688d8dca89f519d0949370992477218
- b2sums =
c3a2a1f340c912940a78ada3925729ee635ee58dde3b79391dc87cb266c72434fdcb67f04d1b3f77f7f2388dbcd9f1bf323bf819dcc3b7f5b3ff50fa0265f533
pkgname = python-starlette
=====================================
PKGBUILD
=====================================
@@ -5,7 +5,7 @@
_name=starlette
pkgname=python-$_name
pkgver=0.43.0
-pkgrel=3
+pkgrel=4
pkgdesc='The little ASGI framework that shines'
arch=(any)
url="https://github.com/encode/starlette"
@@ -43,20 +43,14 @@ optdepends=(
'python-pyyaml: for schema generator'
'python-httpx: for test client'
)
-source=($_name-$pkgver.tar.gz::$url/archive/$pkgver.tar.gz
- fix_tests_with_httpx_0.27.patch)
-sha512sums=('9cb80e0eebb6fecde411dce6c3beb1d733ccf887b9145c88b5608ef78e942d8c808c0bc8971fcdb233b6f2b973617fe7e60bc8a0d97cc14b002efe74f1900683'
-
'673f1e3f714b2d7c962111e279d9086ee2868fab93e537f6363749c2043c92711db403460d5adfc8520cc8253417a47f55a2da4a1df4aa4abc0e662dad25875a')
-b2sums=('9905f678f5ea26e40e8b37cbf130fb03c1b6337c30777a24f3092134ac2ab077b4de2ca7b25feae8ee6bdb3334558c196688d8dca89f519d0949370992477218'
-
'c3a2a1f340c912940a78ada3925729ee635ee58dde3b79391dc87cb266c72434fdcb67f04d1b3f77f7f2388dbcd9f1bf323bf819dcc3b7f5b3ff50fa0265f533')
+source=($_name-$pkgver.tar.gz::$url/archive/$pkgver.tar.gz)
+sha512sums=('9cb80e0eebb6fecde411dce6c3beb1d733ccf887b9145c88b5608ef78e942d8c808c0bc8971fcdb233b6f2b973617fe7e60bc8a0d97cc14b002efe74f1900683')
+b2sums=('9905f678f5ea26e40e8b37cbf130fb03c1b6337c30777a24f3092134ac2ab077b4de2ca7b25feae8ee6bdb3334558c196688d8dca89f519d0949370992477218')
prepare() {
cd $_name-$pkgver
# Ignore new warnings from python-anyio 4.4.0 making check() fails
sed -i '/"error"/d' pyproject.toml
- # Temporary test to fix tests with python-httpx < 0.28
- # Reverts https://github.com/encode/starlette/pull/2773
- patch -Np1 < $srcdir/fix_tests_with_httpx_0.27.patch
}
build() {
=====================================
fix_tests_with_httpx_0.27.patch deleted
=====================================
@@ -1,35 +0,0 @@
-diff --git a/tests/middleware/test_wsgi.py b/tests/middleware/test_wsgi.py
-index e4ac66a..58696bb 100644
---- a/tests/middleware/test_wsgi.py
-+++ b/tests/middleware/test_wsgi.py
-@@ -77,7 +77,7 @@ def test_wsgi_post(test_client_factory: TestClientFactory)
-> None:
- client = test_client_factory(app)
- response = client.post("/", json={"example": 123})
- assert response.status_code == 200
-- assert response.text == '{"example":123}'
-+ assert response.text == '{"example": 123}'
-
-
- def test_wsgi_exception(test_client_factory: TestClientFactory) -> None:
-diff --git a/tests/test_requests.py b/tests/test_requests.py
-index 665dceb..f0494e7 100644
---- a/tests/test_requests.py
-+++ b/tests/test_requests.py
-@@ -91,7 +91,7 @@ def test_request_body(test_client_factory:
TestClientFactory) -> None:
- assert response.json() == {"body": ""}
-
- response = client.post("/", json={"a": "123"})
-- assert response.json() == {"body": '{"a":"123"}'}
-+ assert response.json() == {"body": '{"a": "123"}'}
-
- response = client.post("/", data="abc") # type: ignore
- assert response.json() == {"body": "abc"}
-@@ -112,7 +112,7 @@ def test_request_stream(test_client_factory:
TestClientFactory) -> None:
- assert response.json() == {"body": ""}
-
- response = client.post("/", json={"a": "123"})
-- assert response.json() == {"body": '{"a":"123"}'}
-+ assert response.json() == {"body": '{"a": "123"}'}
-
- response = client.post("/", data="abc") # type: ignore
- assert response.json() == {"body": "abc"}
View it on GitLab:
https://gitlab.archlinux.org/archlinux/packaging/packages/python-starlette/-/commit/5331574742f152ee4302fd3b16bb2a04345e31a0
--
View it on GitLab:
https://gitlab.archlinux.org/archlinux/packaging/packages/python-starlette/-/commit/5331574742f152ee4302fd3b16bb2a04345e31a0
You're receiving this email because of your account on gitlab.archlinux.org.