Skip to content

Commit

Permalink
Merge pull request #256 from KernelTuner/support_python_312
Browse files Browse the repository at this point in the history
Support Python 3.12 and drop Python 3.8
  • Loading branch information
benvanwerkhoven authored May 27, 2024
2 parents 983a972 + 1cff9b4 commit 7208227
Show file tree
Hide file tree
Showing 15 changed files with 508 additions and 4,241 deletions.
29 changes: 18 additions & 11 deletions .github/workflows/docs-on-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,32 +12,39 @@ jobs:
environment: dev_environment
runs-on: ubuntu-latest
steps:
- name: Get Python 3.10
uses: actions/setup-python@v4
- name: Get Python 3.12
uses: actions/setup-python@v5
with:
python-version: '3.10'
python-version: "3.12"
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0 # otherwise, you will failed to push refs to dest repo
- name: Get version set env, exit if beta release
run: |
echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
if [[ "$RELEASE_VERSION" == *"b"* ]]; then
echo "Version is a beta release. Cancel workflow."
exit 0
fi
echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
if [[ "$RELEASE_VERSION" == *"b"* ]]; then
echo "Version is a beta release. Cancel workflow."
exit 0
fi
- name: Install dependencies
run: |
sudo apt-get update;
sudo apt-get install pandoc;
pip install -e .
- name: Build and Commit
uses: sphinx-notes/pages@v2
- name: Build
uses: sphinx-notes/pages@v3
with:
python_version: 3.12
requirements_path: doc/requirements.txt
documentation_path: doc/source
target_path: ${{ env.RELEASE_VERSION }}
publish: false
- name: Commit
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ${{ steps.deployment.outputs.artifact }}
destination_dir: ${{ env.RELEASE_VERSION }}
- name: Redirect stable to new release
run: |
echo "Redirecting stable to newly released version " $RELEASE_VERSION
Expand Down
17 changes: 12 additions & 5 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ jobs:
# The type of runner that the job will run on
runs-on: ubuntu-latest
steps:
- uses: actions/setup-python@v4
- uses: actions/setup-python@v5
with:
python-version: '3.10'
python-version: "3.12"
- name: Checkout
uses: actions/checkout@v4
with:
Expand All @@ -25,12 +25,19 @@ jobs:
sudo apt-get update;
sudo apt-get install pandoc;
pip install -e .
- name: Build and Commit
uses: sphinx-notes/pages@v2
- name: Build
uses: sphinx-notes/pages@v3
with:
python_version: 3.12
requirements_path: doc/requirements.txt
documentation_path: doc/source
target_path: latest
publish: false
- name: Commit
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ${{ steps.deployment.outputs.artifact }}
destination_dir: ${{ env.RELEASE_VERSION }}
- name: Push changes
uses: ad-m/github-push-action@master
with:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/publish-python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ jobs:
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: "3.11"
python-version: "3.12"
- name: Setup Poetry
uses: Gr1N/setup-poetry@v8
uses: Gr1N/setup-poetry@v9
- name: Build the source distribution and pure-Python wheel
run: |
poetry install
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
- name: Setup Nox
uses: fjwillemsen/[email protected]
- name: Setup Poetry
uses: Gr1N/setup-poetry@v8
uses: Gr1N/setup-poetry@v9
- run: poetry self add poetry-plugin-export
- name: Run tests with Nox
run: |
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
### Project ###
poetry.lock
noxenv.txt
noxsettings.toml

Expand Down
2 changes: 1 addition & 1 deletion INSTALL.rst
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ Linux users could type the following to download and install Python 3 using Mini
wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh
bash Miniconda3-latest-Linux-x86_64.sh
You are of course also free to use your own Python installation, and the Kernel Tuner is developed to be fully compatible with Python 3.8 and newer.
You are of course also free to use your own Python installation, and the Kernel Tuner is developed to be fully compatible with Python 3.9 and newer.

Installing Python Packages
--------------------------
Expand Down
184 changes: 89 additions & 95 deletions doc/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,95 +1,89 @@
alabaster==0.7.13 ; python_version >= "3.8" and python_version < "3.12"
appnope==0.1.4 ; python_version >= "3.8" and python_version < "3.12" and sys_platform == "darwin"
asttokens==2.4.1 ; python_version >= "3.8" and python_version < "3.12"
attrs==23.2.0 ; python_version >= "3.8" and python_version < "3.12"
babel==2.14.0 ; python_version >= "3.8" and python_version < "3.12"
backcall==0.2.0 ; python_version >= "3.8" and python_version < "3.12"
beautifulsoup4==4.12.3 ; python_version >= "3.8" and python_version < "3.12"
bleach==6.1.0 ; python_version >= "3.8" and python_version < "3.12"
certifi==2024.2.2 ; python_version >= "3.8" and python_version < "3.12"
cffi==1.16.0 ; python_version >= "3.8" and python_version < "3.12" and implementation_name == "pypy"
charset-normalizer==3.3.2 ; python_version >= "3.8" and python_version < "3.12"
colorama==0.4.6 ; python_version >= "3.8" and python_version < "3.12" and sys_platform == "win32"
decorator==5.1.1 ; python_version >= "3.8" and python_version < "3.12"
defusedxml==0.7.1 ; python_version >= "3.8" and python_version < "3.12"
docutils==0.18.1 ; python_version >= "3.8" and python_version < "3.12"
dom-toml==0.6.1 ; python_version >= "3.8" and python_version < "3.12"
domdf-python-tools==3.8.0.post2 ; python_version >= "3.8" and python_version < "3.12"
exceptiongroup==1.2.0 ; python_version >= "3.8" and python_version < "3.11"
executing==2.0.1 ; python_version >= "3.8" and python_version < "3.12"
fastjsonschema==2.19.1 ; python_version >= "3.8" and python_version < "3.12"
idna==3.7 ; python_version >= "3.8" and python_version < "3.12"
imagesize==1.4.1 ; python_version >= "3.8" and python_version < "3.12"
importlib-metadata==7.0.1 ; python_version >= "3.8" and python_version < "3.10"
importlib-resources==6.1.1 ; python_version >= "3.8" and python_version < "3.9"
iniconfig==2.0.0 ; python_version >= "3.8" and python_version < "3.12"
ipython==8.12.3 ; python_version >= "3.8" and python_version < "3.12"
jedi==0.19.1 ; python_version >= "3.8" and python_version < "3.12"
jinja2==3.1.3 ; python_version >= "3.8" and python_version < "3.12"
joblib==1.3.2 ; python_version >= "3.8" and python_version < "3.12"
jsonschema-specifications==2023.12.1 ; python_version >= "3.8" and python_version < "3.12"
jsonschema==4.21.1 ; python_version >= "3.8" and python_version < "3.12"
jupyter-client==8.6.0 ; python_version >= "3.8" and python_version < "3.12"
jupyter-core==5.7.1 ; python_version >= "3.8" and python_version < "3.12"
jupyterlab-pygments==0.3.0 ; python_version >= "3.8" and python_version < "3.12"
markupsafe==2.1.5 ; python_version >= "3.8" and python_version < "3.12"
matplotlib-inline==0.1.6 ; python_version >= "3.8" and python_version < "3.12"
mistune==3.0.2 ; python_version >= "3.8" and python_version < "3.12"
natsort==8.4.0 ; python_version >= "3.8" and python_version < "3.12"
nbclient==0.9.0 ; python_version >= "3.8" and python_version < "3.12"
nbconvert==7.16.0 ; python_version >= "3.8" and python_version < "3.12"
nbformat==5.9.2 ; python_version >= "3.8" and python_version < "3.12"
nbsphinx==0.9.3 ; python_version >= "3.8" and python_version < "3.12"
numpy==1.24.4 ; python_version >= "3.8" and python_version < "3.12"
packaging==23.2 ; python_version >= "3.8" and python_version < "3.12"
pandas==2.0.3 ; python_version >= "3.8" and python_version < "3.12"
pandocfilters==1.5.1 ; python_version >= "3.8" and python_version < "3.12"
parso==0.8.3 ; python_version >= "3.8" and python_version < "3.12"
pexpect==4.9.0 ; python_version >= "3.8" and python_version < "3.12" and sys_platform != "win32"
pickleshare==0.7.5 ; python_version >= "3.8" and python_version < "3.12"
pkgutil-resolve-name==1.3.10 ; python_version >= "3.8" and python_version < "3.9"
platformdirs==4.2.0 ; python_version >= "3.8" and python_version < "3.12"
pluggy==1.4.0 ; python_version >= "3.8" and python_version < "3.12"
prompt-toolkit==3.0.43 ; python_version >= "3.8" and python_version < "3.12"
ptyprocess==0.7.0 ; python_version >= "3.8" and python_version < "3.12" and sys_platform != "win32"
pure-eval==0.2.2 ; python_version >= "3.8" and python_version < "3.12"
pycparser==2.21 ; python_version >= "3.8" and python_version < "3.12" and implementation_name == "pypy"
pygments==2.17.2 ; python_version >= "3.8" and python_version < "3.12"
pytest==7.4.4 ; python_version >= "3.8" and python_version < "3.12"
python-constraint2==2.0.0b5 ; python_version >= "3.8" and python_version < "3.12"
python-dateutil==2.8.2 ; python_version >= "3.8" and python_version < "3.12"
pytz==2024.1 ; python_version >= "3.8" and python_version < "3.12"
pywin32==306 ; sys_platform == "win32" and platform_python_implementation != "PyPy" and python_version >= "3.8" and python_version < "3.12"
pyzmq==25.1.2 ; python_version >= "3.8" and python_version < "3.12"
referencing==0.33.0 ; python_version >= "3.8" and python_version < "3.12"
requests==2.31.0 ; python_version >= "3.8" and python_version < "3.12"
rpds-py==0.17.1 ; python_version >= "3.8" and python_version < "3.12"
scikit-learn==1.3.2 ; python_version >= "3.8" and python_version < "3.12"
scipy==1.10.1 ; python_version >= "3.8" and python_version < "3.12"
six==1.16.0 ; python_version >= "3.8" and python_version < "3.12"
snowballstemmer==2.2.0 ; python_version >= "3.8" and python_version < "3.12"
soupsieve==2.5 ; python_version >= "3.8" and python_version < "3.12"
sphinx-pyproject==0.3.0 ; python_version >= "3.8" and python_version < "3.12"
sphinx-rtd-theme==1.3.0 ; python_version >= "3.8" and python_version < "3.12"
sphinx==7.1.2 ; python_version >= "3.8" and python_version < "3.12"
sphinxcontrib-applehelp==1.0.4 ; python_version >= "3.8" and python_version < "3.12"
sphinxcontrib-devhelp==1.0.2 ; python_version >= "3.8" and python_version < "3.12"
sphinxcontrib-htmlhelp==2.0.1 ; python_version >= "3.8" and python_version < "3.12"
sphinxcontrib-jquery==4.1 ; python_version >= "3.8" and python_version < "3.12"
sphinxcontrib-jsmath==1.0.1 ; python_version >= "3.8" and python_version < "3.12"
sphinxcontrib-qthelp==1.0.3 ; python_version >= "3.8" and python_version < "3.12"
sphinxcontrib-serializinghtml==1.1.5 ; python_version >= "3.8" and python_version < "3.12"
stack-data==0.6.3 ; python_version >= "3.8" and python_version < "3.12"
threadpoolctl==3.2.0 ; python_version >= "3.8" and python_version < "3.12"
tinycss2==1.2.1 ; python_version >= "3.8" and python_version < "3.12"
toml==0.10.2 ; python_version >= "3.8" and python_version < "3.12"
tomli==2.0.1 ; python_version >= "3.8" and python_version < "3.11"
tornado==6.4 ; python_version >= "3.8" and python_version < "3.12"
traitlets==5.14.1 ; python_version >= "3.8" and python_version < "3.12"
typing-extensions==4.9.0 ; python_version >= "3.8" and python_version < "3.12"
tzdata==2023.4 ; python_version >= "3.8" and python_version < "3.12"
urllib3==2.2.0 ; python_version >= "3.8" and python_version < "3.12"
wcwidth==0.2.13 ; python_version >= "3.8" and python_version < "3.12"
webencodings==0.5.1 ; python_version >= "3.8" and python_version < "3.12"
xmltodict==0.13.0 ; python_version >= "3.8" and python_version < "3.12"
zipp==3.17.0 ; python_version >= "3.8" and python_version < "3.10"
alabaster==0.7.16 ; python_version >= "3.9" and python_version < "3.13"
asttokens==2.4.1 ; python_version >= "3.9" and python_version < "3.13"
attrs==23.2.0 ; python_version >= "3.9" and python_version < "3.13"
babel==2.15.0 ; python_version >= "3.9" and python_version < "3.13"
beautifulsoup4==4.12.3 ; python_version >= "3.9" and python_version < "3.13"
bleach==6.1.0 ; python_version >= "3.9" and python_version < "3.13"
certifi==2024.2.2 ; python_version >= "3.9" and python_version < "3.13"
cffi==1.16.0 ; python_version >= "3.9" and python_version < "3.13" and implementation_name == "pypy"
charset-normalizer==3.3.2 ; python_version >= "3.9" and python_version < "3.13"
colorama==0.4.6 ; python_version >= "3.9" and python_version < "3.13" and sys_platform == "win32"
decorator==5.1.1 ; python_version >= "3.9" and python_version < "3.13"
defusedxml==0.7.1 ; python_version >= "3.9" and python_version < "3.13"
docutils==0.20.1 ; python_version >= "3.9" and python_version < "3.13"
dom-toml==2.0.0 ; python_version >= "3.9" and python_version < "3.13"
domdf-python-tools==3.8.1 ; python_version >= "3.9" and python_version < "3.13"
exceptiongroup==1.2.1 ; python_version >= "3.9" and python_version < "3.11"
executing==2.0.1 ; python_version >= "3.9" and python_version < "3.13"
fastjsonschema==2.19.1 ; python_version >= "3.9" and python_version < "3.13"
idna==3.7 ; python_version >= "3.9" and python_version < "3.13"
imagesize==1.4.1 ; python_version >= "3.9" and python_version < "3.13"
importlib-metadata==7.1.0 ; python_version >= "3.9" and python_version < "3.10"
iniconfig==2.0.0 ; python_version >= "3.9" and python_version < "3.13"
ipython==8.18.1 ; python_version >= "3.9" and python_version < "3.13"
jedi==0.19.1 ; python_version >= "3.9" and python_version < "3.13"
jinja2==3.1.4 ; python_version >= "3.9" and python_version < "3.13"
joblib==1.4.2 ; python_version >= "3.9" and python_version < "3.13"
jsonschema-specifications==2023.12.1 ; python_version >= "3.9" and python_version < "3.13"
jsonschema==4.22.0 ; python_version >= "3.9" and python_version < "3.13"
jupyter-client==8.6.2 ; python_version >= "3.9" and python_version < "3.13"
jupyter-core==5.7.2 ; python_version >= "3.9" and python_version < "3.13"
jupyterlab-pygments==0.3.0 ; python_version >= "3.9" and python_version < "3.13"
markupsafe==2.1.5 ; python_version >= "3.9" and python_version < "3.13"
matplotlib-inline==0.1.7 ; python_version >= "3.9" and python_version < "3.13"
mistune==3.0.2 ; python_version >= "3.9" and python_version < "3.13"
natsort==8.4.0 ; python_version >= "3.9" and python_version < "3.13"
nbclient==0.10.0 ; python_version >= "3.9" and python_version < "3.13"
nbconvert==7.16.4 ; python_version >= "3.9" and python_version < "3.13"
nbformat==5.10.4 ; python_version >= "3.9" and python_version < "3.13"
nbsphinx==0.9.4 ; python_version >= "3.9" and python_version < "3.13"
numpy==1.26.4 ; python_version >= "3.9" and python_version < "3.13"
packaging==24.0 ; python_version >= "3.9" and python_version < "3.13"
pandas==2.2.2 ; python_version >= "3.9" and python_version < "3.13"
pandocfilters==1.5.1 ; python_version >= "3.9" and python_version < "3.13"
parso==0.8.4 ; python_version >= "3.9" and python_version < "3.13"
pexpect==4.9.0 ; python_version >= "3.9" and python_version < "3.13" and sys_platform != "win32"
platformdirs==4.2.2 ; python_version >= "3.9" and python_version < "3.13"
pluggy==1.5.0 ; python_version >= "3.9" and python_version < "3.13"
prompt-toolkit==3.0.43 ; python_version >= "3.9" and python_version < "3.13"
ptyprocess==0.7.0 ; python_version >= "3.9" and python_version < "3.13" and sys_platform != "win32"
pure-eval==0.2.2 ; python_version >= "3.9" and python_version < "3.13"
pycparser==2.22 ; python_version >= "3.9" and python_version < "3.13" and implementation_name == "pypy"
pygments==2.18.0 ; python_version >= "3.9" and python_version < "3.13"
pytest==8.2.1 ; python_version >= "3.9" and python_version < "3.13"
python-constraint2==2.0.0b5 ; python_version >= "3.9" and python_version < "3.13"
python-dateutil==2.9.0.post0 ; python_version >= "3.9" and python_version < "3.13"
pytz==2024.1 ; python_version >= "3.9" and python_version < "3.13"
pywin32==306 ; sys_platform == "win32" and platform_python_implementation != "PyPy" and python_version >= "3.9" and python_version < "3.13"
pyzmq==26.0.3 ; python_version >= "3.9" and python_version < "3.13"
referencing==0.35.1 ; python_version >= "3.9" and python_version < "3.13"
requests==2.32.2 ; python_version >= "3.9" and python_version < "3.13"
rpds-py==0.18.1 ; python_version >= "3.9" and python_version < "3.13"
scikit-learn==1.5.0 ; python_version >= "3.9" and python_version < "3.13"
scipy==1.13.1 ; python_version >= "3.9" and python_version < "3.13"
six==1.16.0 ; python_version >= "3.9" and python_version < "3.13"
snowballstemmer==2.2.0 ; python_version >= "3.9" and python_version < "3.13"
soupsieve==2.5 ; python_version >= "3.9" and python_version < "3.13"
sphinx-pyproject==0.3.0 ; python_version >= "3.9" and python_version < "3.13"
sphinx-rtd-theme==2.0.0 ; python_version >= "3.9" and python_version < "3.13"
sphinx==7.3.7 ; python_version >= "3.9" and python_version < "3.13"
sphinxcontrib-applehelp==1.0.8 ; python_version >= "3.9" and python_version < "3.13"
sphinxcontrib-devhelp==1.0.6 ; python_version >= "3.9" and python_version < "3.13"
sphinxcontrib-htmlhelp==2.0.5 ; python_version >= "3.9" and python_version < "3.13"
sphinxcontrib-jquery==4.1 ; python_version >= "3.9" and python_version < "3.13"
sphinxcontrib-jsmath==1.0.1 ; python_version >= "3.9" and python_version < "3.13"
sphinxcontrib-qthelp==1.0.7 ; python_version >= "3.9" and python_version < "3.13"
sphinxcontrib-serializinghtml==1.1.10 ; python_version >= "3.9" and python_version < "3.13"
stack-data==0.6.3 ; python_version >= "3.9" and python_version < "3.13"
threadpoolctl==3.5.0 ; python_version >= "3.9" and python_version < "3.13"
tinycss2==1.3.0 ; python_version >= "3.9" and python_version < "3.13"
tomli==2.0.1 ; python_version >= "3.9" and python_version < "3.13"
tornado==6.4 ; python_version >= "3.9" and python_version < "3.13"
traitlets==5.14.3 ; python_version >= "3.9" and python_version < "3.13"
typing-extensions==4.12.0 ; python_version >= "3.9" and python_version < "3.13"
tzdata==2024.1 ; python_version >= "3.9" and python_version < "3.13"
urllib3==2.2.1 ; python_version >= "3.9" and python_version < "3.13"
wcwidth==0.2.13 ; python_version >= "3.9" and python_version < "3.13"
webencodings==0.5.1 ; python_version >= "3.9" and python_version < "3.13"
xmltodict==0.13.0 ; python_version >= "3.9" and python_version < "3.13"
zipp==3.18.2 ; python_version >= "3.9" and python_version < "3.10"
Loading

0 comments on commit 7208227

Please sign in to comment.