Closed wolph closed 4 years ago
That is indeed a problem. Thanks for catching that. The only reason that setup.py
imports unificontrol
is to get the version number, so rather than making the dependency management more complex I will just fix the way that it tracks the version number.
Having some data classes for the various sorts of entities managed by Unifi would be helpful. My only concern with your proposal is that the dataclasses
module was only added in Python 3.7 and I had been trying to keep the code compatible with 3.6. Perhaps we can find a way to have these classes show up if the dataclasses
module module is present but be absent if running on an older version of Python. If you want to come up with a PR I'd be happy to take a look.
All good ideas. I've opened a new issue #5 to discuss this further so that I can close this issue once I have committed the fix. Let's move the discussion to there.
I've moved the messages :)
Fixed in version 0.2.6. New version committed to the master branch and pushed to PyPI.
The
setup.py
includesunificontrol
which (after a few more imports) also importsrequests
.I'm guessing this could be solved by specifying
requests
assetup_requirements
instead ofinstall_requirements
but not entirely sure.To reproduce: