merbanan / rtl_433

Program to decode radio transmissions from devices on the ISM bands (and other frequencies)
GNU General Public License v2.0
6.16k stars 1.33k forks source link

Formally deprecate python2.7, enabling gcing support #3019

Open gdt opened 3 months ago

gdt commented 3 months ago

Right now, changes to examples/*.py are tested under relatively recent python 3.x and we are ignoring 2.7. At least I am. And, we say (I said):

Generally, python scripts should work with relatively recent Python 3.
(While they might work with 2.7, no one is paying attention to that.)

I hereby run up the flagpole that under examples/ we don't care about 2.7 to the point that we should

At this point it is hard to conceive of anyone not being able to have python3, and these are examples anyway. (People running LTS that doesn't have python3 and not wanting to build it and prereqs themselves is in my view something we should not cater to, 4 years after python2.7 extended EOL, and "LTS considered troublesome" anyway.)

This would just be an edit to examples/README.md.

This might or might not actually be a breaking change because we don't know if any scripts work with 2.7, because... nobody cares if they do.

zuckschwerdt commented 3 months ago

Agreed. Perhaps start with changing to a shebang of #!/usr/bin/env python3 in all scripts.

gdt commented 3 months ago

I'll let this sit a week for others to comment, and the dedup changes land, and then open a PR to change docs and #! change. Then we can after another while start ripping out from future.