Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
misc/py-onnx: update 1.14.1 → 1.16.0
Reported by: portscout
- Loading branch information
Showing
5 changed files
with
57 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
TIMESTAMP = 1693031876 | ||
SHA256 (onnx-1.14.1.tar.gz) = 70903afe163643bd71195c78cedcc3f4fa05a2af651fd950ef3acbb15175b2d1 | ||
SIZE (onnx-1.14.1.tar.gz) = 11328774 | ||
TIMESTAMP = 1713580433 | ||
SHA256 (onnx-1.16.0.tar.gz) = 237c6987c6c59d9f44b6136f5819af79574f8d96a760a1fa843bede11f3822f7 | ||
SIZE (onnx-1.16.0.tar.gz) = 12303017 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
--- pyproject.toml.orig 2024-03-05 06:23:47 UTC | ||
+++ pyproject.toml | ||
@@ -1,7 +1,7 @@ | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
[build-system] | ||
-requires = ["setuptools>=64", "protobuf>=3.20.2", "cmake"] | ||
+requires = ["setuptools", "protobuf>=3.20.2"] | ||
build-backend = "setuptools.build_meta" | ||
|
||
[project] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,44 @@ | ||
--- setup.py.orig 2023-04-12 23:29:42 UTC | ||
--- setup.py.orig 2024-03-25 14:15:57 UTC | ||
+++ setup.py | ||
@@ -59,11 +59,12 @@ COVERAGE = bool(os.getenv("COVERAGE", "0") == "1") | ||
@@ -65,11 +65,12 @@ try: | ||
################################################################################ | ||
|
||
try: | ||
- git_version = ( | ||
- _git_version = ( | ||
- subprocess.check_output(["git", "rev-parse", "HEAD"], cwd=TOP_DIR) | ||
- .decode("ascii") | ||
- .strip() | ||
- ) | ||
+ #git_version = ( | ||
+ #_git_version = ( | ||
+ # subprocess.check_output(["git", "rev-parse", "HEAD"], cwd=TOP_DIR) | ||
+ # .decode("ascii") | ||
+ # .strip() | ||
+ #) | ||
+ git_version = None | ||
+ _git_version = "" | ||
except (OSError, subprocess.CalledProcessError): | ||
git_version = None | ||
_git_version = "" | ||
|
||
@@ -227,10 +228,7 @@ class BuildPy(setuptools.command.build_py.build_py): | ||
|
||
class BuildPy(setuptools.command.build_py.build_py): | ||
def run(self): | ||
- if self.editable_mode: | ||
- dst_dir = TOP_DIR | ||
- else: | ||
- dst_dir = self.build_lib | ||
+ dst_dir = self.build_lib | ||
create_version(dst_dir) | ||
return super().run() | ||
|
||
@@ -273,10 +271,7 @@ class BuildExt(setuptools.command.build_ext.build_ext) | ||
self.copy_file(src, dst) | ||
|
||
# Copy over the generated python files to build/source dir depending on editable mode | ||
- if self.editable_mode: | ||
- dst_dir = TOP_DIR | ||
- else: | ||
- dst_dir = build_lib | ||
+ dst_dir = build_lib | ||
|
||
generated_py_files = glob.glob(os.path.join(CMAKE_BUILD_DIR, "onnx", "*.py")) | ||
generated_pyi_files = glob.glob(os.path.join(CMAKE_BUILD_DIR, "onnx", "*.pyi")) |