SHA256
1
0
forked from pool/python-onnx

28 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
8a518edfe1 Accepting request 1183184 from science:machinelearning
- Disable tests for s390x based on IBM support without working tests (boo#1215337)

OBS-URL: https://build.opensuse.org/request/show/1183184
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-onnx?expand=0&rev=19
2024-06-25 21:08:37 +00:00
4d1fdcf83c Accepting request 1162860 from science:machinelearning
OBS-URL: https://build.opensuse.org/request/show/1162860
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-onnx?expand=0&rev=18
2024-03-27 19:42:54 +00:00
471617373c Accepting request 1142952 from science:machinelearning
OBS-URL: https://build.opensuse.org/request/show/1142952
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-onnx?expand=0&rev=17
2024-01-31 22:54:59 +00:00
7a8d03ba09 Accepting request 1117444 from science:machinelearning
OBS-URL: https://build.opensuse.org/request/show/1117444
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-onnx?expand=0&rev=16
2023-10-12 21:44:11 +00:00
38c66b5143 Accepting request 1099917 from science:machinelearning
OBS-URL: https://build.opensuse.org/request/show/1099917
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-onnx?expand=0&rev=15
2023-07-24 16:26:08 +00:00
0fe3d99d03 Accepting request 1012030 from science:machinelearning
OBS-URL: https://build.opensuse.org/request/show/1012030
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-onnx?expand=0&rev=14
2022-10-17 12:58:26 +00:00
e049cdeec9 Accepting request 990440 from science:machinelearning
OBS-URL: https://build.opensuse.org/request/show/990440
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-onnx?expand=0&rev=13
2022-07-21 09:35:17 +00:00
35693bbc47 Accepting request 975150 from science:machinelearning
OBS-URL: https://build.opensuse.org/request/show/975150
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-onnx?expand=0&rev=12
2022-05-05 21:07:11 +00:00
8896765a34 Accepting request 947378 from science:machinelearning
OBS-URL: https://build.opensuse.org/request/show/947378
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-onnx?expand=0&rev=11
2022-01-19 23:12:19 +00:00
9f505a305a Accepting request 872639 from science:machinelearning
OBS-URL: https://build.opensuse.org/request/show/872639
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-onnx?expand=0&rev=10
2021-02-15 22:20:59 +00:00
dc5033f0d2 Accepting request 827232 from science:machinelearning
OBS-URL: https://build.opensuse.org/request/show/827232
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-onnx?expand=0&rev=9
2020-08-17 10:08:35 +00:00
7df4cfda7c Accepting request 819171 from science:machinelearning
OBS-URL: https://build.opensuse.org/request/show/819171
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-onnx?expand=0&rev=8
2020-07-08 17:16:55 +00:00
74c5c5c847 Accepting request 807935 from science:machinelearning
OBS-URL: https://build.opensuse.org/request/show/807935
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-onnx?expand=0&rev=7
2020-05-23 15:27:51 +00:00
a2b14d34e9 Accepting request 796524 from science:machinelearning
- Force the interpreter to match the one during build
- Mypy should use python3 to generate stuff not python2
  * no-python2.patch

- Do not pull in py2 devel of pybind11

OBS-URL: https://build.opensuse.org/request/show/796524
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-onnx?expand=0&rev=6
2020-04-23 16:35:32 +00:00
b26c037702 Accepting request 787522 from science:machinelearning
- Do also provide/obsolete for the devel to support migration

- provide also python-onnx-devel for backcompat 

- created just one package, as other packages require the 
  source file within the package

OBS-URL: https://build.opensuse.org/request/show/787522
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-onnx?expand=0&rev=5
2020-03-24 21:34:57 +00:00
b5f1bc1df8 Accepting request 785234 from science:machinelearning
- Add patch to fix build with new protobuf:
  * protobuf.patch

OBS-URL: https://build.opensuse.org/request/show/785234
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-onnx?expand=0&rev=4
2020-03-16 09:19:37 +00:00
145da28f0b Accepting request 779106 from science:machinelearning
- Add missing dependencies and enable testsuite

- Force onnx static build in cmake round to ensure we do not
  end up with unresolvable pkg

- Remove testing fluff from previous change and properly loop
  the cmake call for each python variant
- Enable python2 (well rather not explicitly disable it as there
  is no need for that at the momment)

- Force building with system cmake to respect system definitions
  and to provide debug information for later on

OBS-URL: https://build.opensuse.org/request/show/779106
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-onnx?expand=0&rev=3
2020-02-26 14:03:54 +00:00
88350da65b Accepting request 761796 from science:machinelearning
OBS-URL: https://build.opensuse.org/request/show/761796
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-onnx?expand=0&rev=2
2020-01-08 16:56:57 +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 \