hoverinc / tableau-utilities

A module and CLI Utility for managing Tableau objects, locally, and in Tableau Online.
MIT License
4 stars 1 forks source link

Use importlib #84

Closed jaybythebay closed 6 months ago

jaybythebay commented 6 months ago

Description

On installation there were sometimes errors due to missing pkg_resources. That can be solved by pip installing setuptools. That said, using importlib to get the version removes this dependency. https://docs.python.org/3/library/importlib.html is part of the standard base Python.

Changes

Tests

Successfully installed tableau_utilities-2.2.11
➜  tableau-utilities git:(use-importlib) ✗ tableau_utilities -v           
tableau_utilities 2.2.11
➜  tableau-utilities git:(use-importlib) ✗ tableau_utilities --version    
tableau_utilities 2.2.11
jaybythebay commented 6 months ago

@JustinGrilli this is ready for review. We can merge #83 first and then this one and release together.