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.
@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 thetableauhyperapi
dependencypip install ./[hyper]
this DID install thetableauhyperapi
dependencySo 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.