Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump Pyodide version, Python version, and other cleanups #61

Merged
merged 7 commits into from
Nov 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 15 additions & 9 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ name: main

on: [push, pull_request]

env:
FORCE_COLOR: 3

permissions:
contents: read

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

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
with:
fetch-depth: 0

- uses: actions/setup-python@v3
- uses: actions/setup-python@v5
with:
python-version: 3.11
python-version: 3.12

- uses: pyodide/pyodide-actions/download-pyodide@v1
with:
version: ${{ matrix.pyodide-version }}
to: dist

- uses: pyodide/pyodide-actions/install-browser@v1
- uses: pyodide/pyodide-actions/install-browser@v2
with:
runner: ${{ matrix.test-config.runner }}
browser: ${{ matrix.test-config.runtime }}
Expand Down Expand Up @@ -63,11 +69,11 @@ jobs:
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
environment: PyPi-deploy
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- uses: actions/setup-python@v3
- uses: actions/setup-python@v5
with:
python-version: 3.11
python-version: 3.12
- name: Install requirements and build wheel
shell: bash -l {0}
run: |
Expand Down
14 changes: 7 additions & 7 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,17 @@ authors = [
]
description = "HTML5 backends for Matplotlib compatible with Pyodide"
readme = "README.md"
license = { file="LICENSE" }
requires-python = ">=3.10"
license = { file = "LICENSE" }
requires-python = ">=3.12"
dynamic = ["version"]
classifiers = [
"Programming Language :: Python :: 3",
"License :: OSI Approved :: Mozilla Public License 2.0 (MPL 2.0)",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"License :: OSI Approved :: Mozilla Public License 2.0 (MPL 2.0)",
"Operating System :: OS Independent",
]

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

build-backend = "setuptools.build_meta"

Expand Down Expand Up @@ -47,7 +47,7 @@ known_first_party = [
]

[tool.mypy]
python_version = "3.10"
python_version = "3.12"
show_error_codes = true
warn_unreachable = true
ignore_missing_imports = true