Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-rpcq for openSUSE:Factory 
checked in at 2023-01-30 17:11:07
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-rpcq (Old)
 and      /work/SRC/openSUSE:Factory/.python-rpcq.new.32243 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-rpcq"

Mon Jan 30 17:11:07 2023 rev:7 rq:1061989 version:3.10.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-rpcq/python-rpcq.changes  2021-04-21 
21:00:48.110333878 +0200
+++ /work/SRC/openSUSE:Factory/.python-rpcq.new.32243/python-rpcq.changes       
2023-01-30 17:14:57.633810352 +0100
@@ -1,0 +2,9 @@
+Sat Jan 28 22:42:28 UTC 2023 - Ben Greiner <c...@bnavigator.de>
+
+- Update to 3.10.0
+  * Update: Add new execution results message
+- Version 3.9.2
+  * Rework types calculation with locks
+- Fix requirements, unpin msgpack
+
+-------------------------------------------------------------------

Old:
----
  rpcq-3.9.1.tar.gz

New:
----
  rpcq-3.10.0.tar.gz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-rpcq.spec ++++++
--- /var/tmp/diff_new_pack.aTRQ4X/_old  2023-01-30 17:14:58.037812844 +0100
+++ /var/tmp/diff_new_pack.aTRQ4X/_new  2023-01-30 17:14:58.041812869 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package python-rpcq
 #
-# Copyright (c) 2021 SUSE LLC
+# Copyright (c) 2023 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -16,32 +16,33 @@
 #
 
 
-%define packagename rpcq
-%define skip_python2 1
-%define skip_python36 1
-%{?!python_module:%define python_module() python-%{**} python3-%{**}}
 Name:           python-rpcq
-Version:        3.9.1
+Version:        3.10.0
 Release:        0
 Summary:        The RPC framework and message specification for Rigetti QCS
 License:        Apache-2.0
 URL:            https://github.com/rigetti/rpcq
-Source:         
https://github.com/rigetti/rpcq/archive/v%{version}.tar.gz#/%{packagename}-%{version}.tar.gz
+Source:         
https://github.com/rigetti/rpcq/archive/v%{version}.tar.gz#/rpcq-%{version}.tar.gz
+BuildRequires:  %{python_module base >= 3.6}
 BuildRequires:  %{python_module msgpack >= 0.6}
-BuildRequires:  %{python_module numpy}
-BuildRequires:  %{python_module pytest-asyncio}
-BuildRequires:  %{python_module pytest}
+BuildRequires:  %{python_module pip}
 BuildRequires:  %{python_module python-rapidjson}
 BuildRequires:  %{python_module pyzmq >= 17}
 BuildRequires:  %{python_module ruamel.yaml}
 BuildRequires:  %{python_module setuptools}
+BuildRequires:  %{python_module wheel}
 BuildRequires:  fdupes
 BuildRequires:  python-rpm-macros
 Requires:       python-msgpack >= 0.6
-Requires:       python-numpy
 Requires:       python-python-rapidjson
 Requires:       python-pyzmq >= 17
 Requires:       python-ruamel.yaml
+# SECTION test
+BuildRequires:  %{python_module numpy}
+BuildRequires:  %{python_module pytest-asyncio}
+BuildRequires:  %{python_module pytest}
+
+# /SECTION
 BuildArch:      noarch
 %python_subpackages
 
@@ -49,16 +50,18 @@
 The RPC framework and message specification for Rigetti QCS.
 
 %prep
-%setup -q -n %{packagename}-%{version}
+%setup -q -n rpcq-%{version}
 # Fix non-executable-script
-sed -i '/^#!/d' %{packagename}/core_messages.py
-sed -i '/^#!/d' %{packagename}/messages.py
+sed -i '/^#!/d' rpcq/core_messages.py
+sed -i '/^#!/d' rpcq/messages.py
+# unpin msgpack and ignore gh#rigetti/pyqui#1178
+sed -i '/msgpack/ s/,<1.0//' setup.py
 
 %build
-%python_build
+%pyproject_wheel
 
 %install
-%python_install
+%pyproject_install
 %python_expand %fdupes %{buildroot}%{$python_sitelib}
 
 %check
@@ -68,7 +71,7 @@
 %files %{python_files}
 %doc README.md
 %license LICENSE
-%{python_sitelib}/*egg-info
-%{python_sitelib}/%{packagename}
+%{python_sitelib}/rpcq-%{version}.dist-info
+%{python_sitelib}/rpcq
 
 %changelog

++++++ rpcq-3.9.1.tar.gz -> rpcq-3.10.0.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/rpcq-3.9.1/VERSION.txt new/rpcq-3.10.0/VERSION.txt
--- old/rpcq-3.9.1/VERSION.txt  2021-04-19 19:39:47.000000000 +0200
+++ new/rpcq-3.10.0/VERSION.txt 2022-04-07 20:01:33.000000000 +0200
@@ -1 +1 @@
-3.9.1
+3.10.0
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/rpcq-3.9.1/rpcq/_base.py 
new/rpcq-3.10.0/rpcq/_base.py
--- old/rpcq-3.9.1/rpcq/_base.py        2021-04-19 19:39:47.000000000 +0200
+++ new/rpcq-3.10.0/rpcq/_base.py       2022-04-07 20:01:33.000000000 +0200
@@ -13,7 +13,7 @@
 #    See the License for the specific language governing permissions and
 #    limitations under the License.
 ##############################################################################
-
+import functools
 import inspect
 import sys
 
@@ -109,9 +109,8 @@
     def __hash__(self):
         return hash((self.__class__, astuple(self)))
 
-    _types = {}
-
     @staticmethod
+    @functools.lru_cache()
     def types():
         """
         Return a mapping ``{type_name: (message_type, args)}`` for all defined 
Message's,
@@ -120,13 +119,14 @@
         :return: A dictionary of ``Message`` types.
         :rtype: Dict[str,type]
         """
+        types = {}
         classes_to_process = [Message]
         while classes_to_process:
             atom = classes_to_process.pop()
             classes_to_process += atom.__subclasses__()
-            Message._types[atom.__name__] = (atom, 
inspect.getfullargspec(atom.__init__).args)
+            types[atom.__name__] = (atom, 
inspect.getfullargspec(atom.__init__).args)
 
-        return Message._types
+        return types
 
 
 def _default(obj):
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/rpcq-3.9.1/rpcq/core_messages.py 
new/rpcq-3.10.0/rpcq/core_messages.py
--- old/rpcq-3.9.1/rpcq/core_messages.py        2021-04-19 19:39:47.000000000 
+0200
+++ new/rpcq-3.10.0/rpcq/core_messages.py       2022-04-07 20:01:33.000000000 
+0200
@@ -8,7 +8,6 @@
 
 from warnings import warn
 from rpcq._base import Message
-from rpcq.messages import ParameterSpec, PatchTarget
 from typing import Any, List, Dict, Optional
 
 if sys.version_info < (3, 7):
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/rpcq-3.9.1/rpcq/messages.py 
new/rpcq-3.10.0/rpcq/messages.py
--- old/rpcq-3.9.1/rpcq/messages.py     2021-04-19 19:39:47.000000000 +0200
+++ new/rpcq-3.10.0/rpcq/messages.py    2022-04-07 20:01:33.000000000 +0200
@@ -408,3 +408,16 @@
     """Quilt code with definitions for frames, waveforms, and calibrations."""
 
 
+@dataclass(eq=False, repr=False)
+class GetExecutionResultsResponse(Message):
+    """
+    Results of a completed ExecutorJob execution.
+    """
+
+    buffers: Dict[str, Dict[str, Any]]
+    """Result buffers for a completed ExecutorJob."""
+
+    execution_duration_microseconds: int
+    """Duration (in microseconds) ExecutorJob held exclusive access to quantum 
hardware."""
+
+
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/rpcq-3.9.1/src/messages.lisp 
new/rpcq-3.10.0/src/messages.lisp
--- old/rpcq-3.9.1/src/messages.lisp    2021-04-19 19:39:47.000000000 +0200
+++ new/rpcq-3.10.0/src/messages.lisp   2022-04-07 20:01:33.000000000 +0200
@@ -449,3 +449,15 @@
     :type :string
     :required t))
   :documentation "Up-to-date Quilt calibrations.")
+
+(defmessage |GetExecutionResultsResponse| ()
+  ((|buffers|
+    :documentation "Result buffers for a completed ExecutorJob."
+    :type (:map :string -> (:map :string -> :any))
+    :required t)
+
+   (|execution_duration_microseconds|
+    :documentation "Duration (in microseconds) ExecutorJob held exclusive 
access to quantum hardware."
+    :type :integer
+    :required t))
+  :documentation "Results of a completed ExecutorJob execution.")

Reply via email to