jolly-midnight-72759
10/17/2020, 2:43 AMjolly-midnight-72759
10/17/2020, 2:48 AM./pants package acme/src/python/jupyter_stubber:jupyter-stubber-py3-dist to get this output.jolly-midnight-72759
10/17/2020, 2:48 AMpants.toml has the following in `[source]`:
root_patterns = [
"src/python",
"test/python",
"tests/python",
...
]hundreds-father-404
10/17/2020, 6:06 AMhundreds-father-404
10/17/2020, 6:10 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__.pyjolly-midnight-72759
10/17/2020, 11:50 AM