ken_payne
03/17/2021, 12:35 PMFileExistsError: Could not find schema file 'tap_tableau_wrangler/schemas/workbook.json'
even after adding to the [tool.poetry]
section in `pyproject.toml`:
include = ["tap_tableau_wrangler/schemas/*.json*"]
Apparently poetry's support for package data is a bit patchy š Is there a reason why the SDK cookiecutter defaults to poetry? Might be worth having a setup.py
option too, especially as Meltano doesn't seem to support editable poetry plugins yet either š¤¦āāļøaaronsteers
03/17/2021, 1:25 PMaaronsteers
03/17/2021, 1:27 PMken_payne
03/17/2021, 1:46 PMSCHEMAS_DIR = Path(pkg_resources.resource_filename('tap_tableau_wrangler', 'schemas/'))
So I just modified the base path from the cookiecutters streams.py
to point at the package and it works š This doesn't solve the editable problem, but it isn't too painful to run meltano install
after changes, as most testing of the tap is already done at the point I want to add it to meltano and run locally to sense-check.aaronsteers
03/17/2021, 1:49 PMaaronsteers
03/17/2021, 1:50 PMI started to wonder if the Stream class could be made to at least try and discover package filesI hadnāt thought of this before - will check it out š¤
edgar_ramirez_mondragon
03/17/2021, 2:48 PMSCHEMAS_DIR = Path(__file__).parent / Path("./schemas")
https://github.com/edgarrmondragon/tap-confluence/blob/master/tap_confluence/streams.py#L11aaronsteers
03/18/2021, 8:48 PM