Skip to content

Commit f1664e6

Browse files
authored
Fix CI + remove Python 3.8 (#3989)
* Fixing CI * Skip if exists * Remove Python 3.8 classifiers * Update ui-tests * Update snapshots
1 parent b7583cb commit f1664e6

32 files changed

+1693
-1852
lines changed

.github/workflows/packaging.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ jobs:
8383
fail-fast: false
8484
matrix:
8585
os: [ubuntu, windows]
86-
python: ['3.8', '3.13']
86+
python: ['3.9', '3.13']
8787
dist: ['ipywidgets*.tar.gz']
8888
include:
8989
- python: '3.13'

.github/workflows/tests.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ jobs:
7777
strategy:
7878
max-parallel: 4
7979
matrix:
80-
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12', '3.13']
80+
python-version: ['3.9', '3.10', '3.11', '3.12', '3.13']
8181

8282
steps:
8383
- uses: actions/checkout@v4
@@ -144,7 +144,7 @@ jobs:
144144
- name: Install dependencies
145145
run: |
146146
python -m pip install --upgrade pip
147-
python -m pip install -U jupyterlab==4.0.0 jupyter-packaging~=0.10
147+
python -m pip install -U jupyterlab jupyter-packaging~=0.10
148148
149149
- name: Build and Install ipywidgets
150150
run: |

.yarnrc.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
nodeLinker: node-modules
2+
enableImmutableInstalls: false
23

34
# prettier-ignore
45
packageExtensions:

python/ipywidgets/setup.cfg

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,11 @@ classifiers =
1818
License :: OSI Approved :: BSD License
1919
Programming Language :: Python
2020
Programming Language :: Python :: 3
21-
Programming Language :: Python :: 3.7
22-
Programming Language :: Python :: 3.8
2321
Programming Language :: Python :: 3.9
2422
Programming Language :: Python :: 3.10
2523
Programming Language :: Python :: 3.11
24+
Programming Language :: Python :: 3.12
25+
Programming Language :: Python :: 3.13
2626
Programming Language :: Python :: 3 :: Only
2727
Framework :: Jupyter
2828

Lines changed: 60 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,65 @@
1-
[build-system]
2-
requires = ["jupyter_packaging~=0.10,<2", "jupyterlab~=4.0"]
3-
build-backend = "jupyter_packaging.build_api"
4-
5-
[tool.jupyter-packaging.options]
6-
skip-if-exists = ["labextension/package.json"]
7-
ensured-targets = ["labextension/package.json"]
1+
[project]
2+
name = "jupyterlab_widgets"
3+
description = "Jupyter interactive widgets for JupyterLab"
4+
readme = { file = "README.md", content-type = "text/markdown" }
5+
requires-python = ">=3.7"
6+
license = { file = "LICENSE" }
7+
authors = [
8+
{ name = "Jupyter Development Team", email = "jupyter@googlegroups.com" }
9+
]
10+
keywords = [
11+
"Interactive", "Interpreter", "Shell", "Web", "notebook",
12+
"widgets", "Jupyter", "JupyterLab", "JupyterLab3"
13+
]
14+
classifiers = [
15+
"Intended Audience :: Developers",
16+
"Intended Audience :: System Administrators",
17+
"Intended Audience :: Science/Research",
18+
"License :: OSI Approved :: BSD License",
19+
"Programming Language :: Python",
20+
"Programming Language :: Python :: 3",
21+
"Programming Language :: Python :: 3.9",
22+
"Programming Language :: Python :: 3.10",
23+
"Programming Language :: Python :: 3.11",
24+
"Programming Language :: Python :: 3.12",
25+
"Programming Language :: Python :: 3.13",
26+
"Programming Language :: Python :: 3 :: Only",
27+
"Framework :: Jupyter",
28+
"Framework :: Jupyter :: JupyterLab",
29+
"Framework :: Jupyter :: JupyterLab :: 3",
30+
"Framework :: Jupyter :: JupyterLab :: Extensions",
31+
"Framework :: Jupyter :: JupyterLab :: Extensions :: Prebuilt"
32+
]
33+
urls = { Homepage = "https://github.com/jupyter-widgets/ipywidgets" }
34+
dynamic = ["version"]
835

9-
[tool.jupyter-packaging.builder]
10-
factory = "jupyter_packaging.npm_builder"
36+
[tool.hatch.version]
37+
path = "jupyterlab_widgets/_version.py"
1138

12-
[tool.jupyter-packaging.build-args]
13-
build_cmd = "build:prod"
14-
npm = ["jlpm"]
39+
[build-system]
40+
requires = ["hatchling>=1.5.0", "jupyterlab~=4.0"]
41+
build-backend = "hatchling.build"
1542

1643
[tool.check-manifest]
1744
ignore = ["labextension/**", "yarn.lock", ".*", "package-lock.json"]
45+
46+
[tool.hatch.build.hooks.jupyter-builder]
47+
ensured-targets = [
48+
"labextension/package.json",
49+
]
50+
dependencies = [
51+
"hatch-jupyter-builder>=0.8.1",
52+
]
53+
build-function = "hatch_jupyter_builder.npm_builder"
54+
skip-if-exists = ["labextension/static/style.js"]
55+
56+
[tool.hatch.build.targets.wheel.shared-data]
57+
"install.json" = "share/jupyter/labextensions/@jupyter-widgets/jupyterlab-manager/install.json"
58+
"labextension" = "share/jupyter/labextensions/@jupyter-widgets/jupyterlab-manager"
59+
60+
[tool.hatch.build.hooks.jupyter-builder.build-kwargs]
61+
path = "."
62+
build_cmd = "build:prod"
63+
npm = [
64+
"jlpm",
65+
]

python/jupyterlab_widgets/setup.cfg

Lines changed: 0 additions & 37 deletions
This file was deleted.

python/jupyterlab_widgets/setup.py

Lines changed: 0 additions & 37 deletions
This file was deleted.

python/widgetsnbextension/setup.cfg

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,11 @@ classifiers =
1818
License :: OSI Approved :: BSD License
1919
Programming Language :: Python
2020
Programming Language :: Python :: 3
21-
Programming Language :: Python :: 3.7
22-
Programming Language :: Python :: 3.8
2321
Programming Language :: Python :: 3.9
2422
Programming Language :: Python :: 3.10
2523
Programming Language :: Python :: 3.11
24+
Programming Language :: Python :: 3.12
25+
Programming Language :: Python :: 3.13
2626
Programming Language :: Python :: 3 :: Only
2727
Framework :: Jupyter
2828

ui-tests/.yarn/install-state.gz

-386 KB
Binary file not shown.

ui-tests/.yarnrc

Lines changed: 0 additions & 4 deletions
This file was deleted.

0 commit comments

Comments
 (0)