Add IpAddr <-> ipaddress.IPv(4/6)Address conversion#3197
Add IpAddr <-> ipaddress.IPv(4/6)Address conversion#3197davidhewitt merged 1 commit intoPyO3:mainfrom
IpAddr <-> ipaddress.IPv(4/6)Address conversion#3197Conversation
To clarify, does this mean that your automation does not squash automatically an I am expected squash myself manually? Happy to do that, I didn't find anything specific in |
|
First time contributor has agreed to the new licensing scheme. |
Our automation is currently bors and it can only always merge or always squash. Since we do like coherent multi-commit histories, we do not squash and hence you need to either squash manually or provide a coherent multi-commit history. (This is not currently documented, but it is probably not useful ATM as bors-ng will not available for long and we will need to switch to GitHub's merge queues (which seem to have the same issue) soon.) |
adamreichold
left a comment
There was a problem hiding this comment.
The extract implementation is somewhat broad, but I think this is alright since the conversion are guided by the given types on the Rust side of things.
|
CI fails due to any unused import in the |
Fixed, thanks! 🙇 |
|
@davidhewitt I would want to merge this but would be glad for a second opinion on the broadness of the |
davidhewitt
left a comment
There was a problem hiding this comment.
Yep, this looks great to me - thanks both and sorry for the delay on my part!
|
I think we're happy to see this move forward, so I'll click merge now. Thanks again! |
|
Thank you two again! 🍰 It seems like the merge queue has hit an unrelated race condition, happy to fix things here if I'm misreading it. :) |
|
Yep no worries I will get #3225 merged and then retry. |
Add `IpAddr` <-> `ipaddress.IPv(4/6)Address` conversion
Add `IpAddr` <-> `ipaddress.IPv(4/6)Address` conversion
This PR adds support for conversion between Python's
ipaddress.IPv4Address/ipaddress.IPv6Addressandstd::net::IpAddr. 😃