ES-Nix / poetry2nix-examples

Examples of usage of nix + flakes + poetry2nix
MIT License
4 stars 1 forks source link

Minimal example, work in progress

https://stackoverflow.com/a/59316578

Really cool: https://stackoverflow.com/a/67329452

nix develop
nix shell nixpkgs#poetry --command poetry build --format=wheel
nix develop
poetry build --format=wheel
podman \
build \
--file Containerfile \
--tag poetry:0.0.1
podman \
run \
--interactive=true \
--tty=true \
--rm=true \
--user='0' \
--volume="$(pwd)":/code:rw \
--workdir=/code \
poetry:0.0.1 \
bash \
-c \
"python -c 'from my_package.log_revision import start; start()'"

TODO:

About the include system: https://stackoverflow.com/a/66437801 https://python-poetry.org/docs/pyproject/#include-and-exclude