AcademySoftwareFoundation / OpenTimelineIO

Open Source API and interchange format for editorial timeline information.
http://opentimeline.io
Apache License 2.0
1.47k stars 294 forks source link

Drop Python2.7 support #1395

Closed ssteinbach closed 2 years ago

ssteinbach commented 2 years ago

As noted by #1094, VFX platform 2019 is the last VFX platform that includes python 2.7. This issue is to prepare for when we drop python 2.7 support.

JeanChristopheMorinPerso commented 2 years ago

Do we also want to update the code base to use newer syntax? If so then we can use https://github.com/asottile/pyupgrade to automatically upgrade code to use newer syntax. It also handles changing imports, and a bunch of different things. When running the tool, you basically tell it to target a specific Python version and it will take care of the rest.

JeanChristopheMorinPerso commented 2 years ago

We might also want to update Pybind11 to 2.10+.

meshula commented 2 years ago

it would be interesting to try pyupgrade and see what happens, and yes we'll want to update pybind11 to latest. we've been frozen for a whle

ssteinbach commented 2 years ago

@JeanChristopheMorinPerso great suggestion. It sounds like we want to do this after making release 0.15.0.

ssteinbach commented 2 years ago

(I added your notes as todo list items)