Merge pull request #6600 from jtpio/python-311

Bump to Python 3.11 on CI
Jeremy Tuloup 3 years ago committed by GitHub
commit 58823f06c2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -40,7 +40,7 @@ jobs:
- name: Base Setup
uses: jupyterlab/maintainer-tools/.github/actions/base-setup@v1
with:
python_version: "3.10"
python_version: "3.11"
- name: Install the package
run: |
@ -89,11 +89,11 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
python: ['3.7', '3.10']
python: ['3.7', '3.11']
include:
- python: '3.7'
dist: 'notebook*.tar.gz'
- python: '3.10'
- python: '3.11'
dist: 'notebook*.whl'
- os: windows-latest
py_cmd: python

@ -22,7 +22,7 @@ tasks:
micromamba activate
EOT
source /workspace/bin/activate-env.sh
micromamba install -n base -y -c conda-forge python=3.10 nodejs=14 yarn
micromamba install -n base -y -c conda-forge python=3.11 nodejs=14 yarn
python -m pip install -e ".[dev,test]" && jlpm && jlpm run build && jlpm develop
gp sync-done setup
command: |

@ -9,5 +9,5 @@ dependencies:
- matplotlib
- numpy
- nodejs
- python >=3.9,<3.10
- python >=3.10,<3.11
- xeus-python

@ -27,6 +27,7 @@ classifiers = [
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
]
dependencies = [
"jupyter_server>=1.16.0,<2",

@ -3,7 +3,7 @@ import json
import os
import os.path as osp
import shutil
from importlib.resources import path
from importlib.resources import files
from os.path import join as pjoin
import pytest
@ -51,7 +51,7 @@ def make_notebook_app(
)
# Copy the template files.
for html_path in glob.glob(f"{path('notebook', 'templates')}/*.html"):
for html_path in glob.glob(str(files("notebook.templates").joinpath("*.html"))):
shutil.copy(html_path, jp_template_dir)
# Create the index file.
@ -88,7 +88,7 @@ def make_notebook_app(
)
# Copy the schema files.
test_data = str(path("jupyterlab_server", "test_data"))
test_data = str(files("jupyterlab_server.test_data").joinpath(""))
src = pjoin(test_data, "schemas", "@jupyterlab")
dst = pjoin(str(schemas_dir), "@jupyterlab")
if os.path.exists(dst):

Loading…
Cancel
Save