#2 Update to 0.15.0
Merged 2 years ago by churchyard. Opened 2 years ago by thrnciar.
rpms/ thrnciar/python-uvicorn update-to-0.15.0  into  rawhide

@@ -1,56 +0,0 @@ 

- From 737d25423ca6c865424598dd77c760b4c807b034 Mon Sep 17 00:00:00 2001

- From: euri10 <benoit.barthelet@gmail.com>

- Date: Sun, 13 Dec 2020 14:24:12 +0100

- Subject: [PATCH] Up wsproto to 1.0.0

- 

- ---

-  requirements.txt                  | 2 +-

-  tests/protocols/test_http.py      | 1 +

-  tests/protocols/test_websocket.py | 6 +++++-

-  3 files changed, 7 insertions(+), 2 deletions(-)

- 

- diff --git a/requirements.txt b/requirements.txt

- index a739e05..bcc6b7d 100644

- --- a/requirements.txt

- +++ b/requirements.txt

- @@ -1,7 +1,7 @@

-  -e .[standard]

-  

-  # Explicit optionals

- -wsproto==0.15.*

- +wsproto==1.0.*

-  

-  # Packaging

-  twine

- diff --git a/tests/protocols/test_http.py b/tests/protocols/test_http.py

- index f35a965..25110fc 100644

- --- a/tests/protocols/test_http.py

- +++ b/tests/protocols/test_http.py

- @@ -67,6 +67,7 @@ UPGRADE_REQUEST = b"\r\n".join(

-          b"Host: example.org",

-          b"Connection: upgrade",

-          b"Upgrade: websocket",

- +        b"Sec-WebSocket-Version: 11",

-          b"",

-          b"",

-      ]

- diff --git a/tests/protocols/test_websocket.py b/tests/protocols/test_websocket.py

- index 24bc285..7c3fcc0 100644

- --- a/tests/protocols/test_websocket.py

- +++ b/tests/protocols/test_websocket.py

- @@ -51,7 +51,11 @@ async def test_invalid_upgrade(protocol_cls):

-          async with httpx.AsyncClient() as client:

-              response = await client.get(

-                  "http://127.0.0.1:8000",

- -                headers={"upgrade": "websocket", "connection": "upgrade"},

- +                headers={

- +                    "upgrade": "websocket",

- +                    "connection": "upgrade",

- +                    "sec-webSocket-version": "11",

- +                },

-                  timeout=5,

-              )

-          if response.status_code == 426:

- -- 

- 2.29.2

- 

file modified
+13 -5
@@ -19,15 +19,13 @@ 

  

  

  Name:           python-%{pkgname}

- Version:        0.13.4

- Release:        3%{?dist}

+ Version:        0.15.0

+ Release:        1%{?dist}

  Summary:        The lightning-fast ASGI server

  License:        BSD

  URL:            https://www.uvicorn.org

  # PyPI tarball doesn't have tests

  Source0:        https://github.com/encode/uvicorn/archive/%{version}/%{srcname}-%{version}.tar.gz

- # https://github.com/encode/uvicorn/pull/892

- Patch0:         0001-Up-wsproto-to-1.0.0.patch

  BuildArch:      noarch

  

  
@@ -41,7 +39,7 @@ 

  %if %{with tests}

  BuildRequires:  %{py3_dist pytest pytest-mock requests trustme httpx pytest-asyncio}

  # from minimal requirements

- BuildRequires:  %{py3_dist click h11}

+ BuildRequires:  %{py3_dist asgiref click h11}

  # from extra requirements

  BuildRequires:  %{py3_dist websockets wsproto httptools uvloop watchgod python-dotenv pyyaml}

  %endif
@@ -82,6 +80,16 @@ 

  

  

  %changelog

+ * Fri Sep 10 2021 Tomas Hrnciar - 0.15.0-1

+ - Update to 0.15.0

+ - Fixes: rhbz#1966531

+ 

+ * Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.13.4-3

+ - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild

+ 

+ * Fri Jul 23 2021 Lumír Balhar <lbalhar@redhat.com> - 0.14.0-1

+ - Update to 0.14.0

+ 

  * Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.13.4-3

  - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild

  

file modified
+1 -1
@@ -1,1 +1,1 @@ 

- SHA512 (uvicorn-0.13.4.tar.gz) = 5332494e0b43b4e87f9d6742be679527b1ec2bc4d2e061768594d44b1fd1d6961a2bd1fa23469fca6c530ef36d6123e453306c2bb664cb27b0cd6145b9a70fd7

+ SHA512 (uvicorn-0.15.0.tar.gz) = cbae18392f6e33479cfacda84e4fb3b5322aedaad872ba1a3b02a7d65d4a6c9bc9ba434e9a8d8caf6dfce32629aed14df17882fc5241410707ae861067e7c51b

no initial comment

3 new commits added

  • Update to 0.15.0
  • - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
  • Update to 0.14.0
2 years ago

rebased onto 71f3ae8

2 years ago

Pull-Request has been merged by churchyard

2 years ago