Skip to content
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

Merged
merged 4 commits into from
May 17, 2018
Merged

Remove the pyhap.accessories package. #115

merged 4 commits into from
May 17, 2018

Conversation

ikalchev
Copy link
Owner

@ikalchev ikalchev commented May 7, 2018

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.

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.
@ikalchev
Copy link
Owner Author

ikalchev commented May 7, 2018

@cdce8p @schinckel @jslay88 #43

@codecov-io
Copy link

codecov-io commented May 7, 2018

Codecov Report

Merging #115 into dev will not change coverage.
The diff coverage is n/a.

@@           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

@cdce8p
Copy link
Contributor

cdce8p commented May 7, 2018

Am I right in assuming that this is the first step in extracting the accessories to a separate repo?

@ikalchev
Copy link
Owner Author

ikalchev commented May 8, 2018

Yes, and until then, I moved them to the root. Here is one example: https://github.com/ikalchev/HAP-python-AM2302

@cdce8p
Copy link
Contributor

cdce8p commented May 8, 2018

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.

@ikalchev
Copy link
Owner Author

ikalchev commented May 8, 2018

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 fakes. I definitely agree that updating all of these will be worse, but I hope that the current rate of breaking changes will drop sooner or later.

@cdce8p
Copy link
Contributor

cdce8p commented May 8, 2018

Wouldn't setup/extras_require be a way to achieve just that?

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.

@ikalchev
Copy link
Owner Author

ikalchev commented May 8, 2018

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

@cdce8p
Copy link
Contributor

cdce8p commented May 8, 2018

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.

Package size

The reason I suggested the change was to not include any additional accessories with HAP-python, since Home Assistant (and maybe other projects) don't need them. From a maintenance point of view, I would move the current accessories (those which should be kept up to date) to just one new repo. Those files aren't that big to begin with.

@ikalchev
Copy link
Owner Author

ikalchev commented May 11, 2018

So what do you think, should I proceed with this merge (I need to add to the changelog first though).

@cdce8p
Copy link
Contributor

cdce8p commented May 11, 2018

My comments where more about how we move forward after this.
Regarding the merge, I don't really have an opinion on it. We should just try to move to the final solution before the next release to limit breaking changes.

@cdce8p cdce8p mentioned this pull request May 11, 2018
@ikalchev ikalchev merged commit a6d5bb1 into dev May 17, 2018
@ikalchev ikalchev deleted the remove_accessories branch May 17, 2018 20:37
ikalchev added a commit that referenced this pull request May 18, 2018
* 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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants