jolly-midnight-72759
10/05/2020, 10:49 PMModuleNotFoundError: No module named 'pants.backend.python.targets'
on my branch for testing 2.0.0b3. Has this moved to 'pants.backend.python.targets_types'
?jolly-midnight-72759
10/05/2020, 10:52 PMfrom pants.backend.python.targets.python_target import PythonTarget
from pants.backend.targets.python_requirement_library import PythonRequirementLibrary
hundreds-father-404
10/05/2020, 10:54 PMpants.backend.python.targets*
refers to the v1 target definitions, which were deleted.
If your plugin is written in v1, it’ll unfortunately need to be rewritten to v2 using the Target API and Rules API. This is the hardest part of the upgrade, unfortunately. But we are eager to help with the processjolly-midnight-72759
10/05/2020, 10:55 PMjolly-midnight-72759
10/05/2020, 10:57 PMjolly-midnight-72759
10/05/2020, 10:58 PM./pants jupyter project/src/python/myapp
and get a jupyter notebook (and server) running.jolly-midnight-72759
10/05/2020, 10:59 PMjolly-midnight-72759
10/05/2020, 10:59 PMjolly-midnight-72759
10/05/2020, 11:00 PMhundreds-father-404
10/05/2020, 11:00 PMThe other creates a target that uses sphinx to build our docsIs this plugin only creating the target type, or you also have logic to read that target and run sphinx?
jolly-midnight-72759
10/05/2020, 11:02 PMsources
directory and it reads the docstrings to create API docs for the different modules.hundreds-father-404
10/05/2020, 11:03 PMrepl
goal: https://www.pantsbuild.org/docs/plugins-repl-goal. Also totally valid to have a distinct jupyter
goal if you preferjolly-midnight-72759
10/05/2020, 11:04 PMrepl
is probably acceptable to our crew. I'll investigate that first.jolly-midnight-72759
10/05/2020, 11:04 PMjolly-midnight-72759
10/05/2020, 11:04 PMjolly-midnight-72759
10/05/2020, 11:04 PMhundreds-father-404
10/05/2020, 11:05 PMrepl
or to use a distinct goal. Only comes down to preference for your org