Skip to content

Commit 58823f0

Browse files
authored
Merge pull request #6600 from jtpio/python-311
Bump to Python 3.11 on CI
2 parents 003eb9c + 0ce4fe5 commit 58823f0

File tree

5 files changed

+9
-8
lines changed

5 files changed

+9
-8
lines changed

.github/workflows/build.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ jobs:
4040
- name: Base Setup
4141
uses: jupyterlab/maintainer-tools/.github/actions/base-setup@v1
4242
with:
43-
python_version: "3.10"
43+
python_version: "3.11"
4444

4545
- name: Install the package
4646
run: |
@@ -89,11 +89,11 @@ jobs:
8989
fail-fast: false
9090
matrix:
9191
os: [ubuntu-latest, macos-latest, windows-latest]
92-
python: ['3.7', '3.10']
92+
python: ['3.7', '3.11']
9393
include:
9494
- python: '3.7'
9595
dist: 'notebook*.tar.gz'
96-
- python: '3.10'
96+
- python: '3.11'
9797
dist: 'notebook*.whl'
9898
- os: windows-latest
9999
py_cmd: python

.gitpod.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ tasks:
2222
micromamba activate
2323
EOT
2424
source /workspace/bin/activate-env.sh
25-
micromamba install -n base -y -c conda-forge python=3.10 nodejs=14 yarn
25+
micromamba install -n base -y -c conda-forge python=3.11 nodejs=14 yarn
2626
python -m pip install -e ".[dev,test]" && jlpm && jlpm run build && jlpm develop
2727
gp sync-done setup
2828
command: |

binder/environment.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,5 @@ dependencies:
99
- matplotlib
1010
- numpy
1111
- nodejs
12-
- python >=3.9,<3.10
12+
- python >=3.10,<3.11
1313
- xeus-python

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ classifiers = [
2727
"Programming Language :: Python :: 3.8",
2828
"Programming Language :: Python :: 3.9",
2929
"Programming Language :: Python :: 3.10",
30+
"Programming Language :: Python :: 3.11",
3031
]
3132
dependencies = [
3233
"jupyter_server>=1.16.0,<2",

tests/conftest.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import os
44
import os.path as osp
55
import shutil
6-
from importlib.resources import path
6+
from importlib.resources import files
77
from os.path import join as pjoin
88

99
import pytest
@@ -51,7 +51,7 @@ def _make_notebook_app(**kwargs):
5151
)
5252

5353
# Copy the template files.
54-
for html_path in glob.glob(f"{path('notebook', 'templates')}/*.html"):
54+
for html_path in glob.glob(str(files("notebook.templates").joinpath("*.html"))):
5555
shutil.copy(html_path, jp_template_dir)
5656

5757
# Create the index file.
@@ -88,7 +88,7 @@ def _make_notebook_app(**kwargs):
8888
)
8989

9090
# Copy the schema files.
91-
test_data = str(path("jupyterlab_server", "test_data"))
91+
test_data = str(files("jupyterlab_server.test_data").joinpath(""))
9292
src = pjoin(test_data, "schemas", "@jupyterlab")
9393
dst = pjoin(str(schemas_dir), "@jupyterlab")
9494
if os.path.exists(dst):

0 commit comments

Comments
 (0)