diff --git a/python-yarl.changes b/python-yarl.changes index 2bafbac..cb044dd 100644 --- a/python-yarl.changes +++ b/python-yarl.changes @@ -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 `_) + - Add `__bytes__()` magic method so that `bytes(url)` will work and use optimal + ASCII encoding. (`#582 `_) + - Started shipping platform-specific arm64 wheels for Apple Silicon. + (`#622 `_) + - Started shipping platform-specific wheels with the ``musl`` tag targeting typical + Alpine Linux runtimes. (`#622 `_) + - Added support for Python 3.10. (`#622 `_) +- do not require pytest-runner for build, it is not needed + ------------------------------------------------------------------- Sat Mar 20 19:40:32 UTC 2021 - Ben Greiner diff --git a/python-yarl.spec b/python-yarl.spec index 3436e58..403a98d 100644 --- a/python-yarl.spec +++ b/python-yarl.spec @@ -19,7 +19,7 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} %define skip_python2 1 Name: python-yarl -Version: 1.6.3 +Version: 1.7.2 Release: 0 Summary: Yet another URL library License: Apache-2.0 @@ -37,16 +37,12 @@ BuildRequires: %{python_module typing_extensions >= 3.7.4 if %python-base < 3.8 # test requirements BuildRequires: %{python_module multidict >= 4.0} BuildRequires: %{python_module pytest-cov} -BuildRequires: %{python_module pytest-runner} BuildRequires: %{python_module pytest} BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: python-rpm-macros Requires: python-idna >= 2.0 Requires: python-multidict >= 4.0 -%if 0%{?python_version_nodots} < 38 -Requires: python-typing_extensions >= 3.7.4 -%endif %python_subpackages %description diff --git a/tests_overcome_bpo42967.patch b/tests_overcome_bpo42967.patch index 8c6bb7a..0743a2b 100644 --- a/tests_overcome_bpo42967.patch +++ b/tests_overcome_bpo42967.patch @@ -1,5 +1,7 @@ ---- a/yarl/_url.py -+++ b/yarl/_url.py +Index: yarl-1.7.2/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 @@ import functools +import inspect @@ -24,7 +26,7 @@ if not encoded: if not val[1]: # netloc netloc = "" -@@ -551,7 +554,12 @@ class URL: +@@ -554,7 +557,12 @@ class URL: Empty value if URL has no query part. """ @@ -38,7 +40,7 @@ return MultiDictProxy(ret) @property -@@ -988,7 +996,12 @@ class URL: +@@ -989,7 +997,12 @@ class URL: def update_query(self, *args, **kwargs): """Return a new URL with query part updated.""" s = self._get_str_query(*args, **kwargs) @@ -52,14 +54,4 @@ query = MultiDict(self.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 - - + diff --git a/yarl-1.6.3.tar.gz b/yarl-1.6.3.tar.gz deleted file mode 100644 index 947b2de..0000000 --- a/yarl-1.6.3.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:8a9066529240171b68893d60dca86a763eae2139dd42f42106b03cf4b426bf10 -size 176823 diff --git a/yarl-1.7.2.tar.gz b/yarl-1.7.2.tar.gz new file mode 100644 index 0000000..540bdcc --- /dev/null +++ b/yarl-1.7.2.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:45399b46d60c253327a460e99856752009fcee5f5d3c80b2f7c0cae1c38d56dd +size 168562