(py-)onnx: add v1.16.2; onnx: enable testing (#46274)
This commit is contained in:
parent
fec2f30d5a
commit
c4f3348af1
@ -17,9 +17,10 @@ class Onnx(CMakePackage):
|
|||||||
url = "https://github.com/onnx/onnx/archive/refs/tags/v1.9.0.tar.gz"
|
url = "https://github.com/onnx/onnx/archive/refs/tags/v1.9.0.tar.gz"
|
||||||
git = "https://github.com/onnx/onnx.git"
|
git = "https://github.com/onnx/onnx.git"
|
||||||
|
|
||||||
license("Apache-2.0")
|
license("Apache-2.0", checked_by="wdconinc")
|
||||||
|
|
||||||
version("master", branch="master")
|
version("master", branch="master")
|
||||||
|
version("1.16.2", sha256="84fc1c3d6133417f8a13af6643ed50983c91dacde5ffba16cc8bb39b22c2acbb")
|
||||||
version("1.16.1", sha256="0e6aa2c0a59bb2d90858ad0040ea1807117cc2f05b97702170f18e6cd6b66fb3")
|
version("1.16.1", sha256="0e6aa2c0a59bb2d90858ad0040ea1807117cc2f05b97702170f18e6cd6b66fb3")
|
||||||
version("1.16.0", sha256="0ce153e26ce2c00afca01c331a447d86fbf21b166b640551fe04258b4acfc6a4")
|
version("1.16.0", sha256="0ce153e26ce2c00afca01c331a447d86fbf21b166b640551fe04258b4acfc6a4")
|
||||||
version("1.15.0", sha256="c757132e018dd0dd171499ef74fca88b74c5430a20781ec53da19eb7f937ef68")
|
version("1.15.0", sha256="c757132e018dd0dd171499ef74fca88b74c5430a20781ec53da19eb7f937ef68")
|
||||||
@ -61,7 +62,7 @@ class Onnx(CMakePackage):
|
|||||||
"1.1.0_2018-04-19", commit="7e1bed51cc508a25b22130de459830b5d5063c41"
|
"1.1.0_2018-04-19", commit="7e1bed51cc508a25b22130de459830b5d5063c41"
|
||||||
) # py-torch@0.4.0
|
) # py-torch@0.4.0
|
||||||
|
|
||||||
depends_on("cxx", type="build") # generated
|
depends_on("cxx", type="build")
|
||||||
|
|
||||||
generator("ninja")
|
generator("ninja")
|
||||||
depends_on("cmake@3.1:", type="build")
|
depends_on("cmake@3.1:", type="build")
|
||||||
@ -73,6 +74,9 @@ def patch(self):
|
|||||||
filter_file("CMAKE_CXX_STANDARD 11", "CMAKE_CXX_STANDARD 14", "CMakeLists.txt")
|
filter_file("CMAKE_CXX_STANDARD 11", "CMAKE_CXX_STANDARD 14", "CMakeLists.txt")
|
||||||
|
|
||||||
def cmake_args(self):
|
def cmake_args(self):
|
||||||
# Try to get ONNX to use the same version of python as the spec is using
|
args = [
|
||||||
args = ["-DPY_VERSION={0}".format(self.spec["python"].version.up_to(2))]
|
# Try to get ONNX to use the same version of python as the spec is using
|
||||||
|
self.define("PY_VERSION", self.spec["python"].version.up_to(2)),
|
||||||
|
self.define("ONNX_BUILD_TESTS", self.run_tests),
|
||||||
|
]
|
||||||
return args
|
return args
|
||||||
|
@ -19,8 +19,9 @@ class PyOnnx(PythonPackage):
|
|||||||
homepage = "https://github.com/onnx/onnx"
|
homepage = "https://github.com/onnx/onnx"
|
||||||
pypi = "Onnx/onnx-1.6.0.tar.gz"
|
pypi = "Onnx/onnx-1.6.0.tar.gz"
|
||||||
|
|
||||||
license("Apache-2.0")
|
license("Apache-2.0", checked_by="wdconinc")
|
||||||
|
|
||||||
|
version("1.16.2", sha256="b33a282b038813c4b69e73ea65c2909768e8dd6cc10619b70632335daf094646")
|
||||||
version("1.16.1", sha256="8299193f0f2a3849bfc069641aa8e4f93696602da8d165632af8ee48ec7556b6")
|
version("1.16.1", sha256="8299193f0f2a3849bfc069641aa8e4f93696602da8d165632af8ee48ec7556b6")
|
||||||
version("1.16.0", sha256="237c6987c6c59d9f44b6136f5819af79574f8d96a760a1fa843bede11f3822f7")
|
version("1.16.0", sha256="237c6987c6c59d9f44b6136f5819af79574f8d96a760a1fa843bede11f3822f7")
|
||||||
version("1.15.0", sha256="b18461a7d38f286618ca2a6e78062a2a9c634ce498e631e708a8041b00094825")
|
version("1.15.0", sha256="b18461a7d38f286618ca2a6e78062a2a9c634ce498e631e708a8041b00094825")
|
||||||
@ -59,6 +60,8 @@ class PyOnnx(PythonPackage):
|
|||||||
depends_on("py-numpy", type=("build", "run"))
|
depends_on("py-numpy", type=("build", "run"))
|
||||||
depends_on("py-numpy@1.16.6:", type=("build", "run"), when="@1.8.1:1.13")
|
depends_on("py-numpy@1.16.6:", type=("build", "run"), when="@1.8.1:1.13")
|
||||||
depends_on("py-numpy@1.20:", type=("build", "run"), when="@1.16.0:")
|
depends_on("py-numpy@1.20:", type=("build", "run"), when="@1.16.0:")
|
||||||
|
depends_on("py-numpy@1.21:", type=("build", "run"), when="@1.16.2:")
|
||||||
|
depends_on("py-numpy@:1", type=("build", "run"), when="@:1.16")
|
||||||
|
|
||||||
# Historical dependencies
|
# Historical dependencies
|
||||||
depends_on("py-six", type=("build", "run"), when="@:1.8.1")
|
depends_on("py-six", type=("build", "run"), when="@:1.8.1")
|
||||||
|
Loading…
Reference in New Issue
Block a user