poetry icon indicating copy to clipboard operation
poetry copied to clipboard

Add support for local fallback package source

Open badrobit opened this issue 7 years ago • 8 comments

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.

badrobit avatar Aug 08 '19 22:08 badrobit

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.

a-recknagel avatar Aug 22 '19 10:08 a-recknagel

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)

badrobit avatar Aug 22 '19 16:08 badrobit

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 avatar Aug 23 '19 09:08 a-recknagel

@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.

badrobit avatar Aug 23 '19 21:08 badrobit

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

allen-chin avatar Oct 04 '19 20:10 allen-chin

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[bot] avatar Dec 03 '19 20:12 stale[bot]

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[bot] avatar Dec 10 '19 21:12 stale[bot]

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[bot] avatar Mar 03 '24 09:03 github-actions[bot]