-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Adds support for adding package from remote urls #801
Conversation
I think you would have to implement your own dependency because if you use file's it would still reference your local file and if you distribute the lock you would have problems reproducing the install on a remote system for example. Git dependency will pass all informations needed to reproduce on the remote system.
|
Ah, git won't propagate hashes to metadata but IMO url should do it as file does |
@jaysonsantos Thanks! I fixed the issue |
I noticed that my implementation doesn't work for all kinds of files. For example, it works if I point the url to an archive that was generated with
But this doesn't work:
|
A friendly bump 😉 I really would like to see this feature merged, please let me know if there is anything else I could do to help move this forward. |
e377ece
to
026b139
Compare
I have been using this branch for a while now and so far so good! The only problem that I had is that while this is working fine if I put the dependency in the |
What is the roadmap for getting this onto master? |
@sklarsa I think that it would at least require that the issue that I mentioned in my previous comment to be fixed. Other than that I think the PR works as I used my fork for quite a while without issues. Unfortunately, installing a poetry fork is a very cumbersome process and I don't want to force my coworkers into having to install a custom fork just to run my project. Given that I haven't received any feedback from a maintainer in 2 months, I just assumed that this project is currently dead and I moved back to pip, therefore I won't be updating this PR any longer. |
This feature overlaps with |
This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
This PR adds support for installing packages from remote URLs, by passing a
--url
parameter. e.g.:poetry add minibar --url https://github.com/canassa/minibar/archive/master.zip
I really needed this feature in order to keep using poetry in my internal company projects, therefore I hacked this PR together yesterday. This is really a proof-of-concept and not something production grade, I am opening this PR because I would like to get some feedback about this before I invest more time in it. Some question that I have are:
--url
parameter, or do you prefer something else?Dependency
and implementing thesearch_for_url
that download the file and calls thesearch_for_file
method?Fixes #695
Thanks!