-
Notifications
You must be signed in to change notification settings - Fork 85
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
Update CI and workflows for Python 3.12 support #1757
Changes from all commits
1db85a5
1b76541
ca6eea5
f4accc7
ed2ddf8
84cbbb4
fa148b4
af7eea0
e0937d5
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,7 @@ on: | |
- workflow_dispatch | ||
|
||
env: | ||
# Temporary workaround prior to release of Traits 8.0 | ||
# Temporary workaround prior to release of TraitsUI 8.0 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Drive-by fix while we're touching this file, unrelated to the rest of the PR. |
||
# xref: enthought/traits#1742 | ||
ETS_QT4_IMPORTS: 1 | ||
|
||
|
@@ -14,13 +14,13 @@ jobs: | |
strategy: | ||
matrix: | ||
os: [ubuntu-latest, windows-latest, macos-latest] | ||
python-version: ['3.7', '3.8', '3.9', '3.10', '3.11'] | ||
python-version: ['3.7', '3.8', '3.9', '3.10', '3.11', '3.12'] | ||
|
||
runs-on: ${{ matrix.os }} | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Install Linux packages for Qt 5 support | ||
- name: Install Linux packages for Qt support | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install libegl1 | ||
|
@@ -37,6 +37,7 @@ jobs: | |
uses: actions/setup-python@v4 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
allow-prereleases: true | ||
- name: Install dependencies and local packages | ||
run: | | ||
python -m pip install .[test] | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
[build-system] | ||
requires = ['setuptools<65.2', 'wheel'] | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I should be able to verify that the original issue (#1722) got resolved by simply creating an edm environment and pip installing traits locally? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Sorry, I missed this. Yes, that should work. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. And FWIW, it works for me locally:
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. yep yep it worked for me locally on python 3.11.4 edm |
||
requires = ['setuptools', 'wheel'] | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Older versions of setuptools break with Python 3.12, so it was necessary to remove this restriction. |
||
build-backend = 'setuptools.build_meta' | ||
|
||
[tool.black] | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This allows setup-python to install a Python 3.12 pre-release, and avoids the need to change these workflows again once Python 3.12.0 is released.