Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-xdis for openSUSE:Factory 
checked in at 2022-02-04 21:49:16
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-xdis (Old)
 and      /work/SRC/openSUSE:Factory/.python-xdis.new.1898 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-xdis"

Fri Feb  4 21:49:16 2022 rev:15 rq:951463 version:6.0.3

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-xdis/python-xdis.changes  2021-01-26 
14:49:54.687690832 +0100
+++ /work/SRC/openSUSE:Factory/.python-xdis.new.1898/python-xdis.changes        
2022-02-04 21:52:27.223128001 +0100
@@ -1,0 +2,38 @@
+Fri Feb  4 00:25:56 UTC 2022 - Steve Kowalik <[email protected]>
+
+- Update to 6.0.3:
+  * xasm format fixes
+  * more Python version tuple compare conversions
+  * add version_str_to_tuple() to convert the other way. This is useful in 
xasm, for example.
+  * Reduce PYTHON_VERSION usage in xdis.
+  * Allow optional delimiter and start length in version_tuple_to_str()
+  * fix logic bug in setting MAGIC
+  * Add a little Python 3.8.5 Graal (Java VM) knowledge.
+  * Add PyPy 3.8 opcodes and disassembly
+  * Accept Python 3.8.12
+  * Fix some small lingering bugs introduced converting Python version number 
floats to tuples
+  * Reworked for Python 3.10.
+  * Add 3.10 opcodes.
+  * Add 3.9 and 3.10 testing.
+  * Some tolerance for running from 3.11
+  * Update magic numbers
+  * Expanding testing to include pyston and PyPy 3.7
+  * Added knowledge of Python versions 3.6.15 and 3.7.12.
+  * Restrict wheel packaging for Python 3 only.
+  * Use the wheel for only the 3.x and newer version of Python.
+  * Add Python version 3.9.7
+  * Document unmarshal better
+  * Correct stack information for IMPORT_NAME
+  * Fix bug in code type handling where bytes were showing up as strings
+  * More type annotations in master branch. Create more older variations 
without annotations
+  * Add Python versions 3.9.6, 3.7.11, 3.8.11, and 3.6.14
+  * Note Python versions 3.8.10 and 3.9.5
+  * Incorrect variable name in marshal dump (used in writting .pyc files). PR 
#77
+  * Improve 3.9 IS_OP and CONTAINS_OP operand formatting
+  * Correct disassembly of 3.9 bytecode from other bytecode
+  * Accept 3.9.3 and 3.9.4 as a valid 3.9 version
+  * Accept 3.8.9 as a valid 3.8 version 
+- Rename python-xdis.patch to be slightly more descriptive:
+  ignore-patchlevel-in-python-version.patch, and rebase it.
+
+-------------------------------------------------------------------

Old:
----
  5.0.6.tar.gz
  python-xdis.patch

New:
----
  6.0.3.tar.gz
  ignore-patchlevel-in-python-version.patch

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

Other differences:
------------------
++++++ python-xdis.spec ++++++
--- /var/tmp/diff_new_pack.Y7SQmv/_old  2022-02-04 21:52:27.747124397 +0100
+++ /var/tmp/diff_new_pack.Y7SQmv/_new  2022-02-04 21:52:27.747124397 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package python-xdis
 #
-# Copyright (c) 2021 SUSE LLC
+# Copyright (c) 2022 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -18,25 +18,27 @@
 
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
 Name:           python-xdis
-Version:        5.0.6
+Version:        6.0.3
 Release:        0
 Summary:        Python cross-version byte-code disassembler and marshal 
routines
 License:        GPL-2.0-only
 URL:            https://github.com/rocky/python-xdis/
 Source:         https://github.com/rocky/python-xdis/archive/%{version}.tar.gz
-Patch0:         python-xdis.patch
+Patch0:         ignore-patchlevel-in-python-version.patch
 BuildRequires:  %{python_module setuptools}
 BuildRequires:  fdupes
 BuildRequires:  python-rpm-macros
-BuildRequires:  pkgconfig(python3) < 3.10
+BuildRequires:  pkgconfig(python3)
+Requires:       python-click
 Requires:       python-setuptools
+Requires:       python-six >= 1.10.0
 BuildArch:      noarch
 # SECTION test requirements
 BuildRequires:  %{python_module pytest}
 BuildRequires:  %{python_module six >= 1.10.0}
 # /SECTION
 Requires(post): update-alternatives
-Requires(postun): update-alternatives
+Requires(postun):update-alternatives
 %python_subpackages
 
 %description

++++++ 5.0.6.tar.gz -> 6.0.3.tar.gz ++++++
++++ 8270 lines of diff (skipped)

++++++ ignore-patchlevel-in-python-version.patch ++++++
Remove power from the folks who brought you linux2
Index: python-xdis-6.0.3/xdis/version_info.py
===================================================================
--- python-xdis-6.0.3.orig/xdis/version_info.py
+++ python-xdis-6.0.3/xdis/version_info.py
@@ -36,7 +36,7 @@ PYTHON_VERSION_STR = "%s.%s" % (sys.vers
 
 IS_PYPY = "__pypy__" in sys.builtin_module_names
 
-def version_tuple_to_str(version_tuple=PYTHON_VERSION_TRIPLE, start=0, end=3, 
delimiter=".") -> str:
+def version_tuple_to_str(version_tuple=PYTHON_VERSION_TRIPLE, start=0, end=2, 
delimiter=".") -> str:
     """
     Turn a version tuple, e.g. (3,2,6), into a dotted string, e.g. "3.2.6".
 
Index: python-xdis-6.0.3/xdis/disasm.py
===================================================================
--- python-xdis-6.0.3.orig/xdis/disasm.py
+++ python-xdis-6.0.3/xdis/disasm.py
@@ -39,6 +39,7 @@ from xdis.op_imports import op_imports,
 def get_opcode(version_tuple, is_pypy, alternate_opmap=None):
     # Set up disassembler with the right opcodes
     lookup = ".".join((str(i) for i in version_tuple))
+    shorter = ".".join((str(i) for i in version_tuple[:2]))
     if is_pypy:
         lookup += "pypy"
     if lookup in op_imports.keys():
@@ -46,6 +47,10 @@ def get_opcode(version_tuple, is_pypy, a
             # TODO: change bytecode version number comment line to indicate 
altered
             return remap_opcodes(op_imports[lookup], alternate_opmap)
         return op_imports[lookup]
+    else:
+        # Look for major.minor only
+        if shorter in op_imports.keys():
+            return op_imports[shorter]
     if is_pypy:
         pypy_str = " for pypy"
     else:

Reply via email to