jolly-midnight-72759
10/17/2020, 2:43 AM./pants package acme/src/python/jupyter_stubber:jupyter-stubber-py3-dist
to get this output.pants.toml
has the following in `[source]`:
root_patterns = [
"src/python",
"test/python",
"tests/python",
...
]
hundreds-father-404
10/17/2020, 6:06 AMacme/src/python/__init__.py
and acme/src/python/jupyter_stubber/__init__.py
, but not acme/src/__init__.py
or anything above it
The reason this is breaking with 2.0 is that Pants now always includes all ancestor __init__.py
files, which is really important for how Python modules work. Before, Pants would only include what you explicitly included with dependencies
, and then it would automagically create missing ones. The end result is that acme/__init__.py
was ignored before, but now it’s being usedenough-analyst-54434
10/17/2020, 6:51 AMacme/src/python/jupyter_stubber/__init__.py
jolly-midnight-72759
10/17/2020, 11:50 AM