From d705d9ac68c29ac26b39e31d146282232cd28235cb6d8d432146c25cac07c98a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Sat, 25 Jan 2020 11:52:32 +0000 Subject: [PATCH] Accepting request 767021 from home:mnhauke Initial package for python-tortilla OBS-URL: https://build.opensuse.org/request/show/767021 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-tortilla?expand=0&rev=1 --- .gitattributes | 23 ++++++++++++++ .gitignore | 1 + python-tortilla.changes | 26 ++++++++++++++++ python-tortilla.spec | 67 +++++++++++++++++++++++++++++++++++++++++ tortilla-0.5.0.tar.gz | 3 ++ 5 files changed, 120 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..2829deb --- /dev/null +++ b/python-tortilla.changes @@ -0,0 +1,26 @@ +------------------------------------------------------------------- +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..ce86fda --- /dev/null +++ b/python-tortilla.spec @@ -0,0 +1,67 @@ +# +# spec file for package python-kismet-rest +# +# 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 http://bugs.opensuse.org/ + + +%{?!python_module:%define python_module() python-%{**} python3-%{**}} +Name: python-tortilla +Version: 0.5.0 +Release: 0 +Summary: A library for creating wrappers around web APIs +License: MIT +Group: Development/Languages/Python +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 setuptools} +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} +# /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 +%python_build + +%install +%python_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%check +%pytest + +%files %{python_files} +%license LICENSE +%doc CHANGES.rst README.rst +%{python_sitelib}/tortilla* + +%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