2023-08-27 23:21:46 +03:00
2023-01-18 00:04:11 +03:00
2023-01-18 00:04:11 +03:00
2023-01-18 01:08:14 +03:00
2023-10-08 18:29:41 +03:00
2023-10-08 18:29:41 +03:00
2023-01-21 23:36:51 +03:00
2023-10-08 18:29:41 +03:00

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.toml file to poetry dir
  • In Dockerfile set python version the same as in pyproject.toml and poetry version 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
No description provided
Readme 5.1 MiB
Languages
Dockerfile 51.4%
Makefile 48.6%