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 f7a5550 commit c4d808e
Show file tree
Hide file tree
Showing 6 changed files with 1,408 additions and 369 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,16 +9,16 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
python-version: ["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", "3.12", "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: build librsync
Expand All @@ -37,7 +37,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.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", "3.12", "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: build librsync
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.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", "3.12", "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: build librsync
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 pyrsync/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
"""
from pyrsync.backends import *

__version__ = "0.1.0"
__version__ = "0.1.1"
Loading

0 comments on commit c4d808e

Please sign in to comment.