Skip to content

Commit

Permalink
build: update for py312
Browse files Browse the repository at this point in the history
  • Loading branch information
william-silversmith committed Dec 19, 2023
1 parent 4208b47 commit 4fd274a
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 9 deletions.
15 changes: 8 additions & 7 deletions .github/workflows/build_wheel.yml
Original file line number Diff line number Diff line change
@@ -1,37 +1,38 @@
name: Build Wheels

on:
on:
workflow_dispatch:
push:
tags:
- '*'
env:
CIBW_SKIP: cp27-* cp33-* cp34-* cp35-* cp36-* pp27* pp36* pp37* pp38* pp39* pp310* *-musllinux*
CIBW_SKIP: cp27-* cp33-* cp34-* cp35-* cp36-* cp37-* pp* *-musllinux*

jobs:
build_wheels:
name: Build wheels on ${{matrix.arch}} for ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-20.04, windows-2019, macos-latest]
os: [ubuntu-latest, windows-2019, macos-latest]
arch: [auto]
include:
- os: ubuntu-20.04
- os: ubuntu-latest
arch: aarch64

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- name: Set up QEMU
if: ${{ matrix.arch == 'aarch64' }}
uses: docker/setup-qemu-action@v1

- name: Build wheels
uses: pypa/cibuildwheel@v2.12.3
uses: pypa/cibuildwheel@v2.16.2
# to supply options, put them in 'env', like:
env:
CIBW_ARCHS_LINUX: ${{matrix.arch}}
CIBW_BEFORE_BUILD: pip install oldest-supported-numpy
CIBW_BEFORE_BUILD: pip install oldest-supported-numpy setuptools wheel cython

- uses: actions/upload-artifact@v2
with:
Expand Down
7 changes: 7 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
CHANGES
=======

1.4.0
-----

* release(1.4.0): full support for 2x2x1 avg pooling
* perf: 2x2x1 sparse avg pooling (#20)
* feat: numpy implementation of sparse for averaging

1.3.3
-----

Expand Down
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@ classifier =
Development Status :: 5 - Production/Stable
License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)
Programming Language :: Python :: 3
Programming Language :: Python :: 3.7
Programming Language :: Python :: 3.8
Programming Language :: Python :: 3.9
Programming Language :: Python :: 3.10
Programming Language :: Python :: 3.11
Programming Language :: Python :: 3.12
Topic :: Scientific/Engineering

[global]
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def __repr__(self):
'tinybrain.accelerated',
sources=[ 'tinybrain/accelerated.pyx' ],
language='c++',
include_dirs=[ NumpyImport() ],
include_dirs=[ str(NumpyImport()) ],
extra_compile_args=extra_compile_args,
)
],
Expand Down

0 comments on commit 4fd274a

Please sign in to comment.