mirror of
https://github.com/Balshgit/python-poetry.git
synced 2025-12-12 13:50:38 +03:00
8f7c1f43b43c557479adc40f633638558517af74
Poetry main packages
Used for poetry packages management with docker
required docker and optionally docker-compose
Generate poetry.lock and requirements.txt in container for any version of python3 and poetry
Prepare:
- copy
pyproject.tomlfile topoetrydir - In Dockerfile set
pythonversion the same as inpyproject.tomlandpoetryversion which will be used
Run from docker:
docker build --build-arg USER=$USER -t poetry-python . && docker run --rm -u $USER -v $PWD/poetry:/poetry poetry-python
Or run from docker-compose:
docker-compose up --build
script will generate poetry.lock and requirements.txt files in poetry directory
Local poetry export
poetry export -f requirements.txt --with dev --without-hashes --output requirements.txt
Description
Languages
Dockerfile
51.4%
Makefile
48.6%