From c733a89df70a292e263a6f19f255e1519f2df0ef51990a135c5d1176f7fd07d6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20S=C3=BAkup?= Date: Tue, 28 Jul 2020 19:17:40 +0000 Subject: [PATCH 1/2] - update to 1.5.0 - fix tests * Convert host to lowercase on URL building. #386 * Allow using mod operator (%) for updating query string (an alias for update_query() method) * Allow use of sequences such as list and tuple in the values of a mapping such as dict to represent that a key has many values: url = URL("http://example.com") assert url.with_query({"a": [1, 2]}) == URL("http://example.com/?a=1&a=2") * Support URL.build() with scheme and path (creates a relative URL) * Cache slow IDNA encode/decode calls * Add @final / Final type hints * Support URL authority/raw_authority properties and authority argument of URL.build() method * Hide the library implementation details, make the exposed public list very clean * Fix tests with newer Python (3.7.6, 3.8.1 and 3.9.0+) * Fix a bug where query component, passed in a form of mapping or sequence, is unquoted in unexpected way * Hide Query and QueryVariable type aliases in __init__.pyi, now they are prefixed with underscore. * Keep ipv6 brackets after updating port/user/password. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-yarl?expand=0&rev=26 --- python-yarl.changes | 24 ++++++++++++++++++++++++ python-yarl.spec | 5 +++-- yarl-1.4.2.tar.gz | 3 --- yarl-1.5.0.tar.gz | 3 +++ 4 files changed, 30 insertions(+), 5 deletions(-) delete mode 100644 yarl-1.4.2.tar.gz create mode 100644 yarl-1.5.0.tar.gz diff --git a/python-yarl.changes b/python-yarl.changes index 6f40781..da822a5 100644 --- a/python-yarl.changes +++ b/python-yarl.changes @@ -1,3 +1,27 @@ +------------------------------------------------------------------- +Tue Jul 28 19:15:09 UTC 2020 - Ondřej Súkup + +- update to 1.5.0 +- fix tests + * Convert host to lowercase on URL building. #386 + * Allow using mod operator (%) for updating query string (an alias for update_query() method) + * Allow use of sequences such as list and tuple in the values of a mapping + such as dict to represent that a key has many values: + url = URL("http://example.com") + assert url.with_query({"a": [1, 2]}) == URL("http://example.com/?a=1&a=2") + * Support URL.build() with scheme and path (creates a relative URL) + * Cache slow IDNA encode/decode calls + * Add @final / Final type hints + * Support URL authority/raw_authority properties and authority argument + of URL.build() method + * Hide the library implementation details, make the exposed public list very clean + * Fix tests with newer Python (3.7.6, 3.8.1 and 3.9.0+) + * Fix a bug where query component, passed in a form of mapping or sequence, + is unquoted in unexpected way + * Hide Query and QueryVariable type aliases in __init__.pyi, now they + are prefixed with underscore. + * Keep ipv6 brackets after updating port/user/password. + ------------------------------------------------------------------- Mon Feb 3 14:38:51 UTC 2020 - Marketa Calabkova diff --git a/python-yarl.spec b/python-yarl.spec index e45a474..c455d76 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.4.2 +Version: 1.5.0 Release: 0 Summary: Yet another URL library License: Apache-2.0 @@ -54,11 +54,12 @@ export CFLAGS="%{optflags}" %python_install %check -%pytest tests +%pytest_arch %files %{python_files} %license LICENSE %doc CHANGES.rst README.rst +%pycache_only %{python_sitearch}/yarl/__pycache__/* %{python_sitearch}/* %changelog diff --git a/yarl-1.4.2.tar.gz b/yarl-1.4.2.tar.gz deleted file mode 100644 index 06a1042..0000000 --- a/yarl-1.4.2.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:58cd9c469eced558cd81aa3f484b2924e8897049e06889e8ff2510435b7ef74b -size 163521 diff --git a/yarl-1.5.0.tar.gz b/yarl-1.5.0.tar.gz new file mode 100644 index 0000000..0dc32ad --- /dev/null +++ b/yarl-1.5.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:5c82f5b1499342339f22c83b97dbe2b8a09e47163fab86cd934a8dd46620e0fb +size 172945 From 0bcb0209309c49e95a8df6267c7229cad4226fcfc8712b7a33282940e6e182c5 Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Wed, 29 Jul 2020 10:41:46 +0000 Subject: [PATCH 2/2] Accepting request 823277 from home:bnavigator:branches:devel:languages:python - remove c source file from package (rpmlint error) - needs typing-extensions OBS-URL: https://build.opensuse.org/request/show/823277 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-yarl?expand=0&rev=27 --- python-yarl.changes | 6 ++++++ python-yarl.spec | 9 +++++++-- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/python-yarl.changes b/python-yarl.changes index da822a5..7cda6fa 100644 --- a/python-yarl.changes +++ b/python-yarl.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Tue Jul 28 21:28:25 UTC 2020 - Benjamin Greiner + +- remove c source file from package (rpmlint error) +- needs typing-extensions + ------------------------------------------------------------------- Tue Jul 28 19:15:09 UTC 2020 - Ondřej Súkup diff --git a/python-yarl.spec b/python-yarl.spec index c455d76..b2eaf00 100644 --- a/python-yarl.spec +++ b/python-yarl.spec @@ -35,9 +35,11 @@ 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 +Requires: python-typing_extensions >= 3.7.4 %python_subpackages %description @@ -52,6 +54,9 @@ export CFLAGS="%{optflags}" %install %python_install +# devel file in non-devel-package +%python_expand rm %{buildroot}%{$python_sitearch}/yarl/_quoting_c.c +%python_expand %fdupes %{buildroot}%{$python_sitearch} %check %pytest_arch @@ -59,7 +64,7 @@ export CFLAGS="%{optflags}" %files %{python_files} %license LICENSE %doc CHANGES.rst README.rst -%pycache_only %{python_sitearch}/yarl/__pycache__/* -%{python_sitearch}/* +%{python_sitearch}/yarl +%{python_sitearch}/yarl-%{version}-py*.egg-info %changelog