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

attrs fixes and update #116

Merged
merged 5 commits into from
Aug 1, 2017
Merged

Conversation

Emantor
Copy link
Member

@Emantor Emantor commented Aug 1, 2017

No description provided.

@Emantor Emantor self-assigned this Aug 1, 2017
@Emantor Emantor requested a review from jluebbe August 1, 2017 08:36
@Emantor Emantor changed the title Topic/attrs update [WIP] Topic/attrs update Aug 1, 2017
@codecov-io
Copy link

codecov-io commented Aug 1, 2017

Codecov Report

Merging #116 into master will not change coverage.
The diff coverage is 96.6%.

Impacted file tree graph

@@          Coverage Diff           @@
##           master    #116   +/-   ##
======================================
  Coverage    50.7%   50.7%           
======================================
  Files          81      81           
  Lines        3954    3954           
======================================
  Hits         2005    2005           
  Misses       1949    1949
Impacted Files Coverage Δ
labgrid/remote/coordinator.py 0% <0%> (ø) ⬆️
labgrid/driver/bareboxdriver.py 51.2% <100%> (ø) ⬆️
labgrid/environment.py 93.5% <100%> (ø) ⬆️
labgrid/strategy/shellstrategy.py 53.8% <100%> (ø) ⬆️
labgrid/driver/fastbootdriver.py 63.1% <100%> (ø) ⬆️
labgrid/driver/usbloader.py 59.2% <100%> (ø) ⬆️
labgrid/remote/config.py 44.4% <100%> (ø) ⬆️
labgrid/resource/base.py 100% <100%> (ø) ⬆️
labgrid/binding.py 95.3% <100%> (ø) ⬆️
labgrid/resource/networkservice.py 100% <100%> (ø) ⬆️
... and 34 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 7c1530f...aa2c1d8. Read the comment docs.

Signed-off-by: Rouven Czerwinski <r.czerwinski@pengutronix.de>
We mostly don't need the compare functionality of attrs. Disable it to fall back
to object id hashes (similar to python standard classes). The only exception is
the ResourceMatch class, since we collect these into a list and need to remove
them later on. The list remove function requires the implementation of the
compare functions, explicitly enable it for the ResourceMatch class.

Fixes #106

Signed-off-by: Rouven Czerwinski <r.czerwinski@pengutronix.de>
We still require attrs>=16.3.0 for the post init functionality.

Signed-off-by: Rouven Czerwinski <r.czerwinski@pengutronix.de>
We were stuck on attrs==16.3.0 since 17.1.0 introduced breaking changes to the
attr.s compare behaviour. Due to dependency problems, we could not use
crossbar>17.3.1. We resolved the attrs dependencies in the previous commits and
can unpin specific versions from our dependency list.

Signed-off-by: Rouven Czerwinski <r.czerwinski@pengutronix.de>
Signed-off-by: Rouven Czerwinski <r.czerwinski@pengutronix.de>
@jluebbe jluebbe changed the title [WIP] Topic/attrs update attrs fixes and update Aug 1, 2017
@jluebbe jluebbe merged commit ee3ebf3 into labgrid-project:master Aug 1, 2017
@Emantor Emantor deleted the topic/attrs-update branch November 25, 2017 13:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants