poetry-plugin-bundle icon indicating copy to clipboard operation
poetry-plugin-bundle copied to clipboard

[feature request] optionally compress bundled venv to zip or tar.gz file

Open kazdy opened this issue 2 years ago • 2 comments

Hi,

I would like to ask if this is a good idea to add an option to save bundled venv to .zip or tar.gz file. The usecase is for providing pyspark code and dependencies, it supports venv-pack tar.gz file which basically works the same as this bundle plugin, except it creates tar.gz file. See: https://spark.apache.org/docs/latest/api/python/user_guide/python_packaging.html#using-virtualenv

kazdy avatar Nov 30 '22 21:11 kazdy

this would be also nice for creating aws lambdas

loesak avatar Dec 16 '22 16:12 loesak

Afaik, venvs are not portable in general so creating an archive has some restrictions. To avoid raising false hopes, we should definitely document them. Some good starting point might be the caveats of venv-pack. Before accepting a solution like #72, I want to make sure we at least know the most obvious limitations. If anyone has experience with archiving venvs and using them somewhere else, please leave a comment with well-known restrictions of such an approach.

radoering avatar Sep 27 '23 16:09 radoering