-
Notifications
You must be signed in to change notification settings - Fork 3.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
onnx-weekly has inconsistent version metadata #5931
Comments
pypi can't find a compiled version suitable for your environment (https://pypi.org/project/onnx-weekly/#files). Which python are you using? |
I have intentionally ignored the binary wheel packages (--no-binary :all:) to trigger the behavior which otherwise can be observed on platforms where there is no binary available at all. I originally ran into this on s390x. |
Sorry, I misunderstood your initial question. +@justinchuby |
Looks like we needed to set the version metadata correctly to resolve "[...] has inconsistent version: expected '1.16.0.dev20240205', but metadata has '1.16.0'" |
I would assume the tar.gz which could be find here, p.ex. https://pypi.org/project/onnx-weekly/#files: onnx_weekly-1.17.0.dev20240708.tar.gz (11.4 MB view hashes) Uploaded 8. Juli 2024 Source should have the correct version in it... Therefore changing the Number in onnx_weekly-1.17.0.dev20240708.tar.gz\onnx_weekly-1.17.0.dev20240708\VERSION_NUMBER should work I wonder at which step is the tar.gz generated? Otherwise one could simply patch the file beforehand? |
The tar.gz is built at onnx/.github/workflows/release_mac.yml Line 142 in c7717bb
ONNX_PREVIEW_BUILD=1 python -m build --sdist If I understand this correctly, I have the opinion that it is quite hidden and should not be assigned to a specific OS pipeline. |
Bug Report
Is the issue related to model conversion?
No
Describe the bug
Compiling the onnx-weekly package during installation fails due to inconsistent meta data:
Building the source package directly from the tarball works though:
pip install https://files.pythonhosted.org/packages/20/f2/bf15d54fd4e661f1e5f3df79fbbbbc32ac5e4912154ed0ea6f2854dc3540/onnx-weekly-1.16.0.dev20240205.tar.gz
What also works is installation with the older resolver engine:
pip install --use-deprecated=legacy-resolver --no-binary :all: onnx-weekly
System information
Reproduction instructions
pip install --no-binary :all: onnx-weekly
Expected behavior
Build and install onnx-weekly package
Notes
The text was updated successfully, but these errors were encountered: