-
Notifications
You must be signed in to change notification settings - Fork 309
Remove python2.7 support #1423
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
ssteinbach
merged 25 commits into
AcademySoftwareFoundation:main
from
ssteinbach:main.drop_py27
Sep 29, 2022
Merged
Remove python2.7 support #1423
Changes from all commits
Commits
Show all changes
25 commits
Select commit
Hold shift + click to select a range
e044868
Remove python2 shim code
ssteinbach 6d02105
more python2 bits
ssteinbach 41ae232
3.7 or greater
ssteinbach 4a2d18b
ran pyupgrade over the codebase
ssteinbach 12c0cc9
don't run 2.7 matrix github actions
ssteinbach 695303e
couple more 2.7 branches
ssteinbach 405304d
lint pass
ssteinbach 12f213a
update docs
ssteinbach 5ab04cb
Update contrib/opentimelineio_contrib/adapters/ale.py
ssteinbach e298fa5
remove more python2 stuff
ssteinbach dc01a56
searching for version_info
ssteinbach ef808a9
found a few more by looking for "python"
ssteinbach d942421
fix typo
ssteinbach 9ba28b4
Update contrib/opentimelineio_contrib/adapters/advanced_authoring_for…
ssteinbach 2b63a24
updating exception type
ssteinbach e08a3f4
import guards
ssteinbach 3f6c24d
fix import in fcpx adapter
ssteinbach a66d0f6
cleanup type stuff in the extern_rv adapter
ssteinbach 5cdbadc
more import cleanup and removing #python 3 comments
ssteinbach 5967e7a
remove python2/3 comment in aaf adapter
ssteinbach e734f54
clarify use of ZIP_DEFLATED
ssteinbach 6b9bec0
couple more comments and things to clean up
ssteinbach 012d449
remove special case for python 2.7 builds in msvc
ssteinbach 73637ad
correct VFX platform support
ssteinbach 944b791
I mean vfx platform 2023-2020 (not 2022-2020)
ssteinbach File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -87,7 +87,7 @@ jobs: | |
strategy: | ||
matrix: | ||
os: [ubuntu-latest, windows-latest, macos-latest] | ||
python-version: ['2.7', '3.7', '3.8', '3.9', '3.10'] | ||
python-version: ['3.7', '3.8', '3.9', '3.10'] | ||
include: | ||
- { os: ubuntu-latest, shell: bash } | ||
- { os: macos-latest, shell: bash } | ||
|
@@ -130,9 +130,6 @@ jobs: | |
- name: Install python build dependencies | ||
run: | | ||
python -m pip install --upgrade pip setuptools wheel "flake8>=3.5" check-manifest | ||
- name: install mock for python 2.7 tests only | ||
if: matrix.python-version == 2.7 | ||
run: python -m pip install --upgrade mock | ||
- name: Run check-manifest and lint check | ||
run: make ci-prebuild | ||
- name: Build and Install | ||
|
@@ -172,22 +169,6 @@ jobs: | |
# by CMake. CMake is able to find the right toolchain, thanks to | ||
# the -A argument that we specify in the setup.py to set the | ||
# target platform (x86, x64, etc). | ||
- name: Set Windows Python 2.7 environment variables | ||
if: matrix.python-build == 'cp27*' && runner.os == 'Windows' | ||
shell: bash | ||
run: | | ||
echo "DISTUTILS_USE_SDK=1" >> $GITHUB_ENV | ||
echo "MSSdk=1" >> $GITHUB_ENV | ||
|
||
- name: Build wheels (Python 2.7) | ||
if: matrix.python-build == 'cp27*' | ||
# cibuildwheel 1.12.0 is the last release that supported Python 2.7. | ||
uses: pypa/[email protected] | ||
with: | ||
output-dir: wheelhouse | ||
env: | ||
CIBW_BUILD: ${{ matrix.python-build }} | ||
|
||
- name: Build wheels (Python 3) | ||
uses: pypa/[email protected] | ||
if: matrix.python-build != 'cp27*' | ||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,8 +3,8 @@ OpenTimelineIO | |
[](http://opentimeline.io) | ||
============== | ||
|
||
[](http://www.vfxplatform.com/) | ||
 | ||
[](http://www.vfxplatform.com/) | ||
 | ||
[](https://github.com/AcademySoftwareFoundation/OpenTimelineIO/actions/workflows/python-package.yml) | ||
[](https://codecov.io/gh/AcademySoftwareFoundation/OpenTimelineIO) | ||
[](https://opentimelineio.readthedocs.io/en/latest/index.html) | ||
|
@@ -54,8 +54,8 @@ Documentation, including quick start, architecture, use cases, API docs, and muc | |
Supported VFX Platforms | ||
----------------- | ||
The current release supports: | ||
- VFX platform 2022, 2021, 2020, 2019 | ||
- Python 2.7 - 3.10 | ||
- VFX platform 2023, 2022, 2021, 2020 | ||
- Python 3.7 - 3.10 | ||
|
||
For more information on our vfxplatform support policy: [Contribution Guidelines Documentation Page](https://opentimelineio.readthedocs.io/en/latest/tutorials/contributing.html) | ||
For more information on the vfxplatform: [VFX Platform Homepage](https://vfxplatform.com) | ||
|
@@ -155,8 +155,8 @@ You can also install the PySide2 dependency with `python -m pip install .[view]` | |
|
||
You may need to escape the `[` depending on your shell, `\[view\]` . | ||
|
||
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 | ||
Currently the code base is written against python 3.7, 3.8, 3.9, and 3.10, in | ||
keeping with the pep8 style. We ask that before developers submit pull | ||
request, they: | ||
|
||
- run `make test` -- to ensure that none of the unit tests were broken | ||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.