Skip to content

Drop Python2.7 support #1395

@ssteinbach

Description

@ssteinbach

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.

  • update check in setup.py:
  • update README.md
  • update files that reference 2.7, especially places marked # python2 or # python 2.7 (this is a rough list from grep)
tests/test_builtin_adapters.py
tests/test_console.py
tests/test_timeline.py
tests/test_cmx_3600_adapter.py
tests/test_otioz.py
tests/test_adapter_plugin.py
tests/baselines/plugin_module/otio_mockplugin/__init__.py
tests/test_hooks_plugins.py
tests/test_examples.py
contrib/opentimelineio_contrib/adapters/tests/test_hls_playlist_adapter.py
src/py-opentimelineio/opentimelineio/adapters/file_bundle_utils.py
src/py-opentimelineio/opentimelineio/adapters/otiod.py
src/py-opentimelineio/opentimelineio/adapters/fcp_xml.py
src/py-opentimelineio/opentimelineio/url_utils.py
  • update .github/workflows/python-package.yml - python-package.yml
  • update pybind11 to 2.10+
  • try pyupgrade to move to newer syntax where available

Metadata

Metadata

Assignees

No one assigned

    Labels

    maintenanceGeneral cleanup and good code hygieneneeds discussionpythonPull requests that update Python code

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions