Skip to content

Commit 7208227

Browse files
Merge pull request #256 from KernelTuner/support_python_312
Support Python 3.12 and drop Python 3.8
2 parents 983a972 + 1cff9b4 commit 7208227

15 files changed

+508
-4241
lines changed

.github/workflows/docs-on-release.yml

Lines changed: 18 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -12,32 +12,39 @@ jobs:
1212
environment: dev_environment
1313
runs-on: ubuntu-latest
1414
steps:
15-
- name: Get Python 3.10
16-
uses: actions/setup-python@v4
15+
- name: Get Python 3.12
16+
uses: actions/setup-python@v5
1717
with:
18-
python-version: '3.10'
18+
python-version: "3.12"
1919
- name: Checkout
2020
uses: actions/checkout@v4
2121
with:
2222
fetch-depth: 0 # otherwise, you will failed to push refs to dest repo
2323
- name: Get version set env, exit if beta release
2424
run: |
25-
echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
26-
if [[ "$RELEASE_VERSION" == *"b"* ]]; then
27-
echo "Version is a beta release. Cancel workflow."
28-
exit 0
29-
fi
25+
echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
26+
if [[ "$RELEASE_VERSION" == *"b"* ]]; then
27+
echo "Version is a beta release. Cancel workflow."
28+
exit 0
29+
fi
3030
- name: Install dependencies
3131
run: |
3232
sudo apt-get update;
3333
sudo apt-get install pandoc;
3434
pip install -e .
35-
- name: Build and Commit
36-
uses: sphinx-notes/pages@v2
35+
- name: Build
36+
uses: sphinx-notes/pages@v3
3737
with:
38+
python_version: 3.12
3839
requirements_path: doc/requirements.txt
3940
documentation_path: doc/source
40-
target_path: ${{ env.RELEASE_VERSION }}
41+
publish: false
42+
- name: Commit
43+
uses: peaceiris/actions-gh-pages@v4
44+
with:
45+
github_token: ${{ secrets.GITHUB_TOKEN }}
46+
publish_dir: ${{ steps.deployment.outputs.artifact }}
47+
destination_dir: ${{ env.RELEASE_VERSION }}
4148
- name: Redirect stable to new release
4249
run: |
4350
echo "Redirecting stable to newly released version " $RELEASE_VERSION

.github/workflows/docs.yml

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@ jobs:
1313
# The type of runner that the job will run on
1414
runs-on: ubuntu-latest
1515
steps:
16-
- uses: actions/setup-python@v4
16+
- uses: actions/setup-python@v5
1717
with:
18-
python-version: '3.10'
18+
python-version: "3.12"
1919
- name: Checkout
2020
uses: actions/checkout@v4
2121
with:
@@ -25,12 +25,19 @@ jobs:
2525
sudo apt-get update;
2626
sudo apt-get install pandoc;
2727
pip install -e .
28-
- name: Build and Commit
29-
uses: sphinx-notes/pages@v2
28+
- name: Build
29+
uses: sphinx-notes/pages@v3
3030
with:
31+
python_version: 3.12
3132
requirements_path: doc/requirements.txt
3233
documentation_path: doc/source
33-
target_path: latest
34+
publish: false
35+
- name: Commit
36+
uses: peaceiris/actions-gh-pages@v4
37+
with:
38+
github_token: ${{ secrets.GITHUB_TOKEN }}
39+
publish_dir: ${{ steps.deployment.outputs.artifact }}
40+
destination_dir: ${{ env.RELEASE_VERSION }}
3441
- name: Push changes
3542
uses: ad-m/github-push-action@master
3643
with:

.github/workflows/publish-python-package.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,9 @@ jobs:
2626
- name: Setup Python
2727
uses: actions/setup-python@v4
2828
with:
29-
python-version: "3.11"
29+
python-version: "3.12"
3030
- name: Setup Poetry
31-
uses: Gr1N/setup-poetry@v8
31+
uses: Gr1N/setup-poetry@v9
3232
- name: Build the source distribution and pure-Python wheel
3333
run: |
3434
poetry install

.github/workflows/test-python-package.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
- name: Setup Nox
2929
uses: fjwillemsen/setup-nox2@v3.0.0
3030
- name: Setup Poetry
31-
uses: Gr1N/setup-poetry@v8
31+
uses: Gr1N/setup-poetry@v9
3232
- run: poetry self add poetry-plugin-export
3333
- name: Run tests with Nox
3434
run: |

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
### Project ###
2+
poetry.lock
23
noxenv.txt
34
noxsettings.toml
45

INSTALL.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ Linux users could type the following to download and install Python 3 using Mini
2121
wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh
2222
bash Miniconda3-latest-Linux-x86_64.sh
2323
24-
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.
24+
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.
2525

2626
Installing Python Packages
2727
--------------------------

doc/requirements.txt

Lines changed: 89 additions & 95 deletions
Original file line numberDiff line numberDiff line change
@@ -1,95 +1,89 @@
1-
alabaster==0.7.13 ; python_version >= "3.8" and python_version < "3.12"
2-
appnope==0.1.4 ; python_version >= "3.8" and python_version < "3.12" and sys_platform == "darwin"
3-
asttokens==2.4.1 ; python_version >= "3.8" and python_version < "3.12"
4-
attrs==23.2.0 ; python_version >= "3.8" and python_version < "3.12"
5-
babel==2.14.0 ; python_version >= "3.8" and python_version < "3.12"
6-
backcall==0.2.0 ; python_version >= "3.8" and python_version < "3.12"
7-
beautifulsoup4==4.12.3 ; python_version >= "3.8" and python_version < "3.12"
8-
bleach==6.1.0 ; python_version >= "3.8" and python_version < "3.12"
9-
certifi==2024.2.2 ; python_version >= "3.8" and python_version < "3.12"
10-
cffi==1.16.0 ; python_version >= "3.8" and python_version < "3.12" and implementation_name == "pypy"
11-
charset-normalizer==3.3.2 ; python_version >= "3.8" and python_version < "3.12"
12-
colorama==0.4.6 ; python_version >= "3.8" and python_version < "3.12" and sys_platform == "win32"
13-
decorator==5.1.1 ; python_version >= "3.8" and python_version < "3.12"
14-
defusedxml==0.7.1 ; python_version >= "3.8" and python_version < "3.12"
15-
docutils==0.18.1 ; python_version >= "3.8" and python_version < "3.12"
16-
dom-toml==0.6.1 ; python_version >= "3.8" and python_version < "3.12"
17-
domdf-python-tools==3.8.0.post2 ; python_version >= "3.8" and python_version < "3.12"
18-
exceptiongroup==1.2.0 ; python_version >= "3.8" and python_version < "3.11"
19-
executing==2.0.1 ; python_version >= "3.8" and python_version < "3.12"
20-
fastjsonschema==2.19.1 ; python_version >= "3.8" and python_version < "3.12"
21-
idna==3.7 ; python_version >= "3.8" and python_version < "3.12"
22-
imagesize==1.4.1 ; python_version >= "3.8" and python_version < "3.12"
23-
importlib-metadata==7.0.1 ; python_version >= "3.8" and python_version < "3.10"
24-
importlib-resources==6.1.1 ; python_version >= "3.8" and python_version < "3.9"
25-
iniconfig==2.0.0 ; python_version >= "3.8" and python_version < "3.12"
26-
ipython==8.12.3 ; python_version >= "3.8" and python_version < "3.12"
27-
jedi==0.19.1 ; python_version >= "3.8" and python_version < "3.12"
28-
jinja2==3.1.3 ; python_version >= "3.8" and python_version < "3.12"
29-
joblib==1.3.2 ; python_version >= "3.8" and python_version < "3.12"
30-
jsonschema-specifications==2023.12.1 ; python_version >= "3.8" and python_version < "3.12"
31-
jsonschema==4.21.1 ; python_version >= "3.8" and python_version < "3.12"
32-
jupyter-client==8.6.0 ; python_version >= "3.8" and python_version < "3.12"
33-
jupyter-core==5.7.1 ; python_version >= "3.8" and python_version < "3.12"
34-
jupyterlab-pygments==0.3.0 ; python_version >= "3.8" and python_version < "3.12"
35-
markupsafe==2.1.5 ; python_version >= "3.8" and python_version < "3.12"
36-
matplotlib-inline==0.1.6 ; python_version >= "3.8" and python_version < "3.12"
37-
mistune==3.0.2 ; python_version >= "3.8" and python_version < "3.12"
38-
natsort==8.4.0 ; python_version >= "3.8" and python_version < "3.12"
39-
nbclient==0.9.0 ; python_version >= "3.8" and python_version < "3.12"
40-
nbconvert==7.16.0 ; python_version >= "3.8" and python_version < "3.12"
41-
nbformat==5.9.2 ; python_version >= "3.8" and python_version < "3.12"
42-
nbsphinx==0.9.3 ; python_version >= "3.8" and python_version < "3.12"
43-
numpy==1.24.4 ; python_version >= "3.8" and python_version < "3.12"
44-
packaging==23.2 ; python_version >= "3.8" and python_version < "3.12"
45-
pandas==2.0.3 ; python_version >= "3.8" and python_version < "3.12"
46-
pandocfilters==1.5.1 ; python_version >= "3.8" and python_version < "3.12"
47-
parso==0.8.3 ; python_version >= "3.8" and python_version < "3.12"
48-
pexpect==4.9.0 ; python_version >= "3.8" and python_version < "3.12" and sys_platform != "win32"
49-
pickleshare==0.7.5 ; python_version >= "3.8" and python_version < "3.12"
50-
pkgutil-resolve-name==1.3.10 ; python_version >= "3.8" and python_version < "3.9"
51-
platformdirs==4.2.0 ; python_version >= "3.8" and python_version < "3.12"
52-
pluggy==1.4.0 ; python_version >= "3.8" and python_version < "3.12"
53-
prompt-toolkit==3.0.43 ; python_version >= "3.8" and python_version < "3.12"
54-
ptyprocess==0.7.0 ; python_version >= "3.8" and python_version < "3.12" and sys_platform != "win32"
55-
pure-eval==0.2.2 ; python_version >= "3.8" and python_version < "3.12"
56-
pycparser==2.21 ; python_version >= "3.8" and python_version < "3.12" and implementation_name == "pypy"
57-
pygments==2.17.2 ; python_version >= "3.8" and python_version < "3.12"
58-
pytest==7.4.4 ; python_version >= "3.8" and python_version < "3.12"
59-
python-constraint2==2.0.0b5 ; python_version >= "3.8" and python_version < "3.12"
60-
python-dateutil==2.8.2 ; python_version >= "3.8" and python_version < "3.12"
61-
pytz==2024.1 ; python_version >= "3.8" and python_version < "3.12"
62-
pywin32==306 ; sys_platform == "win32" and platform_python_implementation != "PyPy" and python_version >= "3.8" and python_version < "3.12"
63-
pyzmq==25.1.2 ; python_version >= "3.8" and python_version < "3.12"
64-
referencing==0.33.0 ; python_version >= "3.8" and python_version < "3.12"
65-
requests==2.31.0 ; python_version >= "3.8" and python_version < "3.12"
66-
rpds-py==0.17.1 ; python_version >= "3.8" and python_version < "3.12"
67-
scikit-learn==1.3.2 ; python_version >= "3.8" and python_version < "3.12"
68-
scipy==1.10.1 ; python_version >= "3.8" and python_version < "3.12"
69-
six==1.16.0 ; python_version >= "3.8" and python_version < "3.12"
70-
snowballstemmer==2.2.0 ; python_version >= "3.8" and python_version < "3.12"
71-
soupsieve==2.5 ; python_version >= "3.8" and python_version < "3.12"
72-
sphinx-pyproject==0.3.0 ; python_version >= "3.8" and python_version < "3.12"
73-
sphinx-rtd-theme==1.3.0 ; python_version >= "3.8" and python_version < "3.12"
74-
sphinx==7.1.2 ; python_version >= "3.8" and python_version < "3.12"
75-
sphinxcontrib-applehelp==1.0.4 ; python_version >= "3.8" and python_version < "3.12"
76-
sphinxcontrib-devhelp==1.0.2 ; python_version >= "3.8" and python_version < "3.12"
77-
sphinxcontrib-htmlhelp==2.0.1 ; python_version >= "3.8" and python_version < "3.12"
78-
sphinxcontrib-jquery==4.1 ; python_version >= "3.8" and python_version < "3.12"
79-
sphinxcontrib-jsmath==1.0.1 ; python_version >= "3.8" and python_version < "3.12"
80-
sphinxcontrib-qthelp==1.0.3 ; python_version >= "3.8" and python_version < "3.12"
81-
sphinxcontrib-serializinghtml==1.1.5 ; python_version >= "3.8" and python_version < "3.12"
82-
stack-data==0.6.3 ; python_version >= "3.8" and python_version < "3.12"
83-
threadpoolctl==3.2.0 ; python_version >= "3.8" and python_version < "3.12"
84-
tinycss2==1.2.1 ; python_version >= "3.8" and python_version < "3.12"
85-
toml==0.10.2 ; python_version >= "3.8" and python_version < "3.12"
86-
tomli==2.0.1 ; python_version >= "3.8" and python_version < "3.11"
87-
tornado==6.4 ; python_version >= "3.8" and python_version < "3.12"
88-
traitlets==5.14.1 ; python_version >= "3.8" and python_version < "3.12"
89-
typing-extensions==4.9.0 ; python_version >= "3.8" and python_version < "3.12"
90-
tzdata==2023.4 ; python_version >= "3.8" and python_version < "3.12"
91-
urllib3==2.2.0 ; python_version >= "3.8" and python_version < "3.12"
92-
wcwidth==0.2.13 ; python_version >= "3.8" and python_version < "3.12"
93-
webencodings==0.5.1 ; python_version >= "3.8" and python_version < "3.12"
94-
xmltodict==0.13.0 ; python_version >= "3.8" and python_version < "3.12"
95-
zipp==3.17.0 ; python_version >= "3.8" and python_version < "3.10"
1+
alabaster==0.7.16 ; python_version >= "3.9" and python_version < "3.13"
2+
asttokens==2.4.1 ; python_version >= "3.9" and python_version < "3.13"
3+
attrs==23.2.0 ; python_version >= "3.9" and python_version < "3.13"
4+
babel==2.15.0 ; python_version >= "3.9" and python_version < "3.13"
5+
beautifulsoup4==4.12.3 ; python_version >= "3.9" and python_version < "3.13"
6+
bleach==6.1.0 ; python_version >= "3.9" and python_version < "3.13"
7+
certifi==2024.2.2 ; python_version >= "3.9" and python_version < "3.13"
8+
cffi==1.16.0 ; python_version >= "3.9" and python_version < "3.13" and implementation_name == "pypy"
9+
charset-normalizer==3.3.2 ; python_version >= "3.9" and python_version < "3.13"
10+
colorama==0.4.6 ; python_version >= "3.9" and python_version < "3.13" and sys_platform == "win32"
11+
decorator==5.1.1 ; python_version >= "3.9" and python_version < "3.13"
12+
defusedxml==0.7.1 ; python_version >= "3.9" and python_version < "3.13"
13+
docutils==0.20.1 ; python_version >= "3.9" and python_version < "3.13"
14+
dom-toml==2.0.0 ; python_version >= "3.9" and python_version < "3.13"
15+
domdf-python-tools==3.8.1 ; python_version >= "3.9" and python_version < "3.13"
16+
exceptiongroup==1.2.1 ; python_version >= "3.9" and python_version < "3.11"
17+
executing==2.0.1 ; python_version >= "3.9" and python_version < "3.13"
18+
fastjsonschema==2.19.1 ; python_version >= "3.9" and python_version < "3.13"
19+
idna==3.7 ; python_version >= "3.9" and python_version < "3.13"
20+
imagesize==1.4.1 ; python_version >= "3.9" and python_version < "3.13"
21+
importlib-metadata==7.1.0 ; python_version >= "3.9" and python_version < "3.10"
22+
iniconfig==2.0.0 ; python_version >= "3.9" and python_version < "3.13"
23+
ipython==8.18.1 ; python_version >= "3.9" and python_version < "3.13"
24+
jedi==0.19.1 ; python_version >= "3.9" and python_version < "3.13"
25+
jinja2==3.1.4 ; python_version >= "3.9" and python_version < "3.13"
26+
joblib==1.4.2 ; python_version >= "3.9" and python_version < "3.13"
27+
jsonschema-specifications==2023.12.1 ; python_version >= "3.9" and python_version < "3.13"
28+
jsonschema==4.22.0 ; python_version >= "3.9" and python_version < "3.13"
29+
jupyter-client==8.6.2 ; python_version >= "3.9" and python_version < "3.13"
30+
jupyter-core==5.7.2 ; python_version >= "3.9" and python_version < "3.13"
31+
jupyterlab-pygments==0.3.0 ; python_version >= "3.9" and python_version < "3.13"
32+
markupsafe==2.1.5 ; python_version >= "3.9" and python_version < "3.13"
33+
matplotlib-inline==0.1.7 ; python_version >= "3.9" and python_version < "3.13"
34+
mistune==3.0.2 ; python_version >= "3.9" and python_version < "3.13"
35+
natsort==8.4.0 ; python_version >= "3.9" and python_version < "3.13"
36+
nbclient==0.10.0 ; python_version >= "3.9" and python_version < "3.13"
37+
nbconvert==7.16.4 ; python_version >= "3.9" and python_version < "3.13"
38+
nbformat==5.10.4 ; python_version >= "3.9" and python_version < "3.13"
39+
nbsphinx==0.9.4 ; python_version >= "3.9" and python_version < "3.13"
40+
numpy==1.26.4 ; python_version >= "3.9" and python_version < "3.13"
41+
packaging==24.0 ; python_version >= "3.9" and python_version < "3.13"
42+
pandas==2.2.2 ; python_version >= "3.9" and python_version < "3.13"
43+
pandocfilters==1.5.1 ; python_version >= "3.9" and python_version < "3.13"
44+
parso==0.8.4 ; python_version >= "3.9" and python_version < "3.13"
45+
pexpect==4.9.0 ; python_version >= "3.9" and python_version < "3.13" and sys_platform != "win32"
46+
platformdirs==4.2.2 ; python_version >= "3.9" and python_version < "3.13"
47+
pluggy==1.5.0 ; python_version >= "3.9" and python_version < "3.13"
48+
prompt-toolkit==3.0.43 ; python_version >= "3.9" and python_version < "3.13"
49+
ptyprocess==0.7.0 ; python_version >= "3.9" and python_version < "3.13" and sys_platform != "win32"
50+
pure-eval==0.2.2 ; python_version >= "3.9" and python_version < "3.13"
51+
pycparser==2.22 ; python_version >= "3.9" and python_version < "3.13" and implementation_name == "pypy"
52+
pygments==2.18.0 ; python_version >= "3.9" and python_version < "3.13"
53+
pytest==8.2.1 ; python_version >= "3.9" and python_version < "3.13"
54+
python-constraint2==2.0.0b5 ; python_version >= "3.9" and python_version < "3.13"
55+
python-dateutil==2.9.0.post0 ; python_version >= "3.9" and python_version < "3.13"
56+
pytz==2024.1 ; python_version >= "3.9" and python_version < "3.13"
57+
pywin32==306 ; sys_platform == "win32" and platform_python_implementation != "PyPy" and python_version >= "3.9" and python_version < "3.13"
58+
pyzmq==26.0.3 ; python_version >= "3.9" and python_version < "3.13"
59+
referencing==0.35.1 ; python_version >= "3.9" and python_version < "3.13"
60+
requests==2.32.2 ; python_version >= "3.9" and python_version < "3.13"
61+
rpds-py==0.18.1 ; python_version >= "3.9" and python_version < "3.13"
62+
scikit-learn==1.5.0 ; python_version >= "3.9" and python_version < "3.13"
63+
scipy==1.13.1 ; python_version >= "3.9" and python_version < "3.13"
64+
six==1.16.0 ; python_version >= "3.9" and python_version < "3.13"
65+
snowballstemmer==2.2.0 ; python_version >= "3.9" and python_version < "3.13"
66+
soupsieve==2.5 ; python_version >= "3.9" and python_version < "3.13"
67+
sphinx-pyproject==0.3.0 ; python_version >= "3.9" and python_version < "3.13"
68+
sphinx-rtd-theme==2.0.0 ; python_version >= "3.9" and python_version < "3.13"
69+
sphinx==7.3.7 ; python_version >= "3.9" and python_version < "3.13"
70+
sphinxcontrib-applehelp==1.0.8 ; python_version >= "3.9" and python_version < "3.13"
71+
sphinxcontrib-devhelp==1.0.6 ; python_version >= "3.9" and python_version < "3.13"
72+
sphinxcontrib-htmlhelp==2.0.5 ; python_version >= "3.9" and python_version < "3.13"
73+
sphinxcontrib-jquery==4.1 ; python_version >= "3.9" and python_version < "3.13"
74+
sphinxcontrib-jsmath==1.0.1 ; python_version >= "3.9" and python_version < "3.13"
75+
sphinxcontrib-qthelp==1.0.7 ; python_version >= "3.9" and python_version < "3.13"
76+
sphinxcontrib-serializinghtml==1.1.10 ; python_version >= "3.9" and python_version < "3.13"
77+
stack-data==0.6.3 ; python_version >= "3.9" and python_version < "3.13"
78+
threadpoolctl==3.5.0 ; python_version >= "3.9" and python_version < "3.13"
79+
tinycss2==1.3.0 ; python_version >= "3.9" and python_version < "3.13"
80+
tomli==2.0.1 ; python_version >= "3.9" and python_version < "3.13"
81+
tornado==6.4 ; python_version >= "3.9" and python_version < "3.13"
82+
traitlets==5.14.3 ; python_version >= "3.9" and python_version < "3.13"
83+
typing-extensions==4.12.0 ; python_version >= "3.9" and python_version < "3.13"
84+
tzdata==2024.1 ; python_version >= "3.9" and python_version < "3.13"
85+
urllib3==2.2.1 ; python_version >= "3.9" and python_version < "3.13"
86+
wcwidth==0.2.13 ; python_version >= "3.9" and python_version < "3.13"
87+
webencodings==0.5.1 ; python_version >= "3.9" and python_version < "3.13"
88+
xmltodict==0.13.0 ; python_version >= "3.9" and python_version < "3.13"
89+
zipp==3.18.2 ; python_version >= "3.9" and python_version < "3.10"

0 commit comments

Comments
 (0)