Add support for local fallback package source
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.
Is this the same as https://github.com/sdispater/poetry/issues/14? https://github.com/sdispater/poetry/issues/559 looks a bit more specific, but might also contain some more information on the matter.
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)
So similar to pip install --find-links=<some_url_or_directory>? There is https://github.com/sdispater/poetry/issues/558 that asks for that, more or less. Does it cover your use case?
@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:
- Check online packages per the default methodology
- 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.
From what I can see for #558, if you just change the order of the sources, would that have the behavior that you want?
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.
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.
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.