Skip to content

Commit

Permalink
Merge pull request #9 from nomonosound/ij/python3.10-compat
Browse files Browse the repository at this point in the history
Make it compatible with python 3.10 and 3.11 on Windows
  • Loading branch information
iver56 authored Dec 22, 2023
2 parents 36f99a1 + 9bfe55d commit bb2bc07
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
- name: Build Wheels
env:
CIBW_ARCHS: "auto64"
CIBW_SKIP: "cp36-* cp37-* cp310-win* cp311-win* cp312-*"
CIBW_SKIP: "cp36-* cp37-* cp312-*"
run: |
python -m pip install cibuildwheel
python -m cibuildwheel --output-dir wheelhouse
Expand Down
2 changes: 1 addition & 1 deletion fast_align_audio/_alignment_cffi.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
ffibuilder = FFI()
ffibuilder.cdef("""
typedef struct {
ssize_t min_idx;
int min_idx;
float min_val;
} MinResult;
""")
Expand Down
4 changes: 2 additions & 2 deletions fast_align_audio/_faa.c
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ static size_t my_min3(size_t a, size_t b, size_t c) {
}

typedef struct {
ssize_t min_idx;
int min_idx;
float min_val;
} MinResult;

Expand All @@ -70,7 +70,7 @@ MinResult fast_find_alignment(size_t a_len, float *a,
float d2 = fastmse(result.min_val, my_min3(a_len, b_len - i, max_lookahead), a, &b[i]);
if (d2 < result.min_val) {
result.min_val = d2;
result.min_idx = -(ssize_t)i;
result.min_idx = -i;
}
}
}
Expand Down
2 changes: 2 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@ def find_version(*file_paths):
"License :: OSI Approved :: ISC License (ISCL)",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
],
url="https://github.com/nomonosound/fast-align-audio",
)

0 comments on commit bb2bc07

Please sign in to comment.