hassan_syyid
09/29/2021, 8:21 PMpyproject.toml?
Currently when I run the target I see this:
$ cat data.txt | target-mysql --config config.json
<Command cli>
My pyproject.toml looks like the following:
[tool.poetry.scripts]
# CLI declaration
target-mysql = 'target_mysql.target:TargetMSSQL.cli'
`target.py`: https://github.com/hotgluexyz/target-mysql/blob/main/target_mysql/target.pyaaronsteers
09/29/2021, 8:26 PMcli = declaration in the target.py or tap.py file, but this should no longer be needed. The pyproject.toml entry you pasted above looks correct even without the cli declaration in target.py.aaronsteers
09/29/2021, 8:26 PMcli is a (built-in) class method, it should be callable directly from within the pypoetry cli declaration.hassan_syyid
09/29/2021, 8:27 PMtarget.py and got the behavior I showed aboveaaronsteers
09/29/2021, 8:28 PMaaronsteers
09/29/2021, 8:28 PMhassan_syyid
09/29/2021, 8:28 PM[tool.poetry.scripts]?aaronsteers
09/29/2021, 8:29 PM[tool.poetry.scripts]
# CLI declaration
target-mysql = 'target_mysql.target:cli'aaronsteers
09/29/2021, 8:29 PMaaronsteers
09/29/2021, 8:29 PMhassan_syyid
09/29/2021, 8:31 PM$ pip show singer-sdk
Name: singer-sdk
Version: 0.3.9
Summary: A framework for building Singer taps
Home-page:
Author: Meltano Team and Contributors
Author-email:
License: Apache 2.0
Location: /Users/hassansyyid/env/target-mysql/lib/python3.7/site-packages
Requires: joblib, importlib-metadata, inflection, requests, jsonpath-ng, memoization, pipelinewise-singer-python, click, backoff, cryptography, pendulum, PyJWT
Required-by: target-mysqlhassan_syyid
09/29/2021, 8:32 PMhassan_syyid
09/29/2021, 8:32 PMaaronsteers
09/29/2021, 8:32 PMvisch
09/29/2021, 8:33 PMhassan_syyid
09/29/2021, 8:33 PM