Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-onnx for openSUSE:Factory 
checked in at 2022-05-05 23:07:11
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-onnx (Old)
 and      /work/SRC/openSUSE:Factory/.python-onnx.new.1538 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-onnx"

Thu May  5 23:07:11 2022 rev:12 rq:975150 version:1.10.2

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-onnx/python-onnx.changes  2022-01-20 
00:13:13.418622235 +0100
+++ /work/SRC/openSUSE:Factory/.python-onnx.new.1538/python-onnx.changes        
2022-05-05 23:07:50.397665645 +0200
@@ -1,0 +2,8 @@
+Tue May  3 09:55:18 UTC 2022 - Matej Cepl <mc...@suse.com>
+
+- Add 3734-enable-python310.patch to make the package Python 3.10
+  compatible (gh#onnx/onnx#3734).
+- Remove no-python2.patch, it is really better to fix shebang
+  with a sed command.
+
+-------------------------------------------------------------------

Old:
----
  no-python2.patch

New:
----
  3734-enable-python310.patch

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

Other differences:
------------------
++++++ python-onnx.spec ++++++
--- /var/tmp/diff_new_pack.x3ZRGr/_old  2022-05-05 23:07:50.945666330 +0200
+++ /var/tmp/diff_new_pack.x3ZRGr/_new  2022-05-05 23:07:50.949666334 +0200
@@ -20,8 +20,6 @@
 %define skip_python2 1
 # Tumbleweed does not have a python36-numpy anymore: NEP 29 dropped Python 3.6 
for NumPy 1.20
 %define skip_python36 1
-# onnx 1.10.2 is not yet ready for python 3.10
-%define skip_python310 1
 Name:           python-onnx
 Version:        1.10.2
 Release:        0
@@ -30,7 +28,9 @@
 URL:            https://onnx.ai/
 Source0:        
https://github.com/onnx/onnx/archive/v%{version}.tar.gz#/onnx-%{version}.tar.gz
 Source1:        %{name}-rpmlintrc
-Patch1:         no-python2.patch
+# PATCH-FIX-UPSTREAM 3734-enable-python310.patch gh#onnx/onnx#3734 
mc...@suse.com
+# Make the package Python 3.10 compatible
+Patch0:         3734-enable-python310.patch
 BuildRequires:  %{python_module devel}
 BuildRequires:  %{python_module numpy}
 BuildRequires:  %{python_module protobuf}
@@ -102,9 +102,14 @@
 
 %prep
 %setup -q -n onnx-%{version}
+
 # avoid bundles
 rm -rf third_party
 %autopatch -p1
+
+# fix shebang
+sed -i "s|^#!\s*%{_bindir}/env python|#!%{_bindir}/python3|" 
tools/protoc-gen-mypy.py
+
 # build inside python_expand shuffled build dir also used by the cmake macro 
instead of upstream's custom dirname
 sed -i "/^CMAKE_BUILD_DIR = / s/TOP_DIR, '.setuptools-cmake-build'/TOP_DIR, 
'build'/" setup.py
 # do not require extra pytest modules

++++++ 3734-enable-python310.patch ++++++
++++ 1103 lines (skipped)

++++++ python-onnx-rpmlintrc ++++++
--- /var/tmp/diff_new_pack.x3ZRGr/_old  2022-05-05 23:07:50.993666389 +0200
+++ /var/tmp/diff_new_pack.x3ZRGr/_new  2022-05-05 23:07:50.997666394 +0200
@@ -1,7 +1,3 @@
-# This line is mandatory to access the configuration functions
-from Config import *
-# there are source files which are parsed with pybind11, so they have to be 
included
-addFilter("python3-onnx.* devel-file-in-non-devel-package")
 # special library loader
 addFilter("libonnxifi_dummy.* lto-no-text-in-archive")
 

Reply via email to