Used to generate lockfiles for third-party Python dependencies.

Backend: pants.backend.docker
Config section: [poetry]

Basic options

None

Advanced options

version

--poetry-version=<str>

PANTS_POETRY_VERSION

default: poetry==1.1.14

Requirement string for the tool.


extra_requirements

--poetry-extra-requirements="['<str>', '<str>', ...]"

PANTS_POETRY_EXTRA_REQUIREMENTS

default: []

Any additional requirement strings to use with the tool. This is useful if the tool allows you to install plugins or if you need to constrain a dependency to a certain version.


interpreter_constraints

--poetry-interpreter-constraints="['<str>', '<str>', ...]"

PANTS_POETRY_INTERPRETER_CONSTRAINTS

default:
[
  "CPython>=3.7,<4"
]

Python interpreter constraints for this tool.


Deprecated options

None


Did this page help you?