Skip to content

Commit b9ba70e

Browse files
tohtskyTomoki Ohtsuki
andauthored
Try building wheels for python 3.11 (#16)
* Try building wheels for python 3.11 * bump dependency versions * Bump isort version * fix isort --------- Co-authored-by: Tomoki Ohtsuki <tomoki_ohtsuki@libinc.co.jp>
1 parent 6b2c6d0 commit b9ba70e

File tree

6 files changed

+28
-19
lines changed

6 files changed

+28
-19
lines changed

.github/workflows/doctest.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@ jobs:
66
env:
77
OS: ubuntu-latest
88
steps:
9-
- uses: actions/checkout@v2
9+
- uses: actions/checkout@v3
1010
with:
1111
fetch-depth: 0
1212
- name: Setup Python
13-
uses: actions/setup-python@master
13+
uses: actions/setup-python@v3
1414
with:
15-
python-version: "3.8"
15+
python-version: "3.11"
1616
- name: Build myfm
1717
run: |
1818
pip install --upgrade pip

.github/workflows/pre-commit.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@ jobs:
88
env:
99
SKIP: no-commit-to-branch
1010
steps:
11-
- uses: actions/checkout@v2
12-
- uses: actions/setup-python@v2
13-
- uses: pre-commit/action@v2.0.3
11+
- uses: actions/checkout@v3
12+
- uses: actions/setup-python@v3
13+
- uses: pre-commit/action@v3.0.0

.github/workflows/run-test.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@ jobs:
66
env:
77
OS: ubuntu-latest
88
steps:
9-
- uses: actions/checkout@v2
9+
- uses: actions/checkout@v3
1010
with:
1111
fetch-depth: 0
1212
- name: Setup Python
13-
uses: actions/setup-python@master
13+
uses: actions/setup-python@v3
1414
with:
15-
python-version: "3.10"
15+
python-version: "3.11"
1616
- name: Build myfm
1717
run: |
1818
pip install --upgrade pip

.github/workflows/wheels.yml

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,19 +7,19 @@ on:
77
types:
88
- created
99
env:
10-
cibuildwheel_version: "2.2.2"
10+
cibuildwheel_version: "2.12.2"
1111
jobs:
1212
build_sdist:
1313
name: Build source distribution
1414
runs-on: ubuntu-latest
1515
steps:
16-
- uses: actions/checkout@v2
16+
- uses: actions/checkout@v3
1717
with:
1818
fetch-depth: 0
19-
- uses: actions/setup-python@v2
19+
- uses: actions/setup-python@v3
2020
name: Install Python
2121
with:
22-
python-version: "3.7"
22+
python-version: "3.11"
2323
- name: Build sdist
2424
run: pip install pybind11 && python setup.py sdist
2525
- uses: actions/upload-artifact@v2
@@ -54,7 +54,7 @@ jobs:
5454
name: mac-arm
5555
cibw:
5656
arch: universal2
57-
build: "cp39* cp310*"
57+
build: "cp39* cp310* cp311*"
5858

5959
- os: ubuntu-20.04
6060
name: manylinux1
@@ -67,7 +67,7 @@ jobs:
6767
- os: ubuntu-20.04
6868
name: manylinux2014
6969
cibw:
70-
build: "cp38* cp39* cp310*"
70+
build: "cp38* cp39* cp310* cp311*"
7171
skip: "*musllinux*"
7272
manylinux_image: manylinux2014
7373
arch: auto64
@@ -104,6 +104,14 @@ jobs:
104104
manylinux_image: manylinux2014
105105
arch: aarch64
106106

107+
- os: ubuntu-20.04
108+
name: manylinux_aarch64_cp311
109+
cibw:
110+
build: "cp311*"
111+
skip: "*musllinux*"
112+
manylinux_image: manylinux2014
113+
arch: aarch64
114+
107115
- os: windows-2019
108116
name: win_amd64
109117
architecture: x64

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ repos:
1313
- id: end-of-file-fixer
1414
- id: check-added-large-files
1515
- repo: https://github.com/PyCQA/isort
16-
rev: 5.6.4
16+
rev: 5.12.0
1717
hooks:
1818
- id: isort
1919
name: isort

src/myfm/_myfm.pyi

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
"""Backend C++ implementation for myfm."""
2-
import myfm._myfm
3-
from typing import *
42
from typing import Iterable as iterable
53
from typing import Iterator as iterator
4+
from typing import *
5+
6+
import scipy.sparse
67
from numpy import float64
78
from numpy import typing as npt
89

9-
import scipy.sparse
10+
import myfm._myfm
1011

1112
__all__ = [
1213
"ConfigBuilder",

0 commit comments

Comments
 (0)