Skip to content
This repository has been archived by the owner on Aug 9, 2023. It is now read-only.

Commit

Permalink
Merge pull request #196 from googlefonts/py311
Browse files Browse the repository at this point in the history
Build python 3.11 wheels
  • Loading branch information
anthrotype committed Nov 16, 2022
2 parents 6812ae4 + d9234b0 commit 4cbc9b6
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
strategy:
fail-fast: false
matrix:
os: [ "ubuntu-20.04", "windows-2019", "macos-11" ]
os: [ "ubuntu-latest", "windows-latest", "macos-latest" ]
env:
CIBW_ARCHS: auto64
# macOS: Explicitly list ARM variants here for cross-compilation.
Expand All @@ -31,7 +31,7 @@ jobs:
with:
python-version: "3.x"
- name: Install cibuildwheel
run: python -m pip install -U pip cibuildwheel==2.0.1
run: python -m pip install -U pip cibuildwheel
- name: Build wheels
run: python -m cibuildwheel --output-dir dist
- uses: actions/upload-artifact@v2
Expand All @@ -41,7 +41,7 @@ jobs:

build-pure:
name: Build sdist and pure wheel
runs-on: "ubuntu-20.04"
runs-on: "ubuntu-latest"
steps:
- uses: actions/checkout@v2
with:
Expand All @@ -50,7 +50,7 @@ jobs:
# Use PyPy just so we can test the package on it.
- uses: actions/setup-python@v2
with:
python-version: 'pypy-3.7'
python-version: 'pypy-3.9'
- name: Install packaging tooling
run: python -m pip install -U pip setuptools wheel
- name: Build sdist and pure wheel
Expand Down
9 changes: 7 additions & 2 deletions tests/pens_test.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from __future__ import print_function, division, absolute_import
import sys
import unittest

from cu2qu.pens import Cu2QuPen, Cu2QuPointPen
Expand Down Expand Up @@ -244,8 +245,12 @@ def test_ignore_single_points(self):
quadpen.closePath()

self.assertGreaterEqual(len(log.records), 1)
self.assertIn("ignore_single_points is deprecated",
log.records[0].args[0])
if sys.version_info < (3, 11):
self.assertIn("ignore_single_points is deprecated",
log.records[0].args[0])
else:
self.assertIn("ignore_single_points is deprecated",
log.records[0].msg)

# single-point contours were ignored, so the pen commands are empty
self.assertFalse(pen.commands)
Expand Down

0 comments on commit 4cbc9b6

Please sign in to comment.