Skip to content

Comments

Add a lock for the Poetry tool.#16117

Merged
jsirois merged 2 commits intopantsbuild:mainfrom
jsirois:poetry/tool-lock
Jul 10, 2022
Merged

Add a lock for the Poetry tool.#16117
jsirois merged 2 commits intopantsbuild:mainfrom
jsirois:poetry/tool-lock

Conversation

@jsirois
Copy link
Contributor

@jsirois jsirois commented Jul 10, 2022

[ci skip-rust]
[ci skip-build-wheels]

[ci skip-rust]
[ci skip-build-wheels]
DefaultTool.python(Yapf, backend="pants.backend.python.lint.yapf"),
DefaultTool.python(Lambdex, backend="pants.backend.awslambda.python"),
DefaultTool.python(MyPy, source_plugins=True),
DefaultTool.python(PoetrySubsystem),
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was the only real change (addition), the rest was alphabetizing the two groups (Python tools and JVM tools) individually.

[ci skip-rust]
[ci skip-build-wheels]
@jsirois jsirois merged commit e7bb78b into pantsbuild:main Jul 10, 2022
@jsirois jsirois deleted the poetry/tool-lock branch July 10, 2022 05:14
async def setup_poetry_lockfile(
_: PoetryLockfileSentinel, poetry_subsystem: PoetrySubsystem, python_setup: PythonSetup
) -> GeneratePythonLockfile:
# No matter what venv (Python) Poetry lives in, it can still create locks for projects with
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For the record, I went through the exercise of testing this with poetry 1.1.14 installed both in a 2.7 venv and a 3.11 venv creating project locks for the opposite.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants