poetry-plugin-bundle
poetry-plugin-bundle copied to clipboard
[feature request] optionally compress bundled venv to zip or tar.gz file
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
this would be also nice for creating aws lambdas
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.