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

Package optional subpackage #78

Closed jaybythebay closed 4 months ago

jaybythebay commented 4 months ago

@JustinGrilli I think this might be a better way to go than the other PR. This is a rough draft but here's the general idea:

Python will let you configure packages with extras. So the pip install commands are like this:

pip install my_package pip install my_package[extra]

In this case we can move the hyper code to it's own package and then specify to only install the tableauhyperapi when the extra is specified. I ran these commands:

pip install ./ this installed the tableau_utilities but did not install the tableauhyperapi dependency pip install ./[hyper] this DID install the tableauhyperapi dependency

So in this approach we just have a small amount of refactoring to do. I'm trying to get twine to work so I can upload the packages to pypi test and try installing on my Apple Silicon mac but I'm having environment problems on this old laptop.

Let me know what you think of this approach.

jaybythebay commented 4 months ago

Closing this out. Commits pushed to main got in the way of me squashing everything into 1 commit. Started a new branch to work around the issue.