torproject / stem

Python controller library for Tor
https://stem.torproject.org/
GNU Lesser General Public License v3.0
257 stars 75 forks source link

Fix breakage with cryptography>=42 #151

Closed bryango closed 4 months ago

bryango commented 4 months ago

This fixes the breakage for cryptography>=42. The important changes are concentrated on the last commit:

Some other changes are also added along the way, in other commits:

atagar commented 4 months ago

Thanks bryango! I merged the two operative commits (skipped flake.nix since it was unrelated). Thank you!

dotlambda commented 4 months ago

Can we have a new release with this change?

atagar commented 4 months ago

For that you'd need to talk with Georg (gk@torproject.org).

bryango commented 4 months ago

Can we have a new release with this change?

Friendly ping @juga0 if they are interested 😉

Update: please also take a look at #152 which fixes the build for darwin. Thanks!

juga0 commented 4 months ago

Can we have a new release with this change?

Sure, the question is when :) Is this something that is currently breaking an existing service?, could it wait ~6 months? We just created a new release, it would be great if we can wait some months before a new one and include more fixes that would appear in that time.

Thanks!

dotlambda commented 4 months ago

Is this something that is currently breaking an existing service?

Stem is broken in every Linux distro that ships cryptography 42.

juga0 commented 3 months ago

Is this something that is currently breaking an existing service?

Stem is broken in every Linux distro that ships cryptography 42.

Right, but not every linux (stable) distribution ships already cryptography 42. For instance, Debian still ships 38 in stable (bookworm) and 41 in unstable.

We'll do a new release in a couple of months including the changes for cryptography 42.