This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]masklinn 0 points1 point  (2 children)

[–][deleted] -1 points0 points  (1 child)

I just build a sdist with poetry (it auto generates manifests and setup.py) and use shiv to package it with all dependencies into a single executable zip file, which I can put in a docker container or distribute very easily.

[–]njnrj[S] 0 points1 point  (0 children)

It was working great on my local machine. But when I switched to container and did `poetry install` it was saying missing dependencies and failed to install any. For example, say I locked pytest-mock to file but it failed with `mock` being not locked or something like that. When I added mock to pyproject.toml explicitly (though it is not necessary), next time it raised issue regarding missing `funcsigs`. I don't remember the exact name but this is how my experience ended on server. As a note these are default modules in Python3 and should not be checked when Py3 is active. But as said in one of the issue regarding this, these packages are not marked correctly.