SHA256
1
0
forked from pool/python-onnx

10 Commits

Author SHA256 Message Date
9107099925 Accepting request 1220021 from science:machinelearning
OBS-URL: https://build.opensuse.org/request/show/1220021
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-onnx?expand=0&rev=23
2024-11-01 20:07:00 +00:00
f0f9299cc2 Build with the default protobuf and not with the protobuf21 compat package
OBS-URL: https://build.opensuse.org/package/show/science:machinelearning/python-onnx?expand=0&rev=56
2024-11-01 07:58:53 +00:00
a96397eb19 Accepting request 1208385 from science:machinelearning
- Fix numpy version 'Requires'

OBS-URL: https://build.opensuse.org/request/show/1208385
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-onnx?expand=0&rev=22
2024-10-16 21:50:21 +00:00
c3176b24bb OBS-URL: https://build.opensuse.org/package/show/science:machinelearning/python-onnx?expand=0&rev=54 2024-10-16 08:41:39 +00:00
8c5c5b2974 OBS-URL: https://build.opensuse.org/package/show/science:machinelearning/python-onnx?expand=0&rev=53 2024-10-16 08:41:14 +00:00
aa00068823 Accepting request 1207862 from science:machinelearning
OBS-URL: https://build.opensuse.org/request/show/1207862
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-onnx?expand=0&rev=21
2024-10-15 12:58:12 +00:00
282c53f503 - Update to 1.17.0:
* Key Updates
    - ai.onnx Opset 22
    Update to support bfloat16:
    - Python Changes
    Support for numpy >= 2.0
  * Bug fixes and infrastructure improvements

OBS-URL: https://build.opensuse.org/package/show/science:machinelearning/python-onnx?expand=0&rev=51
2024-10-14 09:21:30 +00:00
71028906ad Accepting request 1203274 from science:machinelearning
OBS-URL: https://build.opensuse.org/request/show/1203274
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-onnx?expand=0&rev=20
2024-09-25 19:54:08 +00:00
469bb4847a - update to 1.16.2:
* Mitigate tarball directory traversal risks #6164
  * Refactor safe extract method #6222
  * Add check on dimensions in Gemm opset 6 #6217
  * Update broken URLs #6255
- skipped 1.16.1:
  * Prevent crash on import after GCC 8 builds #6048
  * Add missing shape inference check for DequantizeLinear #6080
  * Fix input names for quantize/dequantize ONNX backend tests #6122
  * fix a skipped shape infer code #6049
- Changes needed to fix build errors on Leap 15.6 and Tumbleweed

OBS-URL: https://build.opensuse.org/package/show/science:machinelearning/python-onnx?expand=0&rev=49
2024-09-25 06:54:14 +00:00
09107b6297 Changes needed to fix build errors on Leap 15.6 and Tumbleweed
OBS-URL: https://build.opensuse.org/package/show/science:machinelearning/python-onnx?expand=0&rev=48
2024-09-25 06:46:46 +00:00
4 changed files with 71 additions and 10 deletions

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:0ce153e26ce2c00afca01c331a447d86fbf21b166b640551fe04258b4acfc6a4
size 12428161

3
onnx-1.17.0.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:8d5e983c36037003615e5a02d36b18fc286541bf52de1a78f6cf9f32005a820e
size 12475304

View File

@@ -1,3 +1,45 @@
-------------------------------------------------------------------
Thu Oct 31 23:25:27 UTC 2024 - Fridrich Strba <fstrba@suse.com>
- Do not build against the compatibility protobuf21, since the build
against the recent protobuf 28.3 and python-protobuf 5.28.3 works
just fine
-------------------------------------------------------------------
Wed Oct 16 08:41:19 UTC 2024 - Guillaume GARDET <guillaume.gardet@opensuse.org>
- Fix numpy version 'Requires'
-------------------------------------------------------------------
Mon Oct 14 08:29:14 UTC 2024 - Guillaume GARDET <guillaume.gardet@opensuse.org>
- Update to 1.17.0:
* Key Updates
- ai.onnx Opset 22
Update to support bfloat16:
- Python Changes
Support for numpy >= 2.0
* Bug fixes and infrastructure improvements
-------------------------------------------------------------------
Wed Sep 25 06:49:15 UTC 2024 - Guillaume GARDET <guillaume.gardet@opensuse.org>
- update to 1.16.2:
* Mitigate tarball directory traversal risks #6164
* Refactor safe extract method #6222
* Add check on dimensions in Gemm opset 6 #6217
* Update broken URLs #6255
- skipped 1.16.1:
* Prevent crash on import after GCC 8 builds #6048
* Add missing shape inference check for DequantizeLinear #6080
* Fix input names for quantize/dequantize ONNX backend tests #6122
* fix a skipped shape infer code #6049
-------------------------------------------------------------------
Wed Sep 25 06:48:43 UTC 2024 - Caroline Sena <caroline.sena@suse.com>
- Changes needed to fix build errors on Leap 15.6 and Tumbleweed
-------------------------------------------------------------------
Sat Jun 22 09:33:24 UTC 2024 - Sarah Kriesch <sarah.kriesch@opensuse.org>

View File

@@ -15,14 +15,15 @@
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%{?sle15_python_module_pythons}
# python-nbval needed for test isn't available python39
%define skip_python39 1
# Tumbleweed does not have a python36-numpy anymore: NEP 29 dropped Python 3.6 for NumPy 1.20
%{?sle15_python_module_pythons}
Name: python-onnx
Version: 1.16.0
Version: 1.17.0
Release: 0
Summary: Open Neural Network eXchange
License: MIT
@@ -30,6 +31,7 @@ URL: https://onnx.ai/
Source0: https://github.com/onnx/onnx/archive/v%{version}.tar.gz#/onnx-%{version}.tar.gz
Source1: %{name}-rpmlintrc
BuildRequires: %{python_module Pillow}
BuildRequires: %{python_module dataclasses if %python-base < 3.7}
BuildRequires: %{python_module devel >= 3.8}
BuildRequires: %{python_module fb-re2}
BuildRequires: %{python_module nbval}
@@ -41,18 +43,27 @@ BuildRequires: %{python_module pybind11}
BuildRequires: %{python_module pytest-xdist}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module setuptools}
BuildRequires: cmake
BuildRequires: cmake >= 3.5
BuildRequires: eigen3-devel
BuildRequires: fdupes
%if 0%{?suse_version} > 1500
BuildRequires: gcc-c++
BuildRequires: protobuf21-devel
%else
BuildRequires: gcc11
BuildRequires: gcc11-c++
%endif
BuildRequires: libstdc++-devel
BuildRequires: protobuf-devel
BuildRequires: python-rpm-macros
Requires: libonnx == %version
Requires: libonnx_proto == %version
Requires: libstdc++-devel
Requires: python-numpy
Requires: python-protobuf
Requires: python-pybind11
Requires: python-typing_extensions >= 3.6.2.1
Requires(post): update-alternatives
Requires(postun):update-alternatives
Requires(postun): update-alternatives
Provides: python-onnx-devel = %{version}-%{release}
Obsoletes: python-onnx-devel < %{version}-%{release}
%python_subpackages
@@ -109,13 +120,21 @@ sed -i "/^CMAKE_BUILD_DIR = / s/TOP_DIR, '.setuptools-cmake-build'/TOP_DIR, 'bui
sed -i -e '/pytest-runner/d' setup.py
%build
%if 0%{?suse_version} <= 1500
export CC=%{_bindir}/gcc-11
export CXX=%{_bindir}/g++-11
%endif
%{python_expand # Generate the build system using the distro macro, configuring everything to taste for every python flavor.
%cmake -DONNX_USE_PROTOBUF_SHARED_LIBS:BOOL=ON \
-DONNX_WERROR:BOOL=OFF
# the macro stays in build/
cd ..
}
# let setup.py do the cmake build call (for every flavor)
%python_build
%install
@@ -140,7 +159,7 @@ done
export LD_LIBRARY_PATH="%{buildroot}%{_libdir}"
# copy tests into clean subdir and test the installed lib in sitearch
mkdir cleantestdir
cp -r onnx/test onnx/examples cleantestdir/
cp -r onnx/test examples cleantestdir/
pushd cleantestdir
# skip online tests
donttest=" test_bvlc_alexnet_cpu \