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
Copy file name to clipboardexpand all lines: docs/notes/2.23.x.md
+7
Original file line number
Diff line number
Diff line change
@@ -26,6 +26,13 @@ Source files no longer produce a dependency on Scala plugins. If you are using a
26
26
27
27
[The `pants.backend.experimental.python.typecheck.pyright` backend](https://www.pantsbuild.org/2.23/reference/subsystems/pyright) now uses version 1.1.365 by default.
28
28
29
+
A new `entry_point_dependencies` field is now available for `python_tests` and `python_test` targets. This allows tests
30
+
to depend on a subset (or all) of the `entry_points` defined on `python_distribution` targets. A dependency defined in
31
+
`entry_point_dependencies` emulates an editable install of those `python_distribution` targets. Instead of including
32
+
all of the `python_distribution`'s sources, only the specified entry points are made available. The entry_points metadata
33
+
is also installed in the pytest sandbox so that tests (or the code under test) can load that metadata via `pkg_resources`.
34
+
To use this, enable the `pants.backend.experimental.python` backend.
35
+
29
36
### Plugin API changes
30
37
31
38
Fixed bug with workspace environment support where Pants used a workspace environment when it was searching for a local environment.
0 commit comments