Skip to content

Commit

Permalink
Try building wheels for python 3.11 (#16)
Browse files Browse the repository at this point in the history
* Try building wheels for python 3.11

* bump dependency versions

* Bump isort version

* fix isort

---------

Co-authored-by: Tomoki Ohtsuki <[email protected]>
  • Loading branch information
tohtsky and Tomoki Ohtsuki authored Apr 19, 2023
1 parent 6b2c6d0 commit b9ba70e
Show file tree
Hide file tree
Showing 6 changed files with 28 additions and 19 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/doctest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@ jobs:
env:
OS: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Setup Python
uses: actions/setup-python@master
uses: actions/setup-python@v3
with:
python-version: "3.8"
python-version: "3.11"
- name: Build myfm
run: |
pip install --upgrade pip
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/pre-commit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@ jobs:
env:
SKIP: no-commit-to-branch
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
- uses: pre-commit/action@v2.0.3
- uses: actions/checkout@v3
- uses: actions/setup-python@v3
- uses: pre-commit/action@v3.0.0
6 changes: 3 additions & 3 deletions .github/workflows/run-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@ jobs:
env:
OS: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Setup Python
uses: actions/setup-python@master
uses: actions/setup-python@v3
with:
python-version: "3.10"
python-version: "3.11"
- name: Build myfm
run: |
pip install --upgrade pip
Expand Down
20 changes: 14 additions & 6 deletions .github/workflows/wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,19 +7,19 @@ on:
types:
- created
env:
cibuildwheel_version: "2.2.2"
cibuildwheel_version: "2.12.2"
jobs:
build_sdist:
name: Build source distribution
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: actions/setup-python@v2
- uses: actions/setup-python@v3
name: Install Python
with:
python-version: "3.7"
python-version: "3.11"
- name: Build sdist
run: pip install pybind11 && python setup.py sdist
- uses: actions/upload-artifact@v2
Expand Down Expand Up @@ -54,7 +54,7 @@ jobs:
name: mac-arm
cibw:
arch: universal2
build: "cp39* cp310*"
build: "cp39* cp310* cp311*"

- os: ubuntu-20.04
name: manylinux1
Expand All @@ -67,7 +67,7 @@ jobs:
- os: ubuntu-20.04
name: manylinux2014
cibw:
build: "cp38* cp39* cp310*"
build: "cp38* cp39* cp310* cp311*"
skip: "*musllinux*"
manylinux_image: manylinux2014
arch: auto64
Expand Down Expand Up @@ -104,6 +104,14 @@ jobs:
manylinux_image: manylinux2014
arch: aarch64

- os: ubuntu-20.04
name: manylinux_aarch64_cp311
cibw:
build: "cp311*"
skip: "*musllinux*"
manylinux_image: manylinux2014
arch: aarch64

- os: windows-2019
name: win_amd64
architecture: x64
Expand Down
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ repos:
- id: end-of-file-fixer
- id: check-added-large-files
- repo: https://github.com/PyCQA/isort
rev: 5.6.4
rev: 5.12.0
hooks:
- id: isort
name: isort
Expand Down
7 changes: 4 additions & 3 deletions src/myfm/_myfm.pyi
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
"""Backend C++ implementation for myfm."""
import myfm._myfm
from typing import *
from typing import Iterable as iterable
from typing import Iterator as iterator
from typing import *

import scipy.sparse
from numpy import float64
from numpy import typing as npt

import scipy.sparse
import myfm._myfm

__all__ = [
"ConfigBuilder",
Expand Down

0 comments on commit b9ba70e

Please sign in to comment.