Skip to content

Commit 8168bf7

Browse files
committed
Modernify build stack- introduce pyproject toml and remove several cfg files
1 parent f2af245 commit 8168bf7

File tree

13 files changed

+3953
-2589
lines changed

13 files changed

+3953
-2589
lines changed

.bumpversion.cfg

Lines changed: 0 additions & 8 deletions
This file was deleted.

.github/workflows/build_wheels.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@ jobs:
2121
- name: Build wheels
2222
uses: pypa/cibuildwheel@v2.23.3
2323
env:
24-
CIBW_BEFORE_BUILD: pip install "cython>=0.29"
24+
CIBW_TEST_COMMAND: "pytest tests/"
25+
CIBW_TEST_REQUIRES: pytest
2526
CIBW_SKIP: cp36-* cp37-* cp313-* pp* *-musllinux* *-manylinux_i686
2627

2728
- uses: actions/upload-artifact@v4

.github/workflows/docs_deploy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
runs-on: ubuntu-latest
1414
steps:
1515
- name: Checkout 🛎️
16-
uses: actions/checkout@v3
16+
uses: actions/checkout@v4
1717

1818
- name: Install mkdocs dependencies and Build 🔧
1919
run: |

.github/workflows/test.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,18 +7,17 @@ jobs:
77
strategy:
88
matrix:
99
os: [ubuntu-latest, macos-latest, windows-latest]
10-
python-version: ["3.8", "3.9", "3.10"]
10+
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
1111

1212
steps:
13-
- uses: actions/checkout@v3
13+
- uses: actions/checkout@v4
1414
- name: Set up Python ${{ matrix.python-version }}
15-
uses: actions/setup-python@v4
15+
uses: actions/setup-python@v5
1616
with:
1717
python-version: ${{ matrix.python-version }}
1818
- name: Install dependencies
1919
run: |
2020
python -m pip install --upgrade pip
21-
pip install "cython>=0.29"
2221
pip install -e ".[tests, docs]"
2322
- name: Test with pytest
2423
run: |

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -251,3 +251,5 @@ mkdocs/docs/index.md
251251

252252
# ignore cpp files from cython setup
253253
*.cpp
254+
255+
uv.lock

MANIFEST.in

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,5 @@ include imagededup/handlers/search/builtin/builtin.h
22
include imagededup/handlers/search/builtin/README.md
33
include imagededup/handlers/search/brute_force_cython_ext.pyx
44
include LICENSE
5-
include requirements.txt
5+
include requirements.txt
6+
include pyproject.toml

README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,7 @@ pip install imagededup
5858
```bash
5959
git clone https://github.com/idealo/imagededup.git
6060
cd imagededup
61-
pip install "cython>=0.29"
62-
python setup.py install
61+
pip install .
6362
```
6463

6564
## 🚀 Quick Start

0 commit comments

Comments
 (0)