From 8ab832f26fcaeea248b80f534a8e09478fa923fc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrian=20Schr=C3=B6ter?= Date: Tue, 6 Jun 2023 15:10:50 +0200 Subject: [PATCH] Sync from SUSE:ALP:Source:Standard:1.0 python-hyperlink revision 081f6d97babc76e8c10f830cf16b5e52 --- .gitattributes | 23 +++++++++++++ hyperlink-21.0.0.tar.gz | 3 ++ python-hyperlink.changes | 73 ++++++++++++++++++++++++++++++++++++++++ python-hyperlink.spec | 61 +++++++++++++++++++++++++++++++++ 4 files changed, 160 insertions(+) create mode 100644 .gitattributes create mode 100644 hyperlink-21.0.0.tar.gz create mode 100644 python-hyperlink.changes create mode 100644 python-hyperlink.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..fecc750 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/hyperlink-21.0.0.tar.gz b/hyperlink-21.0.0.tar.gz new file mode 100644 index 0000000..9defc02 --- /dev/null +++ b/hyperlink-21.0.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:427af957daa58bc909471c6c40f74c5450fa123dd093fc53efd2e91d2705a56b +size 140743 diff --git a/python-hyperlink.changes b/python-hyperlink.changes new file mode 100644 index 0000000..a9c6bae --- /dev/null +++ b/python-hyperlink.changes @@ -0,0 +1,73 @@ +------------------------------------------------------------------- +Fri Apr 21 12:26:32 UTC 2023 - Dirk Müller + +- add sle15_python_module_pythons (jsc#PED-68) + +------------------------------------------------------------------- +Thu Apr 13 22:41:57 UTC 2023 - Matej Cepl + +- Make calling of %{sle15modernpython} optional. + +------------------------------------------------------------------- +Sat Mar 13 13:07:05 UTC 2021 - Dirk Müller + +- update to 21.0.0: + * Update plus sign (+) handling to work with/like HTML form encoding (POST) + by default, fixes #129, and associated roundtripping (#146). + * Package IDNA tables. + * Long overdue dependency bumps + +------------------------------------------------------------------- +Mon Sep 28 11:54:08 UTC 2020 - Dirk Mueller + +- update to 20.0.1: + * CPython 3.7 and 3.8 and PyPy3 added to test matrix + * Hyperlink now has type hints and they are now exported per + [PEP 561](https://www.python.org/dev/peps/pep-0561/). + * Several bugs related to hidden state were fixed, making it so that all data + on a `URL` object (including `rooted` and `uses_netloc`) is reflected by and + consistent with its textual representation. + This does mean that sometimes these constructor arguments are ignored, if it + would create invalid or unparseable URL text. + +------------------------------------------------------------------- +Wed May 22 10:15:01 UTC 2019 - Tomáš Chvátal + +- Add missing runtime dependency on idna + +------------------------------------------------------------------- +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 + +- Remove superfluous devel dependency for noarch package + +------------------------------------------------------------------- +Tue Jul 4 08:55:55 UTC 2017 - jengelh@inai.de + +- Replace description. + +------------------------------------------------------------------- +Tue Jul 4 04:40:56 UTC 2017 - tbechtold@suse.com + +- initial packaging (version 17.2.1) diff --git a/python-hyperlink.spec b/python-hyperlink.spec new file mode 100644 index 0000000..f6e6277 --- /dev/null +++ b/python-hyperlink.spec @@ -0,0 +1,61 @@ +# +# spec file for package python-hyperlink +# +# Copyright (c) 2023 SUSE LLC +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# + + +%{?!python_module:%define python_module() python-%{**} python3-%{**}} +%{?sle15_python_module_pythons} +Name: python-hyperlink +Version: 21.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 +Requires: python-idna >= 2.5 +BuildArch: noarch +%python_subpackages + +%description +Hyperlink provides a pure-Python implementation of immutable URLs +based on RFC 3986 and 3987. + +%prep +%setup -q -n hyperlink-%{version} + +%build + +%python_build + +%install +%python_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%check +%pytest + +%files %{python_files} +%license LICENSE +%doc CHANGELOG.md README.md docs/*.rst +%{python_sitelib}/* + +%changelog