From 9a302f3b6d4e38832f34f9ad9eeba8dbcee100c565f47a55b7c1913247d51029 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Tue, 21 May 2019 10:58:23 +0000 Subject: [PATCH] Accepting request 704420 from home:pgajdos MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - version update to 19.0.0 * When passed to `str()` URLs now stringify to usable URL strings. (See #49) * Switched off of Python's built-in IDNA facilities to using the [idna](https://pypi.python.org/pypi/idna) package. Not only is it much more modern, it's also much more strict and correct in its output. (See #19 and #56) * Added new `DecodedURL` type with almost-identical API to the normal `URL`, except that it automatically handles reserved characters in argument values passed to its methods. (See #6, #11, #44) * Added top-level `parse()` convenience function that now represents the main entrypoint to hyperlink. * Accept dictionaries as ‘query=’ arguments, in addition to sequences of tuples (see #50) * `URL.child()` will no longer fail when child gets no segments (#42 and #43) * `URL.normalize()` now supports encoding stray/unmatched `%` characters in character-encoded fields (userinfo, path, query string, fragment) (see #61, #62) OBS-URL: https://build.opensuse.org/request/show/704420 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-hyperlink?expand=0&rev=6 --- hyperlink-17.2.1.tar.gz | 3 --- hyperlink-19.0.0.tar.gz | 3 +++ python-hyperlink.changes | 22 ++++++++++++++++++++++ python-hyperlink.spec | 15 +++++++++------ 4 files changed, 34 insertions(+), 9 deletions(-) delete mode 100644 hyperlink-17.2.1.tar.gz create mode 100644 hyperlink-19.0.0.tar.gz diff --git a/hyperlink-17.2.1.tar.gz b/hyperlink-17.2.1.tar.gz deleted file mode 100644 index eac99df..0000000 --- a/hyperlink-17.2.1.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:2c74b35662416f44823d50e59305f761a933723ae6528cc5b0d711361453f28b -size 24670 diff --git a/hyperlink-19.0.0.tar.gz b/hyperlink-19.0.0.tar.gz new file mode 100644 index 0000000..b620999 --- /dev/null +++ b/hyperlink-19.0.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:4288e34705da077fada1111a24a0aa08bb1e76699c9ce49876af722441845654 +size 99099 diff --git a/python-hyperlink.changes b/python-hyperlink.changes index e488a4d..8520095 100644 --- a/python-hyperlink.changes +++ b/python-hyperlink.changes @@ -1,3 +1,25 @@ +------------------------------------------------------------------- +Tue May 21 10:25:35 UTC 2019 - pgajdos@suse.com + +- version update to 19.0.0 + * When passed to `str()` URLs now stringify to usable URL + strings. (See #49) + * Switched off of Python's built-in IDNA facilities to using the + [idna](https://pypi.python.org/pypi/idna) package. Not only is it + much more modern, it's also much more strict and correct in its + output. (See #19 and #56) + * Added new `DecodedURL` type with almost-identical API to the normal + `URL`, except that it automatically handles reserved characters in + argument values passed to its methods. (See #6, #11, #44) + * Added top-level `parse()` convenience function that now represents + the main entrypoint to hyperlink. + * Accept dictionaries as ‘query=’ arguments, in addition to + sequences of tuples (see #50) + * `URL.child()` will no longer fail when child gets no segments (#42 and #43) + * `URL.normalize()` now supports encoding stray/unmatched `%` characters + in character-encoded fields (userinfo, path, query string, fragment) + (see #61, #62) + ------------------------------------------------------------------- Tue Dec 4 12:49:05 UTC 2018 - Matej Cepl diff --git a/python-hyperlink.spec b/python-hyperlink.spec index cdd44de..f802648 100644 --- a/python-hyperlink.spec +++ b/python-hyperlink.spec @@ -1,7 +1,7 @@ # # spec file for package python-hyperlink # -# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -17,16 +17,18 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} -%bcond_without test Name: python-hyperlink -Version: 17.2.1 +Version: 19.0.0 Release: 0 Summary: Immutable URL support for Python License: MIT Group: Development/Languages/Python Url: https://github.com/python-hyper/hyperlink Source: https://files.pythonhosted.org/packages/source/h/hyperlink/hyperlink-%{version}.tar.gz +BuildRequires: %{python_module idna >= 2.5} +BuildRequires: %{python_module pytest} BuildRequires: %{python_module setuptools} +BuildRequires: fdupes BuildRequires: python-rpm-macros BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildArch: noarch @@ -46,13 +48,14 @@ based on RFC 3986 and 3987. %install %python_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} -%if %{with test} %check -%python_exec setup.py test -%endif +%pytest %files %{python_files} +%license LICENSE +%doc CHANGELOG.md README.md docs/*.rst %defattr(-,root,root,-) %{python_sitelib}/*