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

repository source should support a file system link to a index file like pip's --index-url for usage without a web server #8919

Open
2 tasks done
harrandt opened this issue Jan 29, 2024 · 3 comments
Labels
kind/feature Feature requests/implementations status/triage This issue needs to be triaged

Comments

@harrandt
Copy link

  • I have searched the issues of this repo and believe that this is not a duplicate.
  • I have searched the FAQ and general documentation and believe that my question is not already covered.

Feature Request

I somehow understand the discussions and reluctance here and here about pip's find-links and why it will not be added, even if this would be very useful for company repositories which don't want to maintain a webserver.

But pip --index-url allows to pass a local html file, like file:///c:/wheelhouse/simple/index.html or c:\wheelhouse\simple\index.html.

Tools like piprepo create a index.html file with links to the local file system.
This might not be as convenient as 'find-links', but it serves the same purpose.

Poetry's source could be able to deal with these these local files (Simple API Repository and Single Page Link Source).
A source could use the attribute path separate the use cases.

Examples for usage:

[[tool.poetry.source]]
name = "foo"
path = "file:///C:/wheelhouse/simple/index.html"

[[tool.poetry.source]]
name = "foo"
url = "C:\wheelhouse\simple\index.html"

[[tool.poetry.source]]
name = "foo"
url = "file:///C:/wheelhouse/simple/index.html"
@harrandt harrandt added kind/feature Feature requests/implementations status/triage This issue needs to be triaged labels Jan 29, 2024
@dimbleby
Copy link
Contributor

find-links feature request duplicates #5983 please close

@harrandt
Copy link
Author

harrandt commented Jan 29, 2024

This feature is explicitly not about find-links but rather index-url. There is no need to iterate a directory or guess around, you get the explicit links to the packages.

@dimbleby
Copy link
Contributor

hmm, well there's existing discussion of this feature in #5983, not sure it was worth splitting

either way I don't suppose it's likely to happen unless you want to step up with a merge request.

stackoverflow suggests that it might not be so hard, suggest experimenting with something along those lines if this is something you want to see

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/feature Feature requests/implementations status/triage This issue needs to be triaged
Projects
None yet
Development

No branches or pull requests

2 participants