Skip to content

Commit

Permalink
Support Python 3.9 (#1080)
Browse files Browse the repository at this point in the history
* Support Python 3.9
* Add Python 3.9 reference to README
  • Loading branch information
JeanChristopheMorinPerso committed Sep 30, 2021
1 parent 1ba6d78 commit b4b36a1
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 18 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
python-version: [2.7, 3.7, 3.8]
python-version: [2.7, 3.7, 3.8, 3.9]

env:
OTIO_CXX_COVERAGE_BUILD: ON
Expand Down Expand Up @@ -71,7 +71,7 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
python-build: [cp27*, cp37*, cp38*]
python-build: [cp27*, cp37*, cp38*, cp39*]
steps:
- uses: actions/checkout@v2

Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ OpenTimelineIO
==============

[![Supported VFX Platform Versions](https://img.shields.io/badge/vfx%20platform-2016--2020-lightgrey.svg)](http://www.vfxplatform.com/)
![Supported Versions](https://img.shields.io/badge/python-2.7%2C%203.7%2C%203.8-blue.svg)
![Supported Versions](https://img.shields.io/badge/python-2.7%2C%203.7%2C%203.8%2C%203.9-blue)
[![Build Status](https://github.com/PixarAnimationStudios/OpenTimelineIO/actions/workflows/python-package.yml/badge.svg)](https://github.com/PixarAnimationStudios/OpenTimelineIO/actions/workflows/python-package.yml)
[![codecov](https://codecov.io/gh/PixarAnimationStudios/OpenTimelineIO/branch/master/graph/badge.svg)](https://codecov.io/gh/PixarAnimationStudios/OpenTimelineIO)
[![docs](https://readthedocs.org/projects/opentimelineio/badge/?version=latest)](https://opentimelineio.readthedocs.io/en/latest/index.html)
Expand Down Expand Up @@ -108,7 +108,7 @@ You can install development dependencies with `pip install .[dev]`

You can also install the PySide2 dependency with `pip install .[view]`

Currently the code base is written against python2.7, python3.7 and python3.8,
Currently the code base is written against python 2.7, 3.7, 3.8 and 3.9,
in keeping with the pep8 style. We ask that before developers submit pull
request, they:

Expand Down
26 changes: 12 additions & 14 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,19 +32,6 @@
"win-amd64": "x64",
}

INSTALL_REQUIRES = [
'pyaaf2~=1.4.0',
]
# python2 dependencies
if sys.version_info[0] < 3:
INSTALL_REQUIRES.extend(
[
"backports.tempfile",
'future', # enables the builtins module in the XGES adapter
"pathlib2" # used in the otioz adapter to conform to unix paths
]
)


def _debugInstance(x):
for a in sorted(dir(x)):
Expand Down Expand Up @@ -295,6 +282,7 @@ def test_otio():
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Operating System :: OS Independent',
'Natural Language :: English',
],
Expand Down Expand Up @@ -329,7 +317,17 @@ def test_otio():
'opentimelineview': 'src/opentimelineview',
},

install_requires=INSTALL_REQUIRES,
# Disallow 3.9.0 because of https://github.com/python/cpython/pull/22670
python_requires='>2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*, !=3.5.*, !=3.6.*, !=3.9.0', # noqa: E501

install_requires=[
'pyaaf2~=1.4.0',
'backports.tempfile; python_version<"3.0"',
# Enables the builtins module in the XGES adapter
'future; python_version<"3.0"',
# Used in the otioz adapter to conform to unix paths
'pathlib2; python_version<"3.0"'
],
entry_points={
'console_scripts': [
'otioview = opentimelineview.console:main',
Expand Down

0 comments on commit b4b36a1

Please sign in to comment.