From 21e24804ff7b3adf86f7f7178448c9678a9007d3 Mon Sep 17 00:00:00 2001 From: Jacob Floyd Date: Fri, 19 Aug 2022 11:34:48 -0500 Subject: [PATCH] Enable language backends https://www.pantsbuild.org/docs/initial-configuration\#enable-backends This does not add any lint/fmt/etc backends, just the language-specific ones. The experimental.python backend is required for twine support. Twine is used to publish wheels to pypi. --- CHANGELOG.rst | 2 +- pants.toml | 9 +++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.rst b/CHANGELOG.rst index 6e93143ae9..0b9f249c68 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -53,7 +53,7 @@ Added * Begin introducing `pants `_ to improve DX (Developer Experience) working on StackStorm, improve our security posture, and improve CI reliability thanks in part - to pants' use of PEX lockfiles. This is not a user-facing addition. #5713 #5724 #5726 + to pants' use of PEX lockfiles. This is not a user-facing addition. #5713 #5724 #5726 #5725 Contributed by @cognifloyd Changed diff --git a/pants.toml b/pants.toml index e3d92a5ba7..c4a2eba651 100644 --- a/pants.toml +++ b/pants.toml @@ -1,5 +1,14 @@ [GLOBAL] pants_version = "2.13.0rc2" +backend_packages = [ + # python + "pants.backend.python", + "pants.backend.experimental.python", # activates twine `publish` support + "pants.backend.python.mixed_interpreter_constraints", + + # shell + "pants.backend.shell", +] [source] # recording each pack individually under root patterns is not great, but resolves these issues: