da4089 / simplefix

Simple FIX protocol implementation for Python
MIT License
229 stars 63 forks source link

Deprecate Python 2.7 support as of 1 January 2021 #24

Closed da4089 closed 1 year ago

da4089 commented 4 years ago

So now that Python 2.7 is officially unsupported, I'd like to flag a date beyond which simplefix won't commit to support it.

In common with a few other projects, I'm thinking maybe 31 December 2020 sounds like a good sunset date.

I won't deliberately break it on 1 Jan 2021, but I anticipate removing Python 2.7 from the automated builds, and any new features won't be tested on 2.7.

Any objections? Anyone still using Python 2.7 today, and won't be migrating by then?

da4089 commented 2 years ago

I've committed several fixes for this today. In particular, the unit tests no longer include the code that allowed them to run on Python 2.x. I plan to do another pass introducing f-strings, and then anything else that I can find before calling this done.

da4089 commented 2 years ago

Still need to review string interpolation.

da4089 commented 1 year ago

Committed the fix for #42, replacing a bunch of %-operator usage with f-strings. This won't work on a anything older than CPython 3.6.

This task is now complete.

da4089 commented 1 year ago

Done.