Skip to content
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

Relative Links at https://pypi.org/project/onnx/ not working #5173

Closed
andife opened this issue Apr 23, 2023 · 7 comments
Closed

Relative Links at https://pypi.org/project/onnx/ not working #5173

andife opened this issue Apr 23, 2023 · 7 comments
Labels
bug documentation Issues related to ONNX documentation

Comments

@andife
Copy link
Member

andife commented Apr 23, 2023

Bug Report

Describe the bug

Relative Links at https://pypi.org/project/onnx/ not working.

Notes

Maybe make the links absolut for the wheel and Pypi

@andife andife added the bug label Apr 23, 2023
@xadupre
Copy link
Contributor

xadupre commented Apr 24, 2023

Nothing has changed since February. It is possible to know more?

@andife
Copy link
Member Author

andife commented Apr 24, 2023

Our readme has the line:

[ONNX intermediate representation spec](docs/IR.md)

which results in

image

@xadupre
Copy link
Contributor

xadupre commented Apr 24, 2023

Thanks, it is clear now. We should use absolute links.

@jcwchen
Copy link
Member

jcwchen commented Apr 25, 2023

Thanks for catching this. To provide more history context: previously we thought relative link issue for displaying description in PyPI has been resolved from their end: #3961, but in fact this issue still exists: pypa/readme_renderer#163. I also think we should use absolute links in ReadMe.md for now.

@jcwchen jcwchen added the documentation Issues related to ONNX documentation label Apr 25, 2023
@andife
Copy link
Member Author

andife commented Apr 25, 2023

I have not investigated it now so, but maybe there is another possibility? Could you prepare the readme file for pypi? Which file is used there? Could you make the links absolute only in the upload process?

Or maybe adapt the readme better to the target (e.g. how onnx is compiled, might not matter if you get a package with pip).

=> but maybe that just adds too much unnecessary complexity ?

@xadupre
Copy link
Contributor

xadupre commented Apr 25, 2023

It is doable by replacing the relative link before just before calling setup: https://github.com/onnx/onnx/blob/main/setup.py#L346.

@justinchuby
Copy link
Contributor

I suggest we don’t do too much in setup.py since it will eventually become pyproject.toml

github-merge-queue bot pushed a commit that referenced this issue Oct 2, 2023
Fixed the broken link passing absolute path 

### Description
Fixed the broken link passing absolute path

### Motivation and Context
Fixes issue: #5616
#5173

---------

Signed-off-by: rajalakshmi139 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug documentation Issues related to ONNX documentation
Projects
None yet
Development

No branches or pull requests

4 participants