Skip to content

Commit cb42e35

Browse files
Bump Pyodide version, Python version, and other cleanups (#61)
* Reformat * Require 3.12, bump setuptools, remove wheel * Require Python 3.12 for Mypy * Bump Pyodide version, Python, and GHA versions * Coloured output for all tests * Don't shallow-clone repository * Pin to Chrome 125 and bump install-browser action Co-Authored-By: Gyeongjae Choi <[email protected]> --------- Co-authored-by: Gyeongjae Choi <[email protected]>
1 parent 18cd638 commit cb42e35

File tree

2 files changed

+22
-16
lines changed

2 files changed

+22
-16
lines changed

.github/workflows/main.yml

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@ name: main
22

33
on: [push, pull_request]
44

5+
env:
6+
FORCE_COLOR: 3
7+
58
permissions:
69
contents: read
710

@@ -18,24 +21,27 @@ jobs:
1821
fail-fast: false
1922
matrix:
2023
os: [ubuntu-latest]
21-
pyodide-version: [0.25.0]
24+
pyodide-version: [0.26.4]
2225
test-config: [
23-
{runner: selenium, runtime: chrome, runtime-version: latest},
26+
# FIXME: timeouts on recent versions of Chrome, same as micropip
27+
{runner: selenium, runtime: chrome, runtime-version: 125},
2428
]
2529

2630
steps:
27-
- uses: actions/checkout@v2
31+
- uses: actions/checkout@v4
32+
with:
33+
fetch-depth: 0
2834

29-
- uses: actions/setup-python@v3
35+
- uses: actions/setup-python@v5
3036
with:
31-
python-version: 3.11
37+
python-version: 3.12
3238

3339
- uses: pyodide/pyodide-actions/download-pyodide@v1
3440
with:
3541
version: ${{ matrix.pyodide-version }}
3642
to: dist
3743

38-
- uses: pyodide/pyodide-actions/install-browser@v1
44+
- uses: pyodide/pyodide-actions/install-browser@v2
3945
with:
4046
runner: ${{ matrix.test-config.runner }}
4147
browser: ${{ matrix.test-config.runtime }}
@@ -63,11 +69,11 @@ jobs:
6369
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
6470
environment: PyPi-deploy
6571
steps:
66-
- uses: actions/checkout@v2
72+
- uses: actions/checkout@v4
6773

68-
- uses: actions/setup-python@v3
74+
- uses: actions/setup-python@v5
6975
with:
70-
python-version: 3.11
76+
python-version: 3.12
7177
- name: Install requirements and build wheel
7278
shell: bash -l {0}
7379
run: |

pyproject.toml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,17 @@ authors = [
55
]
66
description = "HTML5 backends for Matplotlib compatible with Pyodide"
77
readme = "README.md"
8-
license = { file="LICENSE" }
9-
requires-python = ">=3.10"
8+
license = { file = "LICENSE" }
9+
requires-python = ">=3.12"
1010
dynamic = ["version"]
1111
classifiers = [
12-
"Programming Language :: Python :: 3",
13-
"License :: OSI Approved :: Mozilla Public License 2.0 (MPL 2.0)",
14-
"Operating System :: OS Independent",
12+
"Programming Language :: Python :: 3",
13+
"License :: OSI Approved :: Mozilla Public License 2.0 (MPL 2.0)",
14+
"Operating System :: OS Independent",
1515
]
1616

1717
[build-system]
18-
requires = ["setuptools>=42", "setuptools_scm[toml]>=6.2", "wheel"]
18+
requires = ["setuptools>=71", "setuptools_scm[toml]>=6.2"]
1919

2020
build-backend = "setuptools.build_meta"
2121

@@ -47,7 +47,7 @@ known_first_party = [
4747
]
4848

4949
[tool.mypy]
50-
python_version = "3.10"
50+
python_version = "3.12"
5151
show_error_codes = true
5252
warn_unreachable = true
5353
ignore_missing_imports = true

0 commit comments

Comments
 (0)