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

Add support for local fallback package source #1289

Closed
badrobit opened this issue Aug 8, 2019 · 8 comments
Closed

Add support for local fallback package source #1289

badrobit opened this issue Aug 8, 2019 · 8 comments
Labels
kind/feature Feature requests/implementations

Comments

@badrobit
Copy link

badrobit commented Aug 8, 2019

It would be useful for environments where development can occur with an internet connection but deployments are on isolated systems that a fall back of a local "path" can be defined (could even be project wide) so that if the desired package(s) cannot be found and pulled from the online original source a backup local location can also be provided to be checked.

@brycedrennan brycedrennan added the kind/feature Feature requests/implementations label Aug 9, 2019
@a-recknagel
Copy link

a-recknagel commented Aug 22, 2019

Is this the same as #14? #559 looks a bit more specific, but might also contain some more information on the matter.

@badrobit
Copy link
Author

no this would be different in that it is not an offline or local package repository but a folder where the wheel or arc files downloaded from a pip download command could be stored. this way poetry could still be leveraged on systems that have to be fully isolated aka no network connection (think higher end embedded platforms)

@a-recknagel
Copy link

So similar to pip install --find-links=<some_url_or_directory>? There is #558 that asks for that, more or less. Does it cover your use case?

@badrobit
Copy link
Author

@a-recknagel it is similar except this would add it as a "fallback" method so that the same pyproject.toml could be used for both offline (deployment) and online (development usage) to act in the same manner as a pypi like repository but an offline fall back that would hopefully allow for something to the effect of the following install behavior:

  1. Check online packages per the default methodology
  2. if the response to all online repositories is no connection or an install flag of something like --offline is found during the poetry install or poetry update commands use the provided offline archive (link) location.

That would allow a little bit more flexibility in that it wouldn't force the user to select a source but rather allow them to define a fallback location if the normal source (aka pypi) fail.

@allen-chin
Copy link

From what I can see for #558, if you just change the order of the sources, would that have the behavior that you want?

@stale
Copy link

stale bot commented Dec 3, 2019

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Dec 3, 2019
@stale
Copy link

stale bot commented Dec 10, 2019

Closing this issue automatically because it has not had any activity since it has been marked as stale. If you think it is still relevant and should be addressed, feel free to open a new one.

@stale stale bot closed this as completed Dec 10, 2019
Copy link

github-actions bot commented Mar 3, 2024

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 3, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
kind/feature Feature requests/implementations
Projects
None yet
Development

No branches or pull requests

4 participants