usearch 0.18.1 → 0.18.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -125,8 +125,6 @@ jobs:
125
125
 
126
126
  - name: Build wheels
127
127
  run: python -m cibuildwheel
128
- env:
129
- CIBW_SKIP: cp36-*
130
128
 
131
129
  - uses: actions/upload-artifact@v3
132
130
  with:
package/Cargo.toml CHANGED
@@ -1,6 +1,6 @@
1
1
  [package]
2
2
  name = "usearch"
3
- version = "0.18.1"
3
+ version = "0.18.2"
4
4
  authors = ["Ashot Vardanian <1983160+ashvardanian@users.noreply.github.com>"]
5
5
  description = "Smaller & Faster Single-File Vector Search Engine from Unum"
6
6
  edition = "2021"
package/conanfile.py CHANGED
@@ -4,7 +4,7 @@ from conans import ConanFile
4
4
  class USearchConan(ConanFile):
5
5
 
6
6
  name = 'USearch'
7
- version = '0.18.1'
7
+ version = '0.18.2'
8
8
  license = 'Apache 2.0'
9
9
  url = 'https://github.com/unum-cloud/usearch'
10
10
  description = 'Smaller & Faster Single-File Vector Search Engine from Unum'
@@ -80,6 +80,13 @@ pip install ruff
80
80
  ruff --format=github --select=E9,F63,F7,F82 --target-version=py37 python
81
81
  ```
82
82
 
83
+ Testing wheel builds locally:
84
+
85
+ ```sh
86
+ pip install cibuildwheel
87
+ cibuildwheel --platform linux
88
+ ```
89
+
83
90
  Benchmarking:
84
91
 
85
92
  ```sh
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "usearch",
3
- "version": "0.18.1",
3
+ "version": "0.18.2",
4
4
  "description": "Smaller & Faster Single-File Vector Search Engine from Unum",
5
5
  "author": "Ashot Vardanian",
6
6
  "license": "Apache 2.0",
package/pyproject.toml CHANGED
@@ -12,7 +12,7 @@ filterwarnings = ["error"]
12
12
  test-requires = ["pytest", "numpy"]
13
13
  test-command = "pytest {project}/python/scripts/test.py"
14
14
  build-verbosity = 0
15
- skip = ["*musllinux*", "*i686*", "pp*"]
15
+ skip = ["*musllinux*", "*i686*", "pp*", "cp36-*"]
16
16
 
17
17
  [tool.cibuildwheel.linux]
18
18
  before-build = [
@@ -46,4 +46,4 @@ before-build = [
46
46
  "git submodule update --init --recursive"
47
47
  ]
48
48
  archs = ["x86", "AMD64"]
49
- skip = ["*win32*", "pp*"]
49
+ skip = ["*win32*", "pp*", "cp36-*"]
@@ -172,16 +172,6 @@ def test_index_numba(ndim: int, batch_size: int):
172
172
  assert recall_members(index, exact=True) == 1
173
173
 
174
174
 
175
- @pytest.mark.parametrize('connectivity', connectivity_options)
176
- def test_sets_index(connectivity: int):
177
-
178
- index = SparseIndex(connectivity=connectivity)
179
- index.add(10, np.array([10, 12, 15], dtype=np.uint32))
180
- index.add(11, np.array([11, 12, 15, 16], dtype=np.uint32))
181
- results = index.search(np.array([12, 15], dtype=np.uint32), 10)
182
- assert list(results) == [10, 11]
183
-
184
-
185
175
  @pytest.mark.parametrize('bits', dimensions)
186
176
  @pytest.mark.parametrize('metric', hash_metrics)
187
177
  @pytest.mark.parametrize('connectivity', connectivity_options)
@@ -196,3 +186,14 @@ def test_bitwise_index(bits: int, metric: MetricKind, connectivity: int, batch_s
196
186
 
197
187
  index.add(labels, bit_vectors)
198
188
  index.search(bit_vectors, 10)
189
+
190
+
191
+ @pytest.mark.parametrize('connectivity', connectivity_options)
192
+ @pytest.mark.skipif(os.name == 'nt', reason='Spurious behaviour on windows')
193
+ def test_sets_index(connectivity: int):
194
+
195
+ index = SparseIndex(connectivity=connectivity)
196
+ index.add(10, np.array([10, 12, 15], dtype=np.uint32))
197
+ index.add(11, np.array([11, 12, 15, 16], dtype=np.uint32))
198
+ results = index.search(np.array([12, 15], dtype=np.uint32), 10)
199
+ assert list(results) == [10, 11]