From a3c3a808442780c44db81b8d16f34242309aa5e8fe6332a8a4989619fbfe067e Mon Sep 17 00:00:00 2001 From: Steve Kowalik Date: Wed, 4 Jun 2025 06:20:51 +0000 Subject: [PATCH] - Switch to pyproject macros. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-tortilla?expand=0&rev=5 --- .gitattributes | 23 +++++++++++++ .gitignore | 1 + python-tortilla.changes | 36 +++++++++++++++++++++ python-tortilla.spec | 71 +++++++++++++++++++++++++++++++++++++++++ tortilla-0.5.0.tar.gz | 3 ++ 5 files changed, 134 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 python-tortilla.changes create mode 100644 python-tortilla.spec create mode 100644 tortilla-0.5.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-tortilla.changes b/python-tortilla.changes new file mode 100644 index 0000000..3765700 --- /dev/null +++ b/python-tortilla.changes @@ -0,0 +1,36 @@ +------------------------------------------------------------------- +Wed Jun 4 06:08:01 UTC 2025 - Steve Kowalik + +- Switch to pyproject macros. + +------------------------------------------------------------------- +Wed Jun 28 07:36:35 UTC 2023 - Steve Kowalik + +- Add missing BuildRequires on six. + +------------------------------------------------------------------- +Fri Jan 24 20:44:32 UTC 2020 - Martin Hauke + +- Update to version 0.5.0 +- Convert to singlespec +- Run testsuite + +------------------------------------------------------------------- +Thu Oct 12 18:45:52 UTC 2017 - opensuse_buildservice@ojkastl.de + +- update to 0.4.2 + - Formatting code to make it more PEP-8 compliant + - Simplify py2/3 compatibility code (remove compat module) + - Enable/disable httpretty in setUp/tearDown methods in tests + to make it works with all kind of test runners (like PyCharm + test runner or nose) + - Refactor run_from_ipython() implementation to make it pass + static code analysis test (warns for missing __IPYTHON__) + - Fix an issue with delay code when it was called for the first + time and self._last_request_time is None + +------------------------------------------------------------------- +Tue Sep 6 11:11:50 UTC 2016 - mardnh@gmx.de + +- initial package, version 0.4.1 + diff --git a/python-tortilla.spec b/python-tortilla.spec new file mode 100644 index 0000000..beb38d0 --- /dev/null +++ b/python-tortilla.spec @@ -0,0 +1,71 @@ +# +# spec file for package python-tortilla +# +# Copyright (c) 2025 SUSE LLC +# Copyright (c) 2016-2020, Martin Hauke +# +# 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-tortilla +Version: 0.5.0 +Release: 0 +Summary: A library for creating wrappers around web APIs +License: MIT +URL: https://github.com/jcarbaugh/python-tortilla +Source: https://github.com/tortilla/tortilla/archive/v%{version}.tar.gz#/tortilla-%{version}.tar.gz +BuildRequires: %{python_module pip} +BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +# SECTION test requirements +BuildRequires: %{python_module colorama} +BuildRequires: %{python_module formats} +BuildRequires: %{python_module httpretty} +BuildRequires: %{python_module pytest} +BuildRequires: %{python_module requests} +BuildRequires: %{python_module six} +# /SECTION +Requires: python-colorama +Requires: python-formats +Requires: python-httpretty +Requires: python-requests +Requires: python-six +BuildArch: noarch +%python_subpackages + +%description +Wrapping web APIs made easy. +A tiny library for creating wrappers around web APIs. + +%prep +%setup -q -n tortilla-%{version} + +%build +%pyproject_wheel + +%install +%pyproject_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%check +%pytest + +%files %{python_files} +%license LICENSE +%doc CHANGES.rst README.rst +%{python_sitelib}/tortilla +%{python_sitelib}/tortilla-%{version}.dist-info + +%changelog diff --git a/tortilla-0.5.0.tar.gz b/tortilla-0.5.0.tar.gz new file mode 100644 index 0000000..db1ca9f --- /dev/null +++ b/tortilla-0.5.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:71b131f780cba0071f0d031df86a14c198ddea286da24a6cb747e49022405730 +size 13285