tableau/tabcmd

Remove `argparse` from dependency

Closed this issue · 0 comments

argparse is included into standard library

https://github.com/ThomasWaldmann/argparse/

"This repo is archived now and completely unsupported"
argparse development happens in the python standard library nowadays, NOT HERE.

https://github.com/tableau/tabcmd/blob/70613ea5b5a8bb55360d2ae3e18a34591aefe520/pyproject.toml#L45C6-L45C14

when argparse.py in the PAYTHONPATH, it causes error:

  File "/opt/.../tabcmd/execution/global_options.py", line 57, in set_users_file_arg
    type=argparse.FileType("r", encoding="utf-8-sig"),
TypeError: FileType.__init__() got an unexpected keyword argument 'encoding'

simple deleting argparse.py fixed the issue