You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
always use pex thru the cli, never as a python module (#22979)
The stable interface for using Pex is the cli, not as a Python module.
We removed most of these in #21515 but a few test dependencies remained.
Removing the last of those allows us to get Pex out of the lockfile and
make updating Pex versions smoother.
AI Notice: I used Claude to find the PexPEX based approach. This looks
reasonable to me but does not have a ton of idiomatic examples.
Copy file name to clipboardExpand all lines: docs/notes/2.31.x.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -107,6 +107,8 @@ Pants no longer supports loading `pkg_resources`-style namespace packages for pl
107
107
108
108
Allow `InteractiveProcess` to set the working directory relative to the sandbox or workspace. Existing usages of `InteractiveProcess.from_process` will now respect the working directory if its set on the Process, which may be a breaking change depending on the use case. Two existing rules `twine_upload` for python package uploads and `test_shell_command_interactively` for shell command testing with the `--debug` flag will now honor the working directory if set on the Process.
109
109
110
+
Pex is no longer included *as a Python module* in the default lockfile. Pex is still used as a cli tool as intended.
111
+
110
112
#### nFPM backend
111
113
112
114
Added a new rule to help in-repo plugins implement the `inject_nfpm_package_fields(InjectNfpmPackageFieldsRequest) -> InjectedNfpmPackageFields` polymorphic rule. The `get_package_field_sets_for_nfpm_content_file_deps` rule (in the `pants.backend.nfpm.util_rules.contents` module) collects selected `PackageFieldSet`s from the contents of an `nfpm_*_package` so that the packages can be analyzed to inject things like package requirements.
0 commit comments