commit 2ef968d12e5c2042b0c3ff7fccb3bb7b8b65dffd4eb8eb96431e304d622b44b4 Author: Matej Cepl Date: Tue Dec 27 18:08:41 2022 +0000 Accepting request 1045423 from home:bnavigator:branches:devel:languages:python Required for python-jsonschema[format, format-nongpl] OBS-URL: https://build.opensuse.org/request/show/1045423 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-uri-template?expand=0&rev=1 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-uri-template.changes b/python-uri-template.changes new file mode 100644 index 0000000..b0cc3f2 --- /dev/null +++ b/python-uri-template.changes @@ -0,0 +1,5 @@ +------------------------------------------------------------------- +Mon Dec 26 11:23:32 UTC 2022 - Ben Greiner + +- Initial specfile for v1.2.0 +- Required for python-jsonschema[format, format-nongpl] diff --git a/python-uri-template.spec b/python-uri-template.spec new file mode 100644 index 0000000..91c409e --- /dev/null +++ b/python-uri-template.spec @@ -0,0 +1,62 @@ +# +# spec file for package python-uri-template +# +# Copyright (c) 2022 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/ +# + + +Name: python-uri-template +Version: 1.2.0 +Release: 0 +Summary: RFC 6570 URI Template Processor +License: MIT +URL: https://github.com/plinss/uri_template/ +Source: https://github.com/plinss/uri_template/archive/refs/tags/v%{version}.tar.gz#/uri_template-%{version}-gh.tar.gz +BuildRequires: %{python_module pip} +BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +Provides: python-uri_template = %{version}-%{release} +BuildArch: noarch +%python_subpackages + +%description +RFC 6570 URI Template Processor + +%prep +%setup -q -n uri_template-%{version} +sed -i "s/version='0.0.0',.*edit/version='%{version}',/" setup.py + +%build +%pyproject_wheel + +%install +%pyproject_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%check +mv uri_template uri_template.moved +%{python_expand # +export PYTHONPATH=%{buildroot}%{$python_sitelib} +$python -B test.py +} + +%files %{python_files} +%doc README.md +%license LICENSE +%{python_sitelib}/uri_template +%{python_sitelib}/uri_template-%{version}.dist-info + +%changelog diff --git a/uri_template-1.2.0-gh.tar.gz b/uri_template-1.2.0-gh.tar.gz new file mode 100644 index 0000000..59997a6 --- /dev/null +++ b/uri_template-1.2.0-gh.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1e37e14601ae685794d0d061da5481236f94a4b9c3db7b459d647de5160a79f3 +size 18286