Accepting request 936291 from home:pgajdos:python
- version update to 1.7.2 - Changed call in ``with_port()`` to stop reencoding parts of the URL that were already encoded. (`#623 <https://github.com/aio-libs/yarl/issues/623>`_) - Add `__bytes__()` magic method so that `bytes(url)` will work and use optimal ASCII encoding. (`#582 <https://github.com/aio-libs/yarl/issues/582>`_) - Started shipping platform-specific arm64 wheels for Apple Silicon. (`#622 <https://github.com/aio-libs/yarl/issues/622>`_) - Started shipping platform-specific wheels with the ``musl`` tag targeting typical Alpine Linux runtimes. (`#622 <https://github.com/aio-libs/yarl/issues/622>`_) - Added support for Python 3.10. (`#622 <https://github.com/aio-libs/yarl/issues/622>`_) - do not require pytest-runner for build, it is not needed OBS-URL: https://build.opensuse.org/request/show/936291 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-yarl?expand=0&rev=37
This commit is contained in:
parent
71585e543e
commit
adc9a178c2
@ -1,3 +1,18 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Dec 7 15:57:39 UTC 2021 - pgajdos@suse.com
|
||||||
|
|
||||||
|
- version update to 1.7.2
|
||||||
|
- Changed call in ``with_port()`` to stop reencoding parts of the URL
|
||||||
|
that were already encoded. (`#623 <https://github.com/aio-libs/yarl/issues/623>`_)
|
||||||
|
- Add `__bytes__()` magic method so that `bytes(url)` will work and use optimal
|
||||||
|
ASCII encoding. (`#582 <https://github.com/aio-libs/yarl/issues/582>`_)
|
||||||
|
- Started shipping platform-specific arm64 wheels for Apple Silicon.
|
||||||
|
(`#622 <https://github.com/aio-libs/yarl/issues/622>`_)
|
||||||
|
- Started shipping platform-specific wheels with the ``musl`` tag targeting typical
|
||||||
|
Alpine Linux runtimes. (`#622 <https://github.com/aio-libs/yarl/issues/622>`_)
|
||||||
|
- Added support for Python 3.10. (`#622 <https://github.com/aio-libs/yarl/issues/622>`_)
|
||||||
|
- do not require pytest-runner for build, it is not needed
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Sat Mar 20 19:40:32 UTC 2021 - Ben Greiner <code@bnavigator.de>
|
Sat Mar 20 19:40:32 UTC 2021 - Ben Greiner <code@bnavigator.de>
|
||||||
|
|
||||||
|
@ -19,7 +19,7 @@
|
|||||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||||
%define skip_python2 1
|
%define skip_python2 1
|
||||||
Name: python-yarl
|
Name: python-yarl
|
||||||
Version: 1.6.3
|
Version: 1.7.2
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: Yet another URL library
|
Summary: Yet another URL library
|
||||||
License: Apache-2.0
|
License: Apache-2.0
|
||||||
@ -37,16 +37,12 @@ BuildRequires: %{python_module typing_extensions >= 3.7.4 if %python-base < 3.8
|
|||||||
# test requirements
|
# test requirements
|
||||||
BuildRequires: %{python_module multidict >= 4.0}
|
BuildRequires: %{python_module multidict >= 4.0}
|
||||||
BuildRequires: %{python_module pytest-cov}
|
BuildRequires: %{python_module pytest-cov}
|
||||||
BuildRequires: %{python_module pytest-runner}
|
|
||||||
BuildRequires: %{python_module pytest}
|
BuildRequires: %{python_module pytest}
|
||||||
BuildRequires: %{python_module setuptools}
|
BuildRequires: %{python_module setuptools}
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
Requires: python-idna >= 2.0
|
Requires: python-idna >= 2.0
|
||||||
Requires: python-multidict >= 4.0
|
Requires: python-multidict >= 4.0
|
||||||
%if 0%{?python_version_nodots} < 38
|
|
||||||
Requires: python-typing_extensions >= 3.7.4
|
|
||||||
%endif
|
|
||||||
%python_subpackages
|
%python_subpackages
|
||||||
|
|
||||||
%description
|
%description
|
||||||
|
@ -1,5 +1,7 @@
|
|||||||
--- a/yarl/_url.py
|
Index: yarl-1.7.2/yarl/_url.py
|
||||||
+++ b/yarl/_url.py
|
===================================================================
|
||||||
|
--- yarl-1.7.2.orig/yarl/_url.py 2021-11-01 18:54:02.000000000 +0100
|
||||||
|
+++ yarl-1.7.2/yarl/_url.py 2021-12-07 17:00:29.099007846 +0100
|
||||||
@@ -1,4 +1,5 @@
|
@@ -1,4 +1,5 @@
|
||||||
import functools
|
import functools
|
||||||
+import inspect
|
+import inspect
|
||||||
@ -24,7 +26,7 @@
|
|||||||
if not encoded:
|
if not encoded:
|
||||||
if not val[1]: # netloc
|
if not val[1]: # netloc
|
||||||
netloc = ""
|
netloc = ""
|
||||||
@@ -551,7 +554,12 @@ class URL:
|
@@ -554,7 +557,12 @@ class URL:
|
||||||
Empty value if URL has no query part.
|
Empty value if URL has no query part.
|
||||||
|
|
||||||
"""
|
"""
|
||||||
@ -38,7 +40,7 @@
|
|||||||
return MultiDictProxy(ret)
|
return MultiDictProxy(ret)
|
||||||
|
|
||||||
@property
|
@property
|
||||||
@@ -988,7 +996,12 @@ class URL:
|
@@ -989,7 +997,12 @@ class URL:
|
||||||
def update_query(self, *args, **kwargs):
|
def update_query(self, *args, **kwargs):
|
||||||
"""Return a new URL with query part updated."""
|
"""Return a new URL with query part updated."""
|
||||||
s = self._get_str_query(*args, **kwargs)
|
s = self._get_str_query(*args, **kwargs)
|
||||||
@ -52,14 +54,4 @@
|
|||||||
query = MultiDict(self.query)
|
query = MultiDict(self.query)
|
||||||
query.update(new_query)
|
query.update(new_query)
|
||||||
|
|
||||||
--- a/tests/test_url_query.py
|
|
||||||
+++ b/tests/test_url_query.py
|
|
||||||
@@ -63,7 +63,7 @@ def test_ampersand_as_value():
|
|
||||||
|
|
||||||
|
|
||||||
def test_semicolon_as_separator():
|
|
||||||
- u = URL("http://127.0.0.1/?a=1;b=2")
|
|
||||||
+ u = URL("http://127.0.0.1/?a=1;b=2", separator=';')
|
|
||||||
assert len(u.query) == 2
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:8a9066529240171b68893d60dca86a763eae2139dd42f42106b03cf4b426bf10
|
|
||||||
size 176823
|
|
3
yarl-1.7.2.tar.gz
Normal file
3
yarl-1.7.2.tar.gz
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:45399b46d60c253327a460e99856752009fcee5f5d3c80b2f7c0cae1c38d56dd
|
||||||
|
size 168562
|
Loading…
Reference in New Issue
Block a user