Skip to content

Commit c479815

Browse files
committed
Add changelog note
1 parent 4622712 commit c479815

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

docs/notes/2.23.x.md

+7
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,13 @@ Source files no longer produce a dependency on Scala plugins. If you are using a
2626

2727
[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.
2828

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+
2936
### Plugin API changes
3037

3138
Fixed bug with workspace environment support where Pants used a workspace environment when it was searching for a local environment.

0 commit comments

Comments
 (0)