-
Notifications
You must be signed in to change notification settings - Fork 119
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove the pyhap.accessories package. #115
Conversation
All accessories are temporarily moved to the root accessories folder. These will be moved into separate repositories as appropriate. pyhap.accessories is now an implicit namespace package. See pyhap/accessories/README.md for how others can share their accessories as HAP-python subpackages.
Codecov Report
@@ Coverage Diff @@
## dev #115 +/- ##
=======================================
Coverage 51.04% 51.04%
=======================================
Files 15 15
Lines 1340 1340
Branches 140 140
=======================================
Hits 684 684
Misses 642 642
Partials 14 14 |
Am I right in assuming that this is the first step in extracting the |
Yes, and until then, I moved them to the root. Here is one example: https://github.com/ikalchev/HAP-python-AM2302 |
As a follow up: Do you intend to create separate repos for each accessory? I imagine that updating those in case of Breaking Changes would be way easier if they are just in a single repo. |
Well, the way imagine this is that users will be able to pick and choose just what they want. So maybe separate, specific accessories will be in a separate repos. Others that are similar, like all the fake accessories, can get a single repo, e.g. called |
Wouldn't I hope as well that their aren't that many breaking changes any more, however until at least the async conversion is complete their might be more to come. Please don't get me wrong here, but I wouldn't want to create ten or more PRs just for one single breaking change. |
I totally understand - each repo will be maintained by its owner. Breaking changes were expected for me becaus there weren’t so many contributors until now. Once different points of view come, changes are needed to strike a balance and get the best of all. So everything is fine now I think. As for the extras - this won’t work because it will not reduce package size and will require each third party accessory to add itself here, whereas in the showed example they can be developed independently |
You're right. Didn't though about that.
The reason I suggested the change was to not include any additional accessories with |
So what do you think, should I proceed with this merge (I need to add to the changelog first though). |
My comments where more about how we move forward after this. |
* Merge master back into dev (#111) * Fix typo in log message (#112) * Fix typo in SDS011 * Documentation improvements for version 2.0.0 (#114) * Replace event_loop with loop (#107) * Changelog update (#116) * Added entry for event loop change * Additional changes * Small changes - Accessory (#117) * Improved bridge.to_HAP * Updated changelog * Fix another typo in SDS011 which prevented pm10 from getting updates. * Added getter_callback to Characteristic #78 * Fix typo bridge.to_HAP (#119) * Adding Code Style Checker (#118) * Add basis for style checker * Fixed lint errors * Updated changelog * Improvements 7 - Config class (#120) Added a State class which keeps Accessory runtime properties such as port, address, paired clients, etc. This state is stored and managed by the driver. * Remove the pyhap.accessories package. (#115) * Remove the pyhap.accessories package. All accessories are temporarily moved to the root accessories folder. These will be moved into separate repositories as appropriate. pyhap.accessories is now an implicit namespace package. See pyhap/accessories/README.md for how others can share their accessories as HAP-python subpackages. * Release v2.1.0.
All accessories are temporarily moved to the root accessories folder.
These will be moved into separate repositories as appropriate.
pyhap.accessories is now an implicit namespace package. See
pyhap/accessories/README.md for how others can share their accessories
as HAP-python subpackages.