-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- replace setup.py with pyproject.toml + scikit-build-core - add install step for python bindings to CMakeLists.txt - scikit-build-core requires Python >= 3.7 - skip tests for Python 3.12 until numpy 1.26 is released with Python 3.12 support - bump deps - cibuildwheel to 2.15 - this now builds Python 3.12 wheels - pybind11 to v2.11.1 - cpu_features to v0.8.0 - catch2 to v2.13.10 - benchmark to 1.8.2 - bump version to 0.20.0 - resolves #91
- Loading branch information
Showing
11 changed files
with
90 additions
and
157 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,17 +9,14 @@ on: | |
release: | ||
types: [published] | ||
|
||
concurrency: | ||
group: wheels-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
build-wheels: | ||
name: Build wheels on ${{ matrix.os }} | ||
runs-on: ${{ matrix.os }} | ||
env: | ||
CIBW_TEST_REQUIRES: "pytest numpy" | ||
CIBW_TEST_COMMAND: "pytest {project}/python/tests -v" | ||
CIBW_TEST_SKIP: "pp* *-musllinux*" | ||
CIBW_ENVIRONMENT: "BLAS=None LAPACK=None ATLAS=None" | ||
CIBW_SKIP: "*-manylinux_i686" | ||
CIBW_BUILD_VERBOSITY: 3 | ||
|
||
strategy: | ||
matrix: | ||
|
@@ -30,11 +27,7 @@ jobs: | |
with: | ||
submodules: "recursive" | ||
|
||
- name: enable openmp on linux | ||
run: echo 'CIBW_ENVIRONMENT=HAMMING_WITH_OPENMP=ON' >> $GITHUB_ENV | ||
if: runner.os == 'Linux' | ||
|
||
- uses: pypa/[email protected] | ||
- uses: pypa/[email protected] | ||
|
||
- uses: actions/upload-artifact@v3 | ||
with: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Submodule Catch2
updated
13 files
+1 −1 | CMakeLists.txt | |
+1 −1 | README.md | |
+2 −1 | docs/cmake-integration.md | |
+10 −0 | docs/release-notes.md | |
+1 −1 | include/catch.hpp | |
+1 −3 | include/internal/benchmark/catch_constructor.hpp | |
+1 −1 | include/internal/catch_debugger.h | |
+10 −2 | include/internal/catch_default_main.hpp | |
+1 −1 | include/internal/catch_session.cpp | |
+1 −1 | include/internal/catch_version.cpp | |
+1 −1 | projects/CMakeLists.txt | |
+8 −7 | projects/SelfTest/UsageTests/Message.tests.cpp | |
+17 −11 | single_include/catch2/catch.hpp |
Submodule cpu_features
updated
59 files
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
[build-system] | ||
requires = ["scikit-build-core"] | ||
build-backend = "scikit_build_core.build" | ||
|
||
[project] | ||
name = "hammingdist" | ||
version = "0.20.0" | ||
description = "A fast tool to calculate Hamming distances" | ||
readme = "README.md" | ||
license = {text = "MIT"} | ||
authors=[{name="Liam Keegan", email="[email protected]"}, {name="Dominic Kempf", email="[email protected]"}] | ||
requires-python = ">=3.7" | ||
classifiers=[ | ||
"Topic :: Scientific/Engineering :: Bio-Informatics", | ||
"License :: OSI Approved :: MIT License", | ||
"Intended Audience :: Science/Research", | ||
"Intended Audience :: Education", | ||
"Programming Language :: C++", | ||
"Programming Language :: Python :: 3 :: Only", | ||
"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", | ||
"Programming Language :: Python :: Implementation :: CPython", | ||
"Programming Language :: Python :: Implementation :: PyPy", | ||
"Operating System :: MacOS :: MacOS X", | ||
"Operating System :: Microsoft :: Windows", | ||
"Operating System :: POSIX :: Linux", | ||
] | ||
|
||
[project.urls] | ||
Github = "https://github.com/ssciwr/hammingdist" | ||
Issues = "https://github.com/ssciwr/hammingdist/issues" | ||
|
||
[project.optional-dependencies] | ||
test = ["pytest", "numpy"] | ||
|
||
[tool.scikit-build.cmake.define] | ||
BUILD_TESTING = "OFF" | ||
HAMMING_BUILD_BENCHMARKS = "OFF" | ||
HAMMING_BUILD_PYTHON = "ON" | ||
|
||
[tool.cibuildwheel] | ||
skip = "*-manylinux_i686" | ||
# skip tests for python 3.12 until numpy 1.26 is available | ||
test-skip = "pp* *-musllinux* cp312-*" | ||
test-extras = "test" | ||
test-command = "pytest {project}/python/tests -v" | ||
environment = { BLAS="None", LAPACK="None", ATLAS="None" } | ||
build-verbosity = 3 | ||
|
||
[tool.cibuildwheel.linux] | ||
environment = { CMAKE_ARGS="-DHAMMING_WITH_OPENMP=ON" } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
pybind11_add_module(hammingdist hammingdist.cc) | ||
target_link_libraries(hammingdist PUBLIC hamming) | ||
install(TARGETS hammingdist DESTINATION .) |