Skip to content

Commit

Permalink
Support CPython 3.13 (#115)
Browse files Browse the repository at this point in the history
Add cp313 build
  • Loading branch information
kyamagu authored Oct 31, 2024
1 parent 9bcced8 commit 24dc7f1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ jobs:
activate-environment: ""

- name: Install cibuildwheel
run: python -m pip install cibuildwheel==2.21.1
run: python -m pip install cibuildwheel==2.21.3

- name: Build wheels
run: python -m cibuildwheel --output-dir wheelhouse
Expand All @@ -104,7 +104,6 @@ jobs:
LIB="${LIB};${CMAKE_PREFIX_PATH}\\lib;${CONDA}\\Library\\lib"
CPATH="${CPATH};${CMAKE_PREFIX_PATH}\\include;${CONDA}\\Library\\include"
CIBW_BEFORE_ALL: bash scripts/build_${{ runner.os }}.sh
CIBW_BEFORE_TEST_LINUX: pip install torch --index-url https://download.pytorch.org/whl/cpu
CIBW_TEST_COMMAND: >
env -u FAISS_OPT_LEVEL pytest {project}/faiss/tests
Expand Down
5 changes: 3 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ classifiers = [
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
]
dependencies = ["numpy>=1.25.0,<3.0", "packaging"]
Expand All @@ -49,10 +50,10 @@ testpaths = ["faiss/tests"]
python_files = "test_*.py" # torch_test_*.py will break the other tests

[tool.cibuildwheel]
skip = "pp* cp38-* cp313-* *-musllinux*"
skip = "pp* cp38-* *-musllinux*"
test-skip = "*-manylinux_aarch64 *-win_amd64"

test-requires = ["pytest", "scipy", "torch"]
test-requires = ["pytest", "scipy"]
test-command = "pytest {project}/faiss/tests"

[tool.cibuildwheel.windows]
Expand Down

0 comments on commit 24dc7f1

Please sign in to comment.