commit python-pypuppetdb for openSUSE:Factory

2020-08-14 Thread root
Hello community,

here is the log from the commit of package python-pypuppetdb for 
openSUSE:Factory checked in at 2020-08-14 13:10:34

Comparing /work/SRC/openSUSE:Factory/python-pypuppetdb (Old)
 and  /work/SRC/openSUSE:Factory/.python-pypuppetdb.new.3399 (New)


Package is "python-pypuppetdb"

Fri Aug 14 13:10:34 2020 rev:6 rq:824847 version:2.2.0

Changes:

--- /work/SRC/openSUSE:Factory/python-pypuppetdb/python-pypuppetdb.changes  
2020-03-23 12:50:47.311965006 +0100
+++ 
/work/SRC/openSUSE:Factory/.python-pypuppetdb.new.3399/python-pypuppetdb.changes
2020-08-14 13:10:44.293242406 +0200
@@ -1,0 +2,7 @@
+Fri Aug  7 09:18:21 UTC 2020 - Marketa Calabkova 
+
+- Update to 2.2.0
+  * Loosen requirements and drop six
+- Drop loosen-requirements.patch
+
+---

Old:

  loosen-requirements.patch
  v2.1.0.tar.gz

New:

  v2.2.0.tar.gz



Other differences:
--
++ python-pypuppetdb.spec ++
--- /var/tmp/diff_new_pack.b56MFx/_old  2020-08-14 13:10:48.449243990 +0200
+++ /var/tmp/diff_new_pack.b56MFx/_new  2020-08-14 13:10:48.453243991 +0200
@@ -19,15 +19,13 @@
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
 %define skip_python2 1
 Name:   python-pypuppetdb
-Version:2.1.0
+Version:2.2.0
 Release:0
 Summary:Library to work with PuppetDB's REST API
 License:Apache-2.0
 Group:  Development/Languages/Python
 URL:https://github.com/nedap/pypuppetdb
 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 mock >= 1.0.1}
 BuildRequires:  %{python_module pytest >= 3.0.1}
@@ -46,7 +44,6 @@
 
 %prep
 %setup -q -n pypuppetdb-%{version}
-%patch0 -p1
 
 %build
 %python_build

++ v2.1.0.tar.gz -> v2.2.0.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pypuppetdb-2.1.0/CHANGELOG.rst 
new/pypuppetdb-2.2.0/CHANGELOG.rst
--- old/pypuppetdb-2.1.0/CHANGELOG.rst  2020-03-20 14:05:40.0 +0100
+++ new/pypuppetdb-2.2.0/CHANGELOG.rst  2020-06-07 20:47:03.0 +0200
@@ -2,8 +2,14 @@
 Changelog
 #
 
+2.2.0
+=
+
+* Loosen requirements and drop six
+
 2.1.0
 =
+
 * Bugfix: Fixed `metric()` function to query the new v2 endpoint based on 
Jolokia (https://jolokia.org/reference/html/protocol.html)
 * Added a new parameter `metric_api_version` to the `BaseAPI()` constructor 
that allows
   changing the version of the `metric` API being queried. Valid values are 
`'v1'` for
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pypuppetdb-2.1.0/python-pypuppetdb.spec 
new/pypuppetdb-2.2.0/python-pypuppetdb.spec
--- old/pypuppetdb-2.1.0/python-pypuppetdb.spec 2020-03-20 14:05:40.0 
+0100
+++ new/pypuppetdb-2.2.0/python-pypuppetdb.spec 2020-06-07 20:47:03.0 
+0200
@@ -1,7 +1,7 @@
 %{!?python_sitelib: %global python_sitelib %(%{__python} -c "from 
distutils.sysconfig import get_python_lib; print get_python_lib()")}
 
 Name:   python-pypuppetdb
-Version:2.1.0
+Version:2.2.0
 Release:2%{?dist}
 Summary:A Python puppetdb API
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pypuppetdb-2.1.0/requirements.txt 
new/pypuppetdb-2.2.0/requirements.txt
--- old/pypuppetdb-2.1.0/requirements.txt   2020-03-20 14:05:40.0 
+0100
+++ new/pypuppetdb-2.2.0/requirements.txt   2020-06-07 20:47:03.0 
+0200
@@ -1,2 +1 @@
-requests==2.22.0
-six==1.13.0
+requests>=2.22.0
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pypuppetdb-2.1.0/version new/pypuppetdb-2.2.0/version
--- old/pypuppetdb-2.1.0/version2020-03-20 14:05:40.0 +0100
+++ new/pypuppetdb-2.2.0/version2020-06-07 20:47:03.0 +0200
@@ -1 +1 @@
-2.1.0
+2.2.0




commit python-pypuppetdb for openSUSE:Factory

2020-03-23 Thread root
Hello community,

here is the log from the commit of package python-pypuppetdb for 
openSUSE:Factory checked in at 2020-03-23 12:50:04

Comparing /work/SRC/openSUSE:Factory/python-pypuppetdb (Old)
 and  /work/SRC/openSUSE:Factory/.python-pypuppetdb.new.3160 (New)


Package is "python-pypuppetdb"

Mon Mar 23 12:50:04 2020 rev:5 rq:786903 version:2.1.0

Changes:

--- /work/SRC/openSUSE:Factory/python-pypuppetdb/python-pypuppetdb.changes  
2019-09-11 10:36:38.515274475 +0200
+++ 
/work/SRC/openSUSE:Factory/.python-pypuppetdb.new.3160/python-pypuppetdb.changes
2020-03-23 12:50:47.311965006 +0100
@@ -1,0 +2,14 @@
+Fri Mar 20 12:59:19 UTC 2020 - Marketa Calabkova 
+
+- 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
+
+---

Old:

  v1.1.0.tar.gz

New:

  loosen-requirements.patch
  v2.1.0.tar.gz



Other differences:
--
++ python-pypuppetdb.spec ++
--- /var/tmp/diff_new_pack.oTkclm/_old  2020-03-23 12:50:48.539965777 +0100
+++ /var/tmp/diff_new_pack.oTkclm/_new  2020-03-23 12:50:48.543965780 +0100
@@ -1,7 +1,7 @@
 #
 # 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
 # remain the property of their copyright owners, unless otherwise agreed
@@ -17,26 +17,26 @@
 
 
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
+%define skip_python2 1
 Name:   python-pypuppetdb
-Version:1.1.0
+Version:2.1.0
 Release:0
 Summary:Library to work with PuppetDB's REST API
 License:Apache-2.0
 Group:  Development/Languages/Python
 URL:https://github.com/nedap/pypuppetdb
 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 mock >= 1.0.1}
 BuildRequires:  %{python_module pytest >= 3.0.1}
 BuildRequires:  %{python_module pytest-cov >= 2.2.1}
 BuildRequires:  %{python_module requests >= 2.22.0}
 BuildRequires:  %{python_module setuptools}
-BuildRequires:  %{python_module six >= 1.12.0}
 BuildRequires:  fdupes
 BuildRequires:  python-rpm-macros
-Requires:   python-httpretty >= 0.9.6
 Requires:   python-requests >= 2.22.0
-Requires:   python-six >= 1.12.0
 BuildArch:  noarch
 %python_subpackages
 
@@ -46,6 +46,7 @@
 
 %prep
 %setup -q -n pypuppetdb-%{version}
+%patch0 -p1
 
 %build
 %python_build
@@ -56,6 +57,8 @@
 
 %check
 %pytest
+# requirements-test.txt packages oddly
+rm %{buildroot}/usr/requirements_for_tests/requirements-test.txt
 
 %files %{python_files}
 %doc README.rst CHANGELOG.rst

++ loosen-requirements.patch ++
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
++ v1.1.0.tar.gz -> v2.1.0.tar.gz ++
 2274 lines of diff (skipped)




commit python-pypuppetdb for openSUSE:Factory

2019-09-11 Thread root
Hello community,

here is the log from the commit of package python-pypuppetdb for 
openSUSE:Factory checked in at 2019-09-11 10:36:36

Comparing /work/SRC/openSUSE:Factory/python-pypuppetdb (Old)
 and  /work/SRC/openSUSE:Factory/.python-pypuppetdb.new.7948 (New)


Package is "python-pypuppetdb"

Wed Sep 11 10:36:36 2019 rev:4 rq:729838 version:1.1.0

Changes:

--- /work/SRC/openSUSE:Factory/python-pypuppetdb/python-pypuppetdb.changes  
2019-08-28 18:36:36.825271898 +0200
+++ 
/work/SRC/openSUSE:Factory/.python-pypuppetdb.new.7948/python-pypuppetdb.changes
2019-09-11 10:36:38.515274475 +0200
@@ -1,0 +2,8 @@
+Tue Sep 10 11:49:00 UTC 2019 - Tomáš Chvátal 
+
+- Update to 1.1.0:
+  * deduplicate dependencylist
+  * QueryBuilder.py: Use native data structures for internal representation
+  * Add support for the Command API
+
+---

Old:

  v1.0.0.tar.gz

New:

  v1.1.0.tar.gz



Other differences:
--
++ python-pypuppetdb.spec ++
--- /var/tmp/diff_new_pack.bG7X9O/_old  2019-09-11 10:36:39.403274216 +0200
+++ /var/tmp/diff_new_pack.bG7X9O/_new  2019-09-11 10:36:39.403274216 +0200
@@ -18,7 +18,7 @@
 
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
 Name:   python-pypuppetdb
-Version:1.0.0
+Version:1.1.0
 Release:0
 Summary:Library to work with PuppetDB's REST API
 License:Apache-2.0

++ v1.0.0.tar.gz -> v1.1.0.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pypuppetdb-1.0.0/CHANGELOG.rst 
new/pypuppetdb-1.1.0/CHANGELOG.rst
--- old/pypuppetdb-1.0.0/CHANGELOG.rst  2019-05-30 14:11:34.0 +0200
+++ new/pypuppetdb-1.1.0/CHANGELOG.rst  2019-08-31 12:32:56.0 +0200
@@ -2,6 +2,13 @@
 Changelog
 #
 
+1.1.0
+=
+
+* deduplicate dependencylist
+* QueryBuilder.py: Use native data structures for internal representation
+* Add support for the Command API, /pdb/cmd/v1. Added _cmd alongside _query to 
minimise changes to original code
+
 1.0.0
 =
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pypuppetdb-1.0.0/pypuppetdb/QueryBuilder.py 
new/pypuppetdb-1.1.0/pypuppetdb/QueryBuilder.py
--- old/pypuppetdb-1.0.0/pypuppetdb/QueryBuilder.py 2019-05-30 
14:11:34.0 +0200
+++ new/pypuppetdb-1.1.0/pypuppetdb/QueryBuilder.py 2019-08-31 
12:32:56.0 +0200
@@ -2,6 +2,7 @@
 from __future__ import absolute_import
 
 import datetime
+import json
 import logging
 import sys
 
@@ -39,31 +40,21 @@
 :type value: any
 """
 def __init__(self, operator, field, value):
-if isinstance(field, (str, unicode)):
-field = '"{0}"'.format(field)
-else:
-field = field
-
-if isinstance(value, (str, unicode, datetime.datetime)):
-value = '"{0}"'.format(value)
-elif isinstance(value, bool):
-value = 'true' if value else 'false'
-else:
-value = value
-
-self.__string = '["{0}", {1}, {2}]'.format(
-operator,
-field,
-value)
+if isinstance(value, datetime.datetime):
+value = str(value)
+self.data = [operator, field, value]
 
 def __repr__(self):
-return str('Query: {0}'.format(self.__string))
+return 'Query: {0}'.format(self)
 
 def __str__(self):
-return str('{0}'.format(self.__string))
+return json.dumps(self.json_data())
 
 def __unicode__(self):
-return self.__string
+return json.dumps(self.json_data())
+
+def json_data(self):
+return self.data
 
 
 class BooleanOperator(object):
@@ -91,31 +82,28 @@
 if type(query) == list:
 for i in query:
 self.add(i)
-elif (type(query) == str or
-isinstance(query, (BinaryOperator, InOperator,
-   BooleanOperator))):
-self.operations.append(str(query))
+elif type(query) == str:
+self.operations.append(json.loads(query))
+elif isinstance(query, (BinaryOperator, InOperator,
+BooleanOperator)):
+self.operations.append(query.json_data())
 else:
 raise APIError("Can only accept fixed-string queries, arrays " +
"or operator objects")
 
 def __repr__(self):
-if len(self.operations) == 0:
-raise APIError("At least one query operation is required")
-return 'Query: ["{0}",{1}]'.format(self.operator,
-   ",".join(self.operations))
+

commit python-pypuppetdb for openSUSE:Factory

2019-08-28 Thread root
Hello community,

here is the log from the commit of package python-pypuppetdb for 
openSUSE:Factory checked in at 2019-08-28 18:36:34

Comparing /work/SRC/openSUSE:Factory/python-pypuppetdb (Old)
 and  /work/SRC/openSUSE:Factory/.python-pypuppetdb.new.7948 (New)


Package is "python-pypuppetdb"

Wed Aug 28 18:36:34 2019 rev:3 rq:726605 version:1.0.0

Changes:

--- /work/SRC/openSUSE:Factory/python-pypuppetdb/python-pypuppetdb.changes  
2019-04-05 11:57:00.862351612 +0200
+++ 
/work/SRC/openSUSE:Factory/.python-pypuppetdb.new.7948/python-pypuppetdb.changes
2019-08-28 18:36:36.825271898 +0200
@@ -1,0 +2,8 @@
+Tue Aug 27 15:12:27 UTC 2019 - Marketa Calabkova 
+
+- update to version 1.0.0
+  * QueryBuilder: Added support for FromOperator, arrays and FromOperator
+  * New endpoint: status
+  * POST query in request body
+
+---

Old:

  pypuppetdb-0.3.3.tar.gz

New:

  v1.0.0.tar.gz



Other differences:
--
++ python-pypuppetdb.spec ++
--- /var/tmp/diff_new_pack.527R46/_old  2019-08-28 18:36:38.249271650 +0200
+++ /var/tmp/diff_new_pack.527R46/_new  2019-08-28 18:36:38.253271650 +0200
@@ -18,16 +18,25 @@
 
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
 Name:   python-pypuppetdb
-Version:0.3.3
+Version:1.0.0
 Release:0
 Summary:Library to work with PuppetDB's REST API
 License:Apache-2.0
 Group:  Development/Languages/Python
 URL:https://github.com/nedap/pypuppetdb
-Source: 
https://files.pythonhosted.org/packages/source/p/pypuppetdb/pypuppetdb-%{version}.tar.gz
+Source: 
https://github.com/voxpupuli/pypuppetdb/archive/v%{version}.tar.gz
+BuildRequires:  %{python_module httpretty >= 0.9.6}
+BuildRequires:  %{python_module mock >= 1.0.1}
+BuildRequires:  %{python_module pytest >= 3.0.1}
+BuildRequires:  %{python_module pytest-cov >= 2.2.1}
+BuildRequires:  %{python_module requests >= 2.22.0}
 BuildRequires:  %{python_module setuptools}
+BuildRequires:  %{python_module six >= 1.12.0}
 BuildRequires:  fdupes
 BuildRequires:  python-rpm-macros
+Requires:   python-httpretty >= 0.9.6
+Requires:   python-requests >= 2.22.0
+Requires:   python-six >= 1.12.0
 BuildArch:  noarch
 %python_subpackages
 
@@ -45,6 +54,9 @@
 %python_install
 %python_expand %fdupes %{buildroot}%{$python_sitelib}
 
+%check
+%pytest
+
 %files %{python_files}
 %doc README.rst CHANGELOG.rst
 %license LICENSE




commit python-pypuppetdb for openSUSE:Factory

2019-04-05 Thread root
Hello community,

here is the log from the commit of package python-pypuppetdb for 
openSUSE:Factory checked in at 2019-04-05 11:56:59

Comparing /work/SRC/openSUSE:Factory/python-pypuppetdb (Old)
 and  /work/SRC/openSUSE:Factory/.python-pypuppetdb.new.3908 (New)


Package is "python-pypuppetdb"

Fri Apr  5 11:56:59 2019 rev:2 rq:687606 version:0.3.3

Changes:

--- /work/SRC/openSUSE:Factory/python-pypuppetdb/python-pypuppetdb.changes  
2019-02-26 22:22:59.742053497 +0100
+++ 
/work/SRC/openSUSE:Factory/.python-pypuppetdb.new.3908/python-pypuppetdb.changes
2019-04-05 11:57:00.862351612 +0200
@@ -1,0 +2,5 @@
+Thu Feb 14 00:57:25 UTC 2019 - Jan Engelhardt 
+
+- Use noun phrase in summary.
+
+---
@@ -84 +88,0 @@
-



Other differences:
--
++ python-pypuppetdb.spec ++
--- /var/tmp/diff_new_pack.lImrtI/_old  2019-04-05 11:57:01.410352002 +0200
+++ /var/tmp/diff_new_pack.lImrtI/_new  2019-04-05 11:57:01.414352005 +0200
@@ -20,7 +20,7 @@
 Name:   python-pypuppetdb
 Version:0.3.3
 Release:0
-Summary:The pypuppetdtb is a library to work with PuppetDB's REST API
+Summary:Library to work with PuppetDB's REST API
 License:Apache-2.0
 Group:  Development/Languages/Python
 URL:https://github.com/nedap/pypuppetdb
@@ -32,7 +32,7 @@
 %python_subpackages
 
 %description
-This library is a thin wrapper around the REST API providing some convinience 
functions and objects to request and hold data from PuppetDB.
+This library is a wrapper around the REST API providing some convinience 
functions and objects to request and hold data from PuppetDB.
 More information: https://github.com/nedap/pypuppetdb
 
 %prep