From fe7e106d597ea5ee09f06d6a0883cf34d4b05343ba4bb0609c54728973d7a9ed Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Mon, 10 Nov 2025 08:26:54 +0000 Subject: [PATCH] - update to 4.2.0: * Drop support for Python 3.8 * Fix bug where already url-encoded values were further escaped and encoded (See https://github.com/python- hyper/uritemplate/issues/99) * Refactor uritemplate/variable.py to enable fixing the aforementioned bug. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-uritemplate?expand=0&rev=22 --- .gitattributes | 23 ++++++++++ .gitignore | 1 + python-uritemplate.changes | 91 ++++++++++++++++++++++++++++++++++++++ python-uritemplate.spec | 64 +++++++++++++++++++++++++++ uritemplate-4.1.1.tar.gz | 3 ++ uritemplate-4.2.0.tar.gz | 3 ++ 6 files changed, 185 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 python-uritemplate.changes create mode 100644 python-uritemplate.spec create mode 100644 uritemplate-4.1.1.tar.gz create mode 100644 uritemplate-4.2.0.tar.gz diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /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/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/python-uritemplate.changes b/python-uritemplate.changes new file mode 100644 index 0000000..5035a41 --- /dev/null +++ b/python-uritemplate.changes @@ -0,0 +1,91 @@ +------------------------------------------------------------------- +Mon Nov 10 08:26:49 UTC 2025 - Dirk Müller + +- update to 4.2.0: + * Drop support for Python 3.8 + * Fix bug where already url-encoded values were further escaped + and encoded (See https://github.com/python- + hyper/uritemplate/issues/99) + * Refactor uritemplate/variable.py to enable fixing the + aforementioned bug. + +------------------------------------------------------------------- +Thu Jun 12 05:01:37 UTC 2025 - Steve Kowalik + +- Switch to pyproject macros. + +------------------------------------------------------------------- +Sun Jun 25 07:09:34 UTC 2023 - Andreas Schneider + +- Use sle15_python_module_pythons + +------------------------------------------------------------------- +Fri Feb 10 21:05:49 UTC 2023 - Matej Cepl + +- Remove completely unnecessary dependency on python-simplejson. + +------------------------------------------------------------------- +Sat Nov 6 18:27:16 UTC 2021 - Dirk Müller + +- update to 4.1.1: + - Add type annotations to uritemplate and distribute them for others to use + - Update to a modern documentation theme as well + - Drop support for Python 2.7, 3.4, and 3.5 + - Better support number-like types as values for variables in a template + +------------------------------------------------------------------- +Fri Feb 7 15:44:07 UTC 2020 - Marketa Calabkova + +- update to 3.0.1 + * Update to Python 3.6, 3.7, and 3.8 + * Drop support for Python 2.6, 3.2, and 3.3 + * Ignore None in list argument expansion + * Handle a list with an empty string appropriately + +------------------------------------------------------------------- +Tue Dec 4 12:55:40 UTC 2018 - Matej Cepl + +- Remove superfluous devel dependency for noarch package + +------------------------------------------------------------------- +Mon May 8 03:26:35 UTC 2017 - toddrme2178@gmail.com + +- Re-download source tarball. + +------------------------------------------------------------------- +Sun May 7 22:41:52 UTC 2017 - toddrme2178@gmail.com + +- Source URL must be https. + +------------------------------------------------------------------- +Mon May 1 16:24:14 UTC 2017 - toddrme2178@gmail.com + +- Fix source URL. +- Implement single-spec version. +- Add tests. +- Add licenses and other documentation files. + +------------------------------------------------------------------- +Thu Oct 27 15:50:21 UTC 2016 - rjschwei@suse.com + +- Update to version 3.0.0 (bsc#1002895) + + No upstream change entry for 2.0 -> 3.0 +- From 2.0.0 + + Merge uritemplate.py into uritemplate + + Relicense uritemplate.py as Apache 2 and BSD +- From 1.0.1 + + Fix some minor packaging problems +- From 1.0.0 + + Fix handling of Unicode values on Python 2.6 and 2.7 for urllib.quote. + + Confirm public stable API via version number. + +------------------------------------------------------------------- +Thu Feb 20 23:44:28 UTC 2014 - rschweikert@suse.com + +- Include in SLE 12 (FATE #316168) + +------------------------------------------------------------------- +Wed Feb 5 01:52:25 UTC 2014 - rschweikert@suse.com + +- Initial build + diff --git a/python-uritemplate.spec b/python-uritemplate.spec new file mode 100644 index 0000000..96996e2 --- /dev/null +++ b/python-uritemplate.spec @@ -0,0 +1,64 @@ +# +# spec file for package python-uritemplate +# +# Copyright (c) 2025 SUSE LLC and contributors +# +# 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/ +# + + +%{?sle15_python_module_pythons} +%bcond_without tests +Name: python-uritemplate +Version: 4.2.0 +Release: 0 +Summary: URI Template Expansison +License: Apache-2.0 +Group: Development/Languages/Python +URL: https://pypi.python.org/pypi/uritemplate +Source: https://files.pythonhosted.org/packages/source/u/uritemplate/uritemplate-%{version}.tar.gz +BuildRequires: %{python_module pip} +BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +BuildArch: noarch +%python_subpackages + +%description +This is a Python implementation of RFC6570, URI Template, and can expand +templates up to and including Level 4 in that specification + +%prep +%autosetup -p1 -n uritemplate-%{version} + +%build +%pyproject_wheel + +%install +%pyproject_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%if %{with tests} +%check +%{python_expand export PYTHONPATH=%{buildroot}%{$python_sitelib} +$python tests/test_uritemplate.py +} +%endif + +%files %{python_files} +%license LICENSE LICENSE.* +%doc AUTHORS.rst HISTORY.rst README.rst +%{python_sitelib}/uritemplate +%{python_sitelib}/uritemplate-%{version}.dist-info + +%changelog diff --git a/uritemplate-4.1.1.tar.gz b/uritemplate-4.1.1.tar.gz new file mode 100644 index 0000000..4f5dba3 --- /dev/null +++ b/uritemplate-4.1.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:4346edfc5c3b79f694bccd6d6099a322bbeb628dbf2cd86eea55a456ce5124f0 +size 273898 diff --git a/uritemplate-4.2.0.tar.gz b/uritemplate-4.2.0.tar.gz new file mode 100644 index 0000000..d780f28 --- /dev/null +++ b/uritemplate-4.2.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:480c2ed180878955863323eea31b0ede668795de182617fef9c6ca09e6ec9d0e +size 33267