From 4fd274a13419581030e3a9c350b4b812d5345c1e Mon Sep 17 00:00:00 2001 From: William Silversmith Date: Tue, 19 Dec 2023 01:52:11 -0500 Subject: [PATCH] build: update for py312 --- .github/workflows/build_wheel.yml | 15 ++++++++------- ChangeLog | 7 +++++++ setup.cfg | 2 +- setup.py | 2 +- 4 files changed, 17 insertions(+), 9 deletions(-) diff --git a/.github/workflows/build_wheel.yml b/.github/workflows/build_wheel.yml index 8722143..cb0ec13 100644 --- a/.github/workflows/build_wheel.yml +++ b/.github/workflows/build_wheel.yml @@ -1,11 +1,12 @@ 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: @@ -13,25 +14,25 @@ jobs: 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: diff --git a/ChangeLog b/ChangeLog index 61f0286..ea0a743 100644 --- a/ChangeLog +++ b/ChangeLog @@ -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 ----- diff --git a/setup.cfg b/setup.cfg index 1f40000..70886b5 100644 --- a/setup.cfg +++ b/setup.cfg @@ -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] diff --git a/setup.py b/setup.py index 4fa2d46..d3f7c2b 100644 --- a/setup.py +++ b/setup.py @@ -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, ) ],