forked from pool/python-pypuppetdb
Accepting request 786901 from home:mcalabkova:branches:devel:languages:python
- Update to 2.1.0 * Dropping old python 2.7/3.5 and ensuring 3 latest versions are supported * Adding mypy + cleanup + further removal of python2 code * Bugfix: Httpretty is not used outside tests and breaks install on newer python versions for some systems * Add option to get nodes without using event-counts * define the project status as stable * bundle requirements-test.txt in python package * Bugfix: Fixed metric() function to query the new v2 endpoint based on Jolokia * added few new parameters - Added patch loosen-requirements.patch OBS-URL: https://build.opensuse.org/request/show/786901 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pypuppetdb?expand=0&rev=10
This commit is contained in:
committed by
Git OBS Bridge
parent
f0212d79d6
commit
f9b86f64ad
8
loosen-requirements.patch
Normal file
8
loosen-requirements.patch
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
Index: pypuppetdb-2.0.0/requirements.txt
|
||||||
|
===================================================================
|
||||||
|
--- pypuppetdb-2.0.0.orig/requirements.txt
|
||||||
|
+++ pypuppetdb-2.0.0/requirements.txt
|
||||||
|
@@ -1,2 +1 @@
|
||||||
|
-requests==2.22.0
|
||||||
|
-six==1.13.0
|
||||||
|
+requests>=2.22.0
|
@@ -1,3 +1,17 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Mar 20 12:59:19 UTC 2020 - Marketa Calabkova <mcalabkova@suse.com>
|
||||||
|
|
||||||
|
- Update to 2.1.0
|
||||||
|
* Dropping old python 2.7/3.5 and ensuring 3 latest versions are supported
|
||||||
|
* Adding mypy + cleanup + further removal of python2 code
|
||||||
|
* Bugfix: Httpretty is not used outside tests and breaks install on newer python versions for some systems
|
||||||
|
* Add option to get nodes without using event-counts
|
||||||
|
* define the project status as stable
|
||||||
|
* bundle requirements-test.txt in python package
|
||||||
|
* Bugfix: Fixed metric() function to query the new v2 endpoint based on Jolokia
|
||||||
|
* added few new parameters
|
||||||
|
- Added patch loosen-requirements.patch
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Tue Sep 10 11:49:00 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com>
|
Tue Sep 10 11:49:00 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com>
|
||||||
|
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python-pypuppetdb
|
# spec file for package python-pypuppetdb
|
||||||
#
|
#
|
||||||
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
|
# Copyright (c) 2020 SUSE LLC
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@@ -17,26 +17,26 @@
|
|||||||
|
|
||||||
|
|
||||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||||
|
%define skip_python2 1
|
||||||
Name: python-pypuppetdb
|
Name: python-pypuppetdb
|
||||||
Version: 1.1.0
|
Version: 2.1.0
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: Library to work with PuppetDB's REST API
|
Summary: Library to work with PuppetDB's REST API
|
||||||
License: Apache-2.0
|
License: Apache-2.0
|
||||||
Group: Development/Languages/Python
|
Group: Development/Languages/Python
|
||||||
URL: https://github.com/nedap/pypuppetdb
|
URL: https://github.com/nedap/pypuppetdb
|
||||||
Source: https://github.com/voxpupuli/pypuppetdb/archive/v%{version}.tar.gz
|
Source: https://github.com/voxpupuli/pypuppetdb/archive/v%{version}.tar.gz
|
||||||
|
# PATCH-FIX-OPENSUSE Fix requirements in generated egg-info
|
||||||
|
Patch0: loosen-requirements.patch
|
||||||
BuildRequires: %{python_module httpretty >= 0.9.6}
|
BuildRequires: %{python_module httpretty >= 0.9.6}
|
||||||
BuildRequires: %{python_module mock >= 1.0.1}
|
BuildRequires: %{python_module mock >= 1.0.1}
|
||||||
BuildRequires: %{python_module pytest >= 3.0.1}
|
BuildRequires: %{python_module pytest >= 3.0.1}
|
||||||
BuildRequires: %{python_module pytest-cov >= 2.2.1}
|
BuildRequires: %{python_module pytest-cov >= 2.2.1}
|
||||||
BuildRequires: %{python_module requests >= 2.22.0}
|
BuildRequires: %{python_module requests >= 2.22.0}
|
||||||
BuildRequires: %{python_module setuptools}
|
BuildRequires: %{python_module setuptools}
|
||||||
BuildRequires: %{python_module six >= 1.12.0}
|
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
Requires: python-httpretty >= 0.9.6
|
|
||||||
Requires: python-requests >= 2.22.0
|
Requires: python-requests >= 2.22.0
|
||||||
Requires: python-six >= 1.12.0
|
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
%python_subpackages
|
%python_subpackages
|
||||||
|
|
||||||
@@ -46,6 +46,7 @@ More information: https://github.com/nedap/pypuppetdb
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n pypuppetdb-%{version}
|
%setup -q -n pypuppetdb-%{version}
|
||||||
|
%patch0 -p1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%python_build
|
%python_build
|
||||||
@@ -56,6 +57,8 @@ More information: https://github.com/nedap/pypuppetdb
|
|||||||
|
|
||||||
%check
|
%check
|
||||||
%pytest
|
%pytest
|
||||||
|
# requirements-test.txt packages oddly
|
||||||
|
rm %{buildroot}/usr/requirements_for_tests/requirements-test.txt
|
||||||
|
|
||||||
%files %{python_files}
|
%files %{python_files}
|
||||||
%doc README.rst CHANGELOG.rst
|
%doc README.rst CHANGELOG.rst
|
||||||
|
@@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:057461424982f4f11c5569fb94148961073b4b108a0bda6a6f8e14d9fa4862f1
|
|
||||||
size 49307
|
|
3
v2.1.0.tar.gz
Normal file
3
v2.1.0.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:f5d28528af75b6a0b31d66454d71baf643c5978f5b477300ee225ed69829a734
|
||||||
|
size 51398
|
Reference in New Issue
Block a user