From 94844fa325769173336bc84ea76feb3aaf034edc3518ba7519b8ec095823ced3 Mon Sep 17 00:00:00 2001 From: Thomas Bechtold Date: Tue, 5 Nov 2019 11:54:42 +0000 Subject: [PATCH] osc copypac from project:devel:languages:python:misc package:python-python-consul revision:2, using expand OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-python-consul?expand=0&rev=1 --- .gitattributes | 23 ++++++++++++ .gitignore | 1 + python-consul-1.1.0.tar.gz | 3 ++ python-python-consul.changes | 36 ++++++++++++++++++ python-python-consul.spec | 71 ++++++++++++++++++++++++++++++++++++ 5 files changed, 134 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 python-consul-1.1.0.tar.gz create mode 100644 python-python-consul.changes create mode 100644 python-python-consul.spec 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-consul-1.1.0.tar.gz b/python-consul-1.1.0.tar.gz new file mode 100644 index 0000000..c355b82 --- /dev/null +++ b/python-consul-1.1.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:168f1fa53948047effe4f14d53fc1dab50192e2a2cf7855703f126f469ea11f4 +size 25686 diff --git a/python-python-consul.changes b/python-python-consul.changes new file mode 100644 index 0000000..279fb83 --- /dev/null +++ b/python-python-consul.changes @@ -0,0 +1,36 @@ +------------------------------------------------------------------- +Tue Nov 5 11:49:40 UTC 2019 - Thomas Bechtold + +- update to 1.1.0 + * add support for nodemeta to catalog and health end points + * update Check.script to use args, as Consul 1.1 has dropped the script + parameter + * Support for Python 3.4 dropped + * Add support for Consul 1.0.0 + * Expose all 400 errors and add tests for common callback handler + * Add header parameter to http check + * Add basic Transaction HTTP API support + * Fix invalid url error when specifying credentials via host (Issue #167) + * Add a common base client for shared functionality between different HTTP clients + * Fix request quoting issue + * Fix installation issue due to aiohttp only being available for Python>=3.4.2 + * Added support for current release of aiohttp + * Improved Tornado example + * Add and use ACL token in Event.fire + * Add client side cert support + * Add token params to catalog registe + * Add support for DeregisterCriticalServiceAfter + * Improve reliability of test suite + * Update CI: Add py35 and py36 to tests + +------------------------------------------------------------------- +Sat Mar 3 18:40:40 UTC 2018 - arun@gmx.de + +- specfile: + * update copyright year + * don't use python_module for Requires + +------------------------------------------------------------------- +Tue Jul 11 06:02:21 UTC 2017 - tbechtold@suse.com + +- Initial package (version 0.7.0) diff --git a/python-python-consul.spec b/python-python-consul.spec new file mode 100644 index 0000000..49fd16e --- /dev/null +++ b/python-python-consul.spec @@ -0,0 +1,71 @@ +# +# spec file for package python-python-consul +# +# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. +# +# 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-%{**}} +%bcond_without test +Name: python-python-consul +Version: 1.1.0 +Release: 0 +Summary: Python client for Consul (http://www.consulio/) +License: MIT +Group: Development/Languages/Python +Url: https://github.com/cablehead/python-consul +Source: https://files.pythonhosted.org/packages/source/p/python-consul/python-consul-%{version}.tar.gz +BuildRequires: %{python_module devel} +BuildRequires: %{python_module setuptools} +BuildRequires: python-rpm-macros +%if %{with test} +BuildRequires: %{python_module requests >= 2.0} +BuildRequires: %{python_module six >= 1.4} +%endif +# SECTION test requirements +%if %{with test} +BuildRequires: %{python_module pytest-twisted} +BuildRequires: %{python_module pytest} +%endif +# /SECTION +Requires: python-requests >= 2.0 +Requires: python-six >= 1.4 +Suggests: python-aiohttp +Suggests: python-tornado +Suggests: python-twisted +Suggests: python-treq +BuildRoot: %{_tmppath}/%{name}-%{version}-build +BuildArch: noarch + +%python_subpackages + +%description +Python client for `Consul.io `_ + +%prep +%setup -q -n python-consul-%{version} + +%build + +%python_build + +%install +%python_install + +%files %{python_files} +%defattr(-,root,root,-) +%doc CHANGELOG.rst LICENSE README.rst +%{python_sitelib}/* + +%changelog