Skip to content

Commit bf9ba35

Browse files
authored
Merge branch 'main' into build-editable
2 parents 420150f + 50e9a92 commit bf9ba35

282 files changed

Lines changed: 4128 additions & 2954 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.appveyor.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ environment:
1414
ARCHITECTURE: x86
1515
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2022
1616
- PYTHON: C:/Python38-x64
17-
ARCHITECTURE: x64
17+
ARCHITECTURE: AMD64
1818
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
1919

2020

.ci/requirements-cibw.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
cibuildwheel==2.16.2
1+
cibuildwheel==2.16.5

.coveragerc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,11 @@ exclude_also =
1010
if DEBUG:
1111
# Don't complain about compatibility code for missing optional dependencies
1212
except ImportError
13+
if TYPE_CHECKING:
14+
@abc.abstractmethod
15+
# Empty bodies in protocols or abstract methods
16+
^\s*def [a-zA-Z0-9_]+\(.*\)(\s*->.*)?:\s*\.\.\.(\s*#.*)?$
17+
^\s*\.\.\.(\s*#.*)?$
1318

1419
[run]
1520
omit =

.github/workflows/docs.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,16 +37,26 @@ jobs:
3737
with:
3838
python-version: "3.x"
3939
cache: pip
40-
cache-dependency-path: ".ci/*.sh"
40+
cache-dependency-path: |
41+
".ci/*.sh"
42+
"pyproject.toml"
4143
4244
- name: Build system information
4345
run: python3 .github/workflows/system-info.py
4446

47+
- name: Cache libimagequant
48+
uses: actions/cache@v4
49+
id: cache-libimagequant
50+
with:
51+
path: ~/cache-libimagequant
52+
key: ${{ runner.os }}-libimagequant-${{ hashFiles('depends/install_imagequant.sh') }}
53+
4554
- name: Install Linux dependencies
4655
run: |
4756
.ci/install.sh
4857
env:
4958
GHA_PYTHON_VERSION: "3.x"
59+
GHA_LIBIMAGEQUANT_CACHE_HIT: ${{ steps.cache-libimagequant.outputs.cache-hit }}
5060

5161
- name: Build
5262
run: |

.github/workflows/lint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
- uses: actions/checkout@v4
2424

2525
- name: pre-commit cache
26-
uses: actions/cache@v3
26+
uses: actions/cache@v4
2727
with:
2828
path: ~/.cache/pre-commit
2929
key: lint-pre-commit-${{ hashFiles('**/.pre-commit-config.yaml') }}

.github/workflows/macos-install.sh

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,16 @@
22

33
set -e
44

5-
brew install libtiff libjpeg openjpeg libimagequant webp little-cms2 freetype libraqm
5+
brew install \
6+
freetype \
7+
ghostscript \
8+
libimagequant \
9+
libjpeg \
10+
libraqm \
11+
libtiff \
12+
little-cms2 \
13+
openjpeg \
14+
webp
615
export PKG_CONFIG_PATH="/usr/local/opt/openblas/lib/pkgconfig"
716

817
# TODO Update condition when cffi supports 3.13

.github/workflows/release-drafter.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,6 @@ jobs:
2323
runs-on: ubuntu-latest
2424
steps:
2525
# Drafts your next release notes as pull requests are merged into "main"
26-
- uses: release-drafter/release-drafter@v5
26+
- uses: release-drafter/release-drafter@v6
2727
env:
2828
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/system-info.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
Requested here:
77
https://github.com/actions/virtual-environments/issues/79
88
"""
9+
910
from __future__ import annotations
1011

1112
import os

.github/workflows/test-cygwin.yml

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,13 @@ on:
88
- ".github/workflows/docs.yml"
99
- ".github/workflows/wheels*"
1010
- ".gitmodules"
11-
- ".travis.yml"
1211
- "docs/**"
1312
- "wheels/**"
1413
pull_request:
1514
paths-ignore:
1615
- ".github/workflows/docs.yml"
1716
- ".github/workflows/wheels*"
1817
- ".gitmodules"
19-
- ".travis.yml"
2018
- "docs/**"
2119
- "wheels/**"
2220
workflow_dispatch:
@@ -49,9 +47,8 @@ jobs:
4947
uses: actions/checkout@v4
5048

5149
- name: Install Cygwin
52-
uses: cygwin/cygwin-install-action@v4
50+
uses: egor-tensin/setup-cygwin@v4
5351
with:
54-
platform: x86_64
5552
packages: >
5653
gcc-g++
5754
ghostscript
@@ -71,6 +68,7 @@ jobs:
7168
make
7269
netpbm
7370
perl
71+
python39=3.9.16-1
7472
python3${{ matrix.python-minor-version }}-cffi
7573
python3${{ matrix.python-minor-version }}-cython
7674
python3${{ matrix.python-minor-version }}-devel
@@ -82,13 +80,13 @@ jobs:
8280
zlib-devel
8381
8482
- name: Add Lapack to PATH
85-
uses: egor-tensin/cleanup-path@v3
83+
uses: egor-tensin/cleanup-path@v4
8684
with:
8785
dirs: 'C:\cygwin\bin;C:\cygwin\lib\lapack'
8886

8987
- name: Select Python version
9088
run: |
91-
ln -sf c:/cygwin/bin/python3.${{ matrix.python-minor-version }} c:/cygwin/bin/python3
89+
ln -sf c:/tools/cygwin/bin/python3.${{ matrix.python-minor-version }} c:/tools/cygwin/bin/python3
9290
9391
- name: Get latest NumPy version
9492
id: latest-numpy
@@ -97,7 +95,7 @@ jobs:
9795
python3 -m pip list --outdated | grep numpy | sed -r 's/ +/ /g' | cut -d ' ' -f 3 | sed 's/^/version=/' >> $GITHUB_OUTPUT
9896
9997
- name: pip cache
100-
uses: actions/cache@v3
98+
uses: actions/cache@v4
10199
with:
102100
path: 'C:\cygwin\home\runneradmin\.cache\pip'
103101
key: ${{ runner.os }}-cygwin-pip3.${{ matrix.python-minor-version }}-numpy${{ steps.latest-numpy.outputs.version }}-${{ hashFiles('.ci/install.sh') }}
@@ -143,7 +141,7 @@ jobs:
143141
bash.exe .ci/after_success.sh
144142
145143
- name: Upload coverage
146-
uses: codecov/codecov-action@v3
144+
uses: codecov/codecov-action@v3.1.5
147145
with:
148146
file: ./coverage.xml
149147
flags: GHA_Cygwin

.github/workflows/test-docker.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,13 @@ on:
88
- ".github/workflows/docs.yml"
99
- ".github/workflows/wheels*"
1010
- ".gitmodules"
11-
- ".travis.yml"
1211
- "docs/**"
1312
- "wheels/**"
1413
pull_request:
1514
paths-ignore:
1615
- ".github/workflows/docs.yml"
1716
- ".github/workflows/wheels*"
1817
- ".gitmodules"
19-
- ".travis.yml"
2018
- "docs/**"
2119
- "wheels/**"
2220
workflow_dispatch:
@@ -103,7 +101,7 @@ jobs:
103101
MATRIX_DOCKER: ${{ matrix.docker }}
104102

105103
- name: Upload coverage
106-
uses: codecov/codecov-action@v3
104+
uses: codecov/codecov-action@v3.1.5
107105
with:
108106
flags: GHA_Docker
109107
name: ${{ matrix.docker }}

0 commit comments

Comments
 (0)