Ruben Vereecken
02/09/2024, 1:17 PMpoetry add -e ss-common
. The problem is that running meltano install
doesn’t keep the editable install. So I’m fine editing the tap locally, but if I make any changes inside ss-common
, those are not reflected in the meltano install.
What’s the best way to do this?
This is from the tap’s `pyproject.toml`:
[tool.poetry.dependencies]
python = ">=3.9 <3.12"
# ...
ss-common = { path = "../ss-common", develop = true }
Ruben Vereecken
02/09/2024, 1:18 PMRuben Vereecken
02/09/2024, 1:22 PMsource .meltano/extractors/tap-mytap/venv/bin/activate
pip install -e ../ss-common
Reuben (Matatika)
02/09/2024, 1:58 PMmeltano install --clean <type> <name>
after I've made a significant enough change, which is a pretty slow way to develop...Edgar Ramírez (Arch.dev)
02/09/2024, 4:39 PM.meltano/extractors/my-tap/venv/lib/python3.11/site-packages/ss_common.dist-info/direct_url.json
file in there with the right metadata.Edgar Ramírez (Arch.dev)
02/09/2024, 4:46 PM{
"dir_info": {
"editable": true
},
"url": "file:///path/to/ss-common"
}
Reuben (Matatika)
02/09/2024, 5:01 PM0.6.1.post924.dev0+48949c6
is coming from):Edgar Ramírez (Arch.dev)
02/09/2024, 5:05 PM{
"dir_info": {},
"url": "file:///Users/edgarramirez/Code/edgarrmondragon/poc/editable-inception/sub-dep"
}
Reuben (Matatika)
02/09/2024, 5:13 PMEdgar Ramírez (Arch.dev)
02/09/2024, 5:24 PMEdgar Ramírez (Arch.dev)
02/09/2024, 5:55 PM-e .
but instead point the executable
to the poetry-managed venvRuben Vereecken
02/10/2024, 9:33 AMexecutable
route you mean inside meltano.yml
? If setting that to the local tap, will the editable dependency of that tap be respected? Happy to experimentEdgar Ramírez (Arch.dev)
02/11/2024, 9:35 PMpip_url
and declaring the executable
pointing to the tap-x in the venv managed by poetry, the editable dependency should be respected. meltano install
will have no effect.