diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3c209c6da..0b7e206c1 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -7,8 +7,7 @@ on: jobs: test: - # ubuntu-24.04, not -latest: Playwright 1.58 cannot install Chromium on 26.04. - runs-on: ubuntu-24.04 + runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index bc4a72127..861d01c3f 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -29,8 +29,7 @@ jobs: # broken cross-references and bad docstrings are caught before merge. build: name: Build docs - # ubuntu-24.04, not -latest: Playwright 1.58 cannot install Chromium on 26.04. - runs-on: ubuntu-24.04 + runs-on: ubuntu-latest steps: - name: Checkout repository @@ -91,8 +90,7 @@ jobs: deploy: name: Deploy docs needs: build - # ubuntu-24.04, not -latest: Playwright 1.58 cannot install Chromium on 26.04. - runs-on: ubuntu-24.04 + runs-on: ubuntu-latest # Skip deployment for pull requests. if: github.event_name != 'pull_request' diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index be9553ee5..32cbf627b 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -17,8 +17,7 @@ jobs: strategy: fail-fast: false matrix: - # ubuntu-24.04, not -latest: Playwright 1.58 cannot install Chromium on 26.04. - os: [ubuntu-24.04, macos-latest, windows-latest] + os: [ubuntu-latest, macos-latest, windows-latest] python-version: ["3.10", "3.11", "3.12", "3.13"] exclude: - os: macos-latest @@ -56,8 +55,7 @@ jobs: minimum-deps: name: Minimum deps (Python 3.10 / ubuntu) - # ubuntu-24.04, not -latest: Playwright 1.58 cannot install Chromium on 26.04. - runs-on: ubuntu-24.04 + runs-on: ubuntu-latest steps: - name: Checkout repository diff --git a/anyplotlib/tests/baselines/inset_1d.png b/anyplotlib/tests/baselines/inset_1d.png index 56899b363..251475edc 100644 Binary files a/anyplotlib/tests/baselines/inset_1d.png and b/anyplotlib/tests/baselines/inset_1d.png differ diff --git a/anyplotlib/tests/baselines/inset_maximized.png b/anyplotlib/tests/baselines/inset_maximized.png index 74b117aa7..ad866cd05 100644 Binary files a/anyplotlib/tests/baselines/inset_maximized.png and b/anyplotlib/tests/baselines/inset_maximized.png differ diff --git a/anyplotlib/tests/baselines/inset_minimized.png b/anyplotlib/tests/baselines/inset_minimized.png index e1d24bb61..a8245a76e 100644 Binary files a/anyplotlib/tests/baselines/inset_minimized.png and b/anyplotlib/tests/baselines/inset_minimized.png differ diff --git a/anyplotlib/tests/baselines/inset_normal_2d.png b/anyplotlib/tests/baselines/inset_normal_2d.png index b7e0c8232..8ffb58faf 100644 Binary files a/anyplotlib/tests/baselines/inset_normal_2d.png and b/anyplotlib/tests/baselines/inset_normal_2d.png differ diff --git a/anyplotlib/tests/baselines/inset_stacked.png b/anyplotlib/tests/baselines/inset_stacked.png index 717d33e1d..51937c951 100644 Binary files a/anyplotlib/tests/baselines/inset_stacked.png and b/anyplotlib/tests/baselines/inset_stacked.png differ diff --git a/anyplotlib/tests/baselines/inset_stacked_one_minimized.png b/anyplotlib/tests/baselines/inset_stacked_one_minimized.png index 7d9e9806d..930427767 100644 Binary files a/anyplotlib/tests/baselines/inset_stacked_one_minimized.png and b/anyplotlib/tests/baselines/inset_stacked_one_minimized.png differ diff --git a/anyplotlib/tests/test_layouts/test_inset.py b/anyplotlib/tests/test_layouts/test_inset.py index f2a148498..299e66af1 100644 --- a/anyplotlib/tests/test_layouts/test_inset.py +++ b/anyplotlib/tests/test_layouts/test_inset.py @@ -425,7 +425,7 @@ def test_repr(): # Visual regression tests # ───────────────────────────────────────────────────────────────────────────── -BASELINES = pathlib.Path(__file__).parent / "baselines" +BASELINES = pathlib.Path(__file__).parent.parent / "baselines" def _check(name: str, arr: np.ndarray, update: bool) -> None: diff --git a/pyproject.toml b/pyproject.toml index 85b811104..9f34840c7 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -49,7 +49,7 @@ docs = [ "sphinx-gallery>=0.18", "pillow>=10.0", "matplotlib>=3.7", - "playwright>=1.58.0", + "playwright>=1.65.3", "plotly>=5.0", "bokeh>=3.0", "scipy>=1.15.3", @@ -66,7 +66,7 @@ jupyter = [ [dependency-groups] dev = [ "docutils>=0.19", - "playwright>=1.58.0", + "playwright>=1.65.3", "pytest>=9.0.2", "pytest-cov>=5.0.0", "scipy>=1.15.3", diff --git a/upcoming_changes/+playwright-1.65.maintenance.rst b/upcoming_changes/+playwright-1.65.maintenance.rst new file mode 100644 index 000000000..129b9a1f1 --- /dev/null +++ b/upcoming_changes/+playwright-1.65.maintenance.rst @@ -0,0 +1 @@ +Upgraded the test and docs builds to Playwright 1.65, which installs Chromium on Ubuntu 26.04, and restored the inset screenshot tests, which had silently skipped since they moved. diff --git a/uv.lock b/uv.lock index 2cc12559b..3c8319ec3 100644 --- a/uv.lock +++ b/uv.lock @@ -45,7 +45,7 @@ wheels = [ [[package]] name = "anyplotlib" -version = "0.8.0" +version = "0.11.0" source = { editable = "." } dependencies = [ { name = "anywidget" }, @@ -100,7 +100,7 @@ requires-dist = [ { name = "matplotlib", marker = "extra == 'docs'", specifier = ">=3.7" }, { name = "numpy", specifier = ">=2.0.0" }, { name = "pillow", marker = "extra == 'docs'", specifier = ">=10.0" }, - { name = "playwright", marker = "extra == 'docs'", specifier = ">=1.58.0" }, + { name = "playwright", marker = "extra == 'docs'", specifier = ">=1.65.3" }, { name = "plotly", marker = "extra == 'docs'", specifier = ">=5.0" }, { name = "pydata-sphinx-theme", marker = "extra == 'docs'", specifier = ">=0.16" }, { name = "scipy", marker = "extra == 'docs'", specifier = ">=1.15.3" }, @@ -114,7 +114,7 @@ provides-extras = ["docs", "jupyter"] [package.metadata.requires-dev] dev = [ { name = "docutils", specifier = ">=0.19" }, - { name = "playwright", specifier = ">=1.58.0" }, + { name = "playwright", specifier = ">=1.65.3" }, { name = "pytest", specifier = ">=9.0.2" }, { name = "pytest-cov", specifier = ">=5.0.0" }, { name = "scipy", specifier = ">=1.15.3" }, @@ -2188,21 +2188,21 @@ wheels = [ [[package]] name = "playwright" -version = "1.58.0" +version = "1.65.3" source = { registry = "https://pypi.org/simple" } dependencies = [ { name = "greenlet" }, - { name = "pyee" }, ] +sdist = { url = "https://files.pythonhosted.org/packages/57/e5/a02f83086bdc1d3737f6600d32002677dd5ac9bccd7780c7d4acc2680233/playwright-1.65.3.tar.gz", hash = "sha256:fbe0fd38372d3ca749f5d0b9fabfc4d7219312e22221d2f3c89bd0ba4ad144bf", size = 10226043, upload-time = "2026-12-01T22:25:05.68Z" } wheels = [ - { url = "https://files.pythonhosted.org/packages/f8/c9/9c6061d5703267f1baae6a4647bfd1862e386fbfdb97d889f6f6ae9e3f64/playwright-1.58.0-py3-none-macosx_10_13_x86_64.whl", hash = "sha256:96e3204aac292ee639edbfdef6298b4be2ea0a55a16b7068df91adac077cc606", size = 42251098, upload-time = "2026-01-30T15:09:24.028Z" }, - { url = "https://files.pythonhosted.org/packages/e0/40/59d34a756e02f8c670f0fee987d46f7ee53d05447d43cd114ca015cb168c/playwright-1.58.0-py3-none-macosx_11_0_arm64.whl", hash = "sha256:70c763694739d28df71ed578b9c8202bb83e8fe8fb9268c04dd13afe36301f71", size = 41039625, upload-time = "2026-01-30T15:09:27.558Z" }, - { url = "https://files.pythonhosted.org/packages/e1/ee/3ce6209c9c74a650aac9028c621f357a34ea5cd4d950700f8e2c4b7fe2c4/playwright-1.58.0-py3-none-macosx_11_0_universal2.whl", hash = "sha256:185e0132578733d02802dfddfbbc35f42be23a45ff49ccae5081f25952238117", size = 42251098, upload-time = "2026-01-30T15:09:30.461Z" }, - { url = "https://files.pythonhosted.org/packages/f1/af/009958cbf23fac551a940d34e3206e6c7eed2b8c940d0c3afd1feb0b0589/playwright-1.58.0-py3-none-manylinux1_x86_64.whl", hash = "sha256:c95568ba1eda83812598c1dc9be60b4406dffd60b149bc1536180ad108723d6b", size = 46235268, upload-time = "2026-01-30T15:09:33.787Z" }, - { url = "https://files.pythonhosted.org/packages/d9/a6/0e66ad04b6d3440dae73efb39540c5685c5fc95b17c8b29340b62abbd952/playwright-1.58.0-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:8f9999948f1ab541d98812de25e3a8c410776aa516d948807140aff797b4bffa", size = 45964214, upload-time = "2026-01-30T15:09:36.751Z" }, - { url = "https://files.pythonhosted.org/packages/0e/4b/236e60ab9f6d62ed0fd32150d61f1f494cefbf02304c0061e78ed80c1c32/playwright-1.58.0-py3-none-win32.whl", hash = "sha256:1e03be090e75a0fabbdaeab65ce17c308c425d879fa48bb1d7986f96bfad0b99", size = 36815998, upload-time = "2026-01-30T15:09:39.627Z" }, - { url = "https://files.pythonhosted.org/packages/41/f8/5ec599c5e59d2f2f336a05b4f318e733077cd5044f24adb6f86900c3e6a7/playwright-1.58.0-py3-none-win_amd64.whl", hash = "sha256:a2bf639d0ce33b3ba38de777e08697b0d8f3dc07ab6802e4ac53fb65e3907af8", size = 36816005, upload-time = "2026-01-30T15:09:42.449Z" }, - { url = "https://files.pythonhosted.org/packages/c8/c4/cc0229fea55c87d6c9c67fe44a21e2cd28d1d558a5478ed4d617e9fb0c93/playwright-1.58.0-py3-none-win_arm64.whl", hash = "sha256:32ffe5c303901a13a0ecab91d1c3f74baf73b84f4bedbb6b935f5bc11cc98e1b", size = 33085919, upload-time = "2026-01-30T15:09:45.71Z" }, + { url = "https://files.pythonhosted.org/packages/48/7f/4c23d00929596f5c89f1b52b4bcc0dfdf1438f9ef0d3b500e1c951cc146d/playwright-1.65.3-py3-none-macosx_10_13_x86_64.whl", hash = "sha256:2456d6192714c6ac74157beb1db37e37d760b7da087ccdd9cdd265fda3000542", size = 50303241, upload-time = "2026-12-01T22:24:42.147Z" }, + { url = "https://files.pythonhosted.org/packages/1e/f7/72b7ba0e8b7ce85e8648fb5292ebbd8f9981d87dbd081dcb071d3eb9c8e6/playwright-1.65.3-py3-none-macosx_11_0_arm64.whl", hash = "sha256:eace3b4f17ff65d44c2460b1abdbc01e8722b0680527ef6c0055ef2175b8947e", size = 48759625, upload-time = "2026-12-01T22:24:45.591Z" }, + { url = "https://files.pythonhosted.org/packages/64/6d/e4593d81fd3d918ebf94ba0d2ddc2b431daebffb1f7196e9bcd5032692ee/playwright-1.65.3-py3-none-macosx_11_0_universal2.whl", hash = "sha256:3d74faa13cd55a6021c79ec9c2c8e9dbc42d0189d0da33934b62ecee4c5b9ca1", size = 50303242, upload-time = "2026-12-01T22:24:48.558Z" }, + { url = "https://files.pythonhosted.org/packages/83/c3/a8f0cdfb74f3f003cef75d542043a051927ba13d9d32d1d4852601bff53e/playwright-1.65.3-py3-none-manylinux1_x86_64.whl", hash = "sha256:e1615b0858acfc20ca2b81bfdb74a0792a5e614889f296300d222446a55a77bf", size = 54398060, upload-time = "2026-12-01T22:24:51.498Z" }, + { url = "https://files.pythonhosted.org/packages/68/82/66829d7dd832368e02dba6345b3ee0efe5f8e1d00a9d74056dc256455fec/playwright-1.65.3-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:ab3661382c10e654ac9fb5623958d8d349d1971e078ee9ac58fe78f19395413f", size = 53620824, upload-time = "2026-12-01T22:24:54.754Z" }, + { url = "https://files.pythonhosted.org/packages/93/cd/6b067ff7c449c93095a846464a051bc7274a3d8afd12702e3170362a21cf/playwright-1.65.3-py3-none-win32.whl", hash = "sha256:ca8d8dd27d678b2beea9bde3dc3819f7e461848ea197eb5578c006bc9d2f91a8", size = 42583553, upload-time = "2026-12-01T22:24:57.489Z" }, + { url = "https://files.pythonhosted.org/packages/f1/20/903370e136597096197c6a1516a51da837667f73e3a138514178cd85e62d/playwright-1.65.3-py3-none-win_amd64.whl", hash = "sha256:679ef01e2b5af0d46338945614abb1d9243bba6c89a541ea1683140f25582cb4", size = 42583562, upload-time = "2026-12-01T22:25:00.248Z" }, + { url = "https://files.pythonhosted.org/packages/bb/f9/580e46ee19dc0edb16f5fd9414102914eef09a6964b8e7c39bc53b46b811/playwright-1.65.3-py3-none-win_arm64.whl", hash = "sha256:ca342de62a57ebb7576bbe0d26474ffcd6b28473d7a33b90f38f1ae331852c59", size = 38164257, upload-time = "2026-12-01T22:25:03.249Z" }, ] [[package]] @@ -2358,18 +2358,6 @@ wheels = [ { url = "https://files.pythonhosted.org/packages/e2/bc/2cb8c78300ce1ace4eeac3b3522218cea2c2053bfa6b4e32cc972a477f9a/pydata_sphinx_theme-0.17.1-py3-none-any.whl", hash = "sha256:320b022d7808bdf5920d9a28e573f27aace9b23e1af6ca103eecc752411df492", size = 6823346, upload-time = "2026-04-21T13:00:31.978Z" }, ] -[[package]] -name = "pyee" -version = "13.0.1" -source = { registry = "https://pypi.org/simple" } -dependencies = [ - { name = "typing-extensions" }, -] -sdist = { url = "https://files.pythonhosted.org/packages/8b/04/e7c1fe4dc78a6fdbfd6c337b1c3732ff543b8a397683ab38378447baa331/pyee-13.0.1.tar.gz", hash = "sha256:0b931f7c14535667ed4c7e0d531716368715e860b988770fc7eb8578d1f67fc8", size = 31655, upload-time = "2026-02-14T21:12:28.044Z" } -wheels = [ - { url = "https://files.pythonhosted.org/packages/a0/c4/b4d4827c93ef43c01f599ef31453ccc1c132b353284fc6c87d535c233129/pyee-13.0.1-py3-none-any.whl", hash = "sha256:af2f8fede4171ef667dfded53f96e2ed0d6e6bd7ee3bb46437f77e3b57689228", size = 15659, upload-time = "2026-02-14T21:12:26.263Z" }, -] - [[package]] name = "pygments" version = "2.20.0"