Skip to content

Commit

Permalink
prepare for m1
Browse files Browse the repository at this point in the history
  • Loading branch information
synodriver committed Feb 3, 2024
1 parent 91d76db commit cba58c2
Show file tree
Hide file tree
Showing 7 changed files with 68 additions and 54 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/build_whl.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,15 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
python-version: ["3.6", "3.7", "3.8", "3.9", "3.10", "3.11", "pypy3.7", "pypy3.8"]
os: [ubuntu-latest, macos-latest, windows-latest]
python-version: ["3.8", "3.9", "3.10", "3.11", "pypy3.7", "pypy3.8", "pypy3.9", "pypy3.10"]
os: [ubuntu-22.04, macos-12, macos-14, windows-2019]

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Check out recursively
run: git submodule update --init --recursive
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
Expand All @@ -30,7 +30,7 @@ jobs:
- name: build_whl
run: |
python setup.py sdist bdist_wheel --use-cython --use-cffi
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: ${{ matrix.os }}-${{ matrix.python-version }}
path: dist/*.whl
8 changes: 4 additions & 4 deletions .github/workflows/unitest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,16 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
python-version: ["3.6", "3.7", "3.8", "3.9", "3.10", "3.11", "pypy3.7", "pypy3.8"]
os: [ubuntu-latest, macos-latest, windows-latest]
python-version: ["3.8", "3.9", "3.10", "3.11", "pypy3.7", "pypy3.8", "pypy3.9", "pypy3.10"]
os: [ubuntu-22.04, macos-12, macos-14, windows-2019]
fail-fast: false

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Check out recursively
run: git submodule update --init --recursive
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/upload.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,16 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
python-version: ["3.6", "3.7", "3.8", "3.9", "3.10", "3.11", "3.12", "pypy3.7", "pypy3.8", "pypy3.9", "pypy3.10"]
os: [ubuntu-latest, macos-latest, windows-latest]
python-version: ["3.8", "3.9", "3.10", "3.11", "pypy3.7", "pypy3.8", "pypy3.9", "pypy3.10"]
os: [ubuntu-22.04, macos-12, macos-14, windows-2019]
fail-fast: false

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Check out recursively
run: git submodule update --init --recursive
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
Expand Down
12 changes: 12 additions & 0 deletions changename.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,20 @@
import os
import platform

for f in os.listdir("dist"):
if "linux" in f:
os.rename(
os.path.join("dist", f),
os.path.join("dist", f.replace("linux", "manylinux2014")),
)
elif "macosx" in f:
if platform.machine() == "x86_64":
os.rename(
os.path.join("dist", f),
os.path.join("dist", f.replace("universal2", "x86_64")),
)
else:
os.rename(
os.path.join("dist", f),
os.path.join("dist", f.replace("universal2", "arm64")),
)
2 changes: 1 addition & 1 deletion pysilk/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ def _should_use_cffi() -> bool:
else:
from pysilk.backends.cffi import *

__version__ = "0.2.4"
__version__ = "0.2.5"
79 changes: 40 additions & 39 deletions pysilk/backends/cython/_silk.c

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def build_extensions(self):
compiler = self.compiler.compiler_type
args = BUILD_ARGS[compiler]
for ext in self.extensions:
ext.extra_compile_args = args
ext.extra_compile_args.extend(args)
super().build_extensions()


Expand Down Expand Up @@ -125,6 +125,7 @@ def main():
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
],
Expand Down

0 comments on commit cba58c2

Please sign in to comment.