Skip to content

Commit 414b74e

Browse files
authored
Merge pull request #67 from ashleyabraham/main
Updated to 2.11
2 parents 03a3738 + e420c6a commit 414b74e

File tree

4 files changed

+17
-9
lines changed

4 files changed

+17
-9
lines changed

.github/workflows/build.yml

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
matrix:
1111
# https://github.blog/2019-08-08-github-actions-now-supports-ci-cd/
1212
os: [ubuntu-latest, macos-latest, windows-latest]
13-
python-version: ['3.8', '3.9', '3.10']
13+
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12', '3.13']
1414
# https://stackoverflow.com/questions/57810623/how-to-select-the-c-c-compiler-used-for-a-github-actions-job:
1515
compiler: [gcc, clang, cl]
1616
exclude:
@@ -27,19 +27,27 @@ jobs:
2727
compiler: clang
2828
- os: windows-latest
2929
compiler: gcc
30+
- python-version: 3.8
31+
os: macos-latest
32+
- python-version: 3.9
33+
os: macos-latest
34+
include:
35+
- python-version: 3.8
36+
os: macos-13
37+
- python-version: 3.9
38+
os: macos-13
3039
steps:
3140
- uses: actions/checkout@v4
3241
- name: Set up Python ${{ matrix.python-version }}
33-
uses: actions/setup-python@v4
42+
uses: actions/setup-python@v5
3443
with:
3544
python-version: ${{ matrix.python-version }}
36-
architecture: x64
3745
- name: Print machine info
3846
run: |
3947
uname -a
4048
- name: Install dependencies
4149
run: |
42-
python -m pip install --upgrade pip
50+
python -m pip install --upgrade pip setuptools wheel
4351
pip install -r requirements.txt
4452
- uses: ilammy/msvc-dev-cmd@v1
4553
- name: Install Rii
@@ -51,4 +59,4 @@ jobs:
5159
run: |
5260
make test
5361
54-
62+

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
.PHONY: test clean build
22

33
test:
4-
python setup.py test
4+
python -m unittest
55

66
clean:
77
rm -rf build tmp dist *.egg-info *.so .eggs

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
[build-system]
2-
requires = ["setuptools>=64", "pybind11>=2.9"]
3-
build-backend = "setuptools.build_meta"
2+
requires = ["setuptools>=64", "pybind11>=2.9", "wheel"]
3+
build-backend = "setuptools.build_meta"

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ def build_extensions(self):
8888
# For linux
8989
opts.append('-fopenmp') # For pqk-means.
9090

91-
if sys.platform not in ['win32']:
91+
if sys.platform not in ['darwin', 'win32']:
9292
# For linux and mac
9393
opts.append('-march=native') # For fast SIMD computation of L2 distance
9494
opts.append('-mtune=native') # Do optimization (It seems this doesn't boost, but just in case)

0 commit comments

Comments
 (0)