rough-engineer-58925
11/13/2024, 10:15 PMpants dependencies --transitive
but it contains non 1st party deps as well.elegant-florist-94385
11/13/2024, 11:06 PMpants dependencies --transitive --filter-target-type="python_requirement"
I think that should do it for you. filtering to only find 3rd party depselegant-florist-94385
11/13/2024, 11:12 PMhappy-kitchen-89482
11/14/2024, 12:23 AMrough-engineer-58925
11/14/2024, 7:36 AMrough-engineer-58925
11/14/2024, 6:47 PMpython_requirement
and poetry_requirements
.
Full command:
pants dependencies --transitive --filter-target-type="poetry_requirements" agents:
Running on the full repo ::
returns the deps but not when I target specific targets.elegant-florist-94385
11/14/2024, 8:18 PMpoetry_requirements
is not actually a target type. Its just a macro that creates python_requirement
targets behind the scenes. Try targetting python_requirement
rough-engineer-58925
11/14/2024, 8:20 PMhappy-kitchen-89482
11/14/2024, 9:40 PM--filter-target-type
but run on a specific target?rough-engineer-58925
11/14/2024, 10:46 PM//:poetry0#langchain-core
//:poetry0#langchain-openai
//:poetry0#langgraph
//:poetry0#protobuf
//pyproject.toml:poetry0
agents/__init__.py:lib
agents/agent.py:lib
agents/main.py:lib
agents/pb_test.py:tests
agents/router.py:lib
agents/simple.py:lib
lockfiles/python-default.lock:_python-default_lockfile
protobuf/v1/person.proto
utils/tools.py
happy-kitchen-89482
11/15/2024, 12:36 AMhappy-kitchen-89482
11/15/2024, 12:36 AM//:poetry0#langchain-core
and so on are what you want to see)rough-engineer-58925
11/15/2024, 6:45 AMrough-engineer-58925
11/15/2024, 8:44 PMhappy-kitchen-89482
11/15/2024, 8:49 PMhappy-kitchen-89482
11/15/2024, 8:49 PMpants peek
to find outrough-engineer-58925
11/15/2024, 8:51 PMpants peek //:poetry0#langchain-openai
returns:
{
"address": "//:poetry0#langchain-openai",
"target_type": "python_requirement",
"_find_links": [],
"dependencies": [
"//pyproject.toml:poetry0",
"lockfiles/python-default.lock:_python-default_lockfile"
],
"dependencies_raw": [
"//pyproject.toml:poetry0",
"lockfiles/python-default.lock:_python-default_lockfile"
],
"description": null,
"entry_point": null,
"goals": [
"run"
],
"modules": null,
"requirements": [
"langchain-openai<0.3.0,>=0.2.6"
],
"resolve": null,
"tags": null,
"type_stub_modules": null
}
]
rough-engineer-58925
11/15/2024, 8:51 PMpython_requirement
rough-engineer-58925
11/15/2024, 8:52 PMpants dependencies --transitive --filter-target-type="python_requirement" agents:
returns nothinghappy-kitchen-89482
11/15/2024, 10:11 PMhappy-kitchen-89482
11/15/2024, 10:12 PM--filter-*
flags filter the input targetshappy-kitchen-89482
11/15/2024, 10:12 PMdependencies
happy-kitchen-89482
11/15/2024, 10:12 PMhappy-kitchen-89482
11/15/2024, 10:13 PMhappy-kitchen-89482
11/15/2024, 10:17 PM$ pants dependencies --transitive agents: | xargs pants --no-pantsd list --filter-target-type="python_requirement"
happy-kitchen-89482
11/15/2024, 10:18 PM--no-pantsd
is important because you can’t have two concurrent daemonized pants runshappy-kitchen-89482
11/15/2024, 10:18 PM--no-pantsd
)rough-engineer-58925
11/15/2024, 10:30 PM