Skip to content

Rework exposing IPv6 addresses on ServiceInfo#195

Merged
jstasiak merged 1 commit into
python-zeroconf:masterfrom
dtantsur:addresses-compat
Nov 8, 2019
Merged

Rework exposing IPv6 addresses on ServiceInfo#195
jstasiak merged 1 commit into
python-zeroconf:masterfrom
dtantsur:addresses-compat

Conversation

@dtantsur
Copy link
Copy Markdown
Collaborator

  • Return backward compatibility for ServiceInfo.addresses by making
    it return V4 addresses only
  • Add ServiceInfo.parsed_addresses for convenient access to addresses
  • Raise TypeError if addresses are not provided as bytes (otherwise
    an ugly assertion error is raised when sending)
  • Add more IPv6 unit tests

@coveralls
Copy link
Copy Markdown

coveralls commented Oct 28, 2019

Coverage Status

Coverage increased (+0.06%) to 91.403% when pulling 410f3f1 on dtantsur:addresses-compat into aae7fd3 on jstasiak:master.

@coveralls
Copy link
Copy Markdown

Coverage Status

Coverage decreased (-0.009%) to 91.339% when pulling 834c3bd8f6196e4664264a611f39b38347247d9a on dtantsur:addresses-compat into aae7fd3 on jstasiak:master.

* Return backward compatibility for ServiceInfo.addresses by making
  it return V4 addresses only
* Add ServiceInfo.parsed_addresses for convenient access to addresses
* Raise TypeError if addresses are not provided as bytes (otherwise
  an ugly assertion error is raised when sending)
* Add more IPv6 unit tests
@dtantsur
Copy link
Copy Markdown
Collaborator Author

@jstasiak I don't know what I did to fix the PyPy problem, but here we go :) Actually, I suspect it may be sort of a race that got exposed by new tests. Dunno what to do about it. Opinions?

@jstasiak
Copy link
Copy Markdown
Collaborator

jstasiak commented Nov 8, 2019

Yeah it may be a race condition. I can't really spend time on this right now so you decide what to do about it. :) I'm fine with just merging this.

@dtantsur
Copy link
Copy Markdown
Collaborator Author

dtantsur commented Nov 8, 2019

I couldn't reproduce the failure locally after many attempts. I'd say we merge it and see if the issue ever repeats.

@jstasiak jstasiak merged commit 98a1ce8 into python-zeroconf:master Nov 8, 2019
@dtantsur dtantsur deleted the addresses-compat branch November 11, 2019 11:54
@dtantsur
Copy link
Copy Markdown
Collaborator Author

Thanks! Could you make a release whenever you're ready?

@jstasiak
Copy link
Copy Markdown
Collaborator

I added a milestone with few things I believe are needed for the new release: https://github.com/jstasiak/python-zeroconf/milestone/1 I can take care of all of them but it'll take a few days.

@jstasiak
Copy link
Copy Markdown
Collaborator

I went through the opendrop changes and narrowed down what's needed to be merged – it'll be possible to merge that code back without breaking backward compatibility so I decided to leave it for later and release what we have right now: version 0.24.0 with your patches has just been shipped.

@dtantsur
Copy link
Copy Markdown
Collaborator Author

w00t thanks! :)

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