Skip to content

Commit 8e4ff64

Browse files
Update switch component and maintenance (#130)
* build: Bump deps * build: Bump supported Py version to 3.9 and extend till 3.13 * Test on Py 3.9 and 3.13 in CI --------- Signed-off-by: Mahendra Paipuri <[email protected]>
1 parent 7c1d4c7 commit 8e4ff64

File tree

12 files changed

+3489
-2302
lines changed

12 files changed

+3489
-2302
lines changed

.github/workflows/packaging.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -59,24 +59,24 @@ jobs:
5959
fail-fast: false
6060
matrix:
6161
os: [ubuntu, macos, windows]
62-
python: ['3.8', '3.11']
62+
python: ['3.9', '3.13']
6363
include:
64-
- python: '3.8'
64+
- python: '3.9'
6565
extension: logout
6666
dist: 'jupyterlab_logout*.tar.gz'
67-
- python: '3.11'
67+
- python: '3.13'
6868
extension: logout
6969
dist: 'jupyterlab_logout*.whl'
70-
- python: '3.8'
70+
- python: '3.9'
7171
extension: theme-toggler
7272
dist: 'jupyterlab_theme_toggler*.tar.gz'
73-
- python: '3.11'
73+
- python: '3.13'
7474
extension: theme-toggler
7575
dist: 'jupyterlab_theme_toggler*.whl'
76-
- python: '3.8'
76+
- python: '3.9'
7777
extension: topbar-text
7878
dist: 'jupyterlab_topbar_text*.tar.gz'
79-
- python: '3.11'
79+
- python: '3.13'
8080
extension: topbar-text
8181
dist: 'jupyterlab_topbar_text*.whl'
8282
- os: windows
@@ -85,11 +85,11 @@ jobs:
8585
py_cmd: python3
8686
- os: ubuntu
8787
py_cmd: python
88-
# actions/setup-python do not support MacOS runners based on ARM for Python < 3.11
88+
# actions/setup-python do not support MacOS runners based on ARM for Python < 3.13
8989
# https://github.com/actions/setup-python/issues/906
9090
exclude:
9191
- os: macos
92-
python: 3.8
92+
python: 3.9
9393

9494
steps:
9595
- name: Install Python

.prettierignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@ node_modules
44
**/package.json
55
**/venv
66
**/.venv
7+
**/labextension

packages/logout-extension/pyproject.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,11 @@ classifiers = [
1616
"License :: OSI Approved :: BSD License",
1717
"Programming Language :: Python",
1818
"Programming Language :: Python :: 3",
19-
"Programming Language :: Python :: 3.8",
2019
"Programming Language :: Python :: 3.9",
2120
"Programming Language :: Python :: 3.10",
2221
"Programming Language :: Python :: 3.11",
22+
"Programming Language :: Python :: 3.12",
23+
"Programming Language :: Python :: 3.13",
2324
]
2425
dependencies = [
2526
"jupyterlab>=4.0.0,<5",

packages/logout-extension/tsconfig.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,14 @@
66
"esModuleInterop": true,
77
"incremental": true,
88
"jsx": "react",
9+
"lib": [
10+
"DOM",
11+
"DOM.Iterable",
12+
"ES2018",
13+
"ES2020.BigInt",
14+
"ES2020.Intl",
15+
"ES2020.String"
16+
],
917
"module": "esnext",
1018
"moduleResolution": "node",
1119
"noEmitOnError": true,

packages/theme-toggler-extension/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555
"watch:src": "tsc -w --sourceMap"
5656
},
5757
"dependencies": {
58-
"@jupyter/react-components": "^0.15.3",
58+
"@jupyter/react-components": "^0.16.0",
5959
"@jupyterlab/application": "^4.0.0",
6060
"@jupyterlab/apputils": "^4.0.0",
6161
"react": "^18.2.0"

packages/theme-toggler-extension/pyproject.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,11 @@ classifiers = [
1616
"License :: OSI Approved :: BSD License",
1717
"Programming Language :: Python",
1818
"Programming Language :: Python :: 3",
19-
"Programming Language :: Python :: 3.8",
2019
"Programming Language :: Python :: 3.9",
2120
"Programming Language :: Python :: 3.10",
2221
"Programming Language :: Python :: 3.11",
22+
"Programming Language :: Python :: 3.12",
23+
"Programming Language :: Python :: 3.13",
2324
]
2425
dependencies = [
2526
"jupyterlab>=4.0.0,<5",

packages/theme-toggler-extension/src/index.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Switch } from '@jupyter/react-components';
1+
import { Switch, SwitchProps } from '@jupyter/react-components';
22

33
import {
44
JupyterFrontEnd,
@@ -17,8 +17,7 @@ import '../style/index.css';
1717

1818
const themeTogglerPluginId = 'jupyterlab-theme-toggler:plugin';
1919

20-
interface IThemeSwitchProps
21-
extends React.InputHTMLAttributes<HTMLInputElement> {
20+
interface IThemeSwitchProps extends SwitchProps {
2221
themeManager: IThemeManager;
2322
}
2423

packages/theme-toggler-extension/tsconfig.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,14 @@
66
"esModuleInterop": true,
77
"incremental": true,
88
"jsx": "react",
9+
"lib": [
10+
"DOM",
11+
"DOM.Iterable",
12+
"ES2018",
13+
"ES2020.BigInt",
14+
"ES2020.Intl",
15+
"ES2020.String"
16+
],
917
"module": "esnext",
1018
"moduleResolution": "node",
1119
"noEmitOnError": true,

packages/topbar-text-extension/pyproject.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,11 @@ classifiers = [
1616
"License :: OSI Approved :: BSD License",
1717
"Programming Language :: Python",
1818
"Programming Language :: Python :: 3",
19-
"Programming Language :: Python :: 3.8",
2019
"Programming Language :: Python :: 3.9",
2120
"Programming Language :: Python :: 3.10",
2221
"Programming Language :: Python :: 3.11",
22+
"Programming Language :: Python :: 3.12",
23+
"Programming Language :: Python :: 3.13",
2324
]
2425
dependencies = [
2526
"jupyterlab>=4.0.0,<5",

packages/topbar-text-extension/tsconfig.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,14 @@
66
"esModuleInterop": true,
77
"incremental": true,
88
"jsx": "react",
9+
"lib": [
10+
"DOM",
11+
"DOM.Iterable",
12+
"ES2018",
13+
"ES2020.BigInt",
14+
"ES2020.Intl",
15+
"ES2020.String"
16+
],
917
"module": "esnext",
1018
"moduleResolution": "node",
1119
"noEmitOnError": true,

0 commit comments

Comments
 (0)