pyfusefilter 1.3.2__tar.gz → 1.3.3__tar.gz
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.
- {pyfusefilter-1.3.2 → pyfusefilter-1.3.3}/PKG-INFO +1 -1
- {pyfusefilter-1.3.2 → pyfusefilter-1.3.3}/pyfusefilter/ffibuild.py +6 -0
- {pyfusefilter-1.3.2 → pyfusefilter-1.3.3}/pyfusefilter.egg-info/PKG-INFO +1 -1
- {pyfusefilter-1.3.2 → pyfusefilter-1.3.3}/pyproject.toml +2 -2
- {pyfusefilter-1.3.2 → pyfusefilter-1.3.3}/setup.py +1 -1
- {pyfusefilter-1.3.2 → pyfusefilter-1.3.3}/tests/test_fuse16.py +5 -2
- {pyfusefilter-1.3.2 → pyfusefilter-1.3.3}/tests/test_fuse8.py +5 -2
- {pyfusefilter-1.3.2 → pyfusefilter-1.3.3}/LICENSE +0 -0
- {pyfusefilter-1.3.2 → pyfusefilter-1.3.3}/MANIFEST.in +0 -0
- {pyfusefilter-1.3.2 → pyfusefilter-1.3.3}/README.md +0 -0
- {pyfusefilter-1.3.2 → pyfusefilter-1.3.3}/lib/xor_singleheader/include/binaryfusefilter.h +0 -0
- {pyfusefilter-1.3.2 → pyfusefilter-1.3.3}/lib/xor_singleheader/include/xorfilter.h +0 -0
- {pyfusefilter-1.3.2 → pyfusefilter-1.3.3}/pyfusefilter/__init__.py +0 -0
- {pyfusefilter-1.3.2 → pyfusefilter-1.3.3}/pyfusefilter/pyfusefilter.py +0 -0
- {pyfusefilter-1.3.2 → pyfusefilter-1.3.3}/pyfusefilter.egg-info/SOURCES.txt +0 -0
- {pyfusefilter-1.3.2 → pyfusefilter-1.3.3}/pyfusefilter.egg-info/dependency_links.txt +0 -0
- {pyfusefilter-1.3.2 → pyfusefilter-1.3.3}/pyfusefilter.egg-info/requires.txt +0 -0
- {pyfusefilter-1.3.2 → pyfusefilter-1.3.3}/pyfusefilter.egg-info/top_level.txt +0 -0
- {pyfusefilter-1.3.2 → pyfusefilter-1.3.3}/setup.cfg +0 -0
- {pyfusefilter-1.3.2 → pyfusefilter-1.3.3}/tests/__init__.py +0 -0
- {pyfusefilter-1.3.2 → pyfusefilter-1.3.3}/tests/test_xor16.py +0 -0
- {pyfusefilter-1.3.2 → pyfusefilter-1.3.3}/tests/test_xor8.py +0 -0
|
@@ -14,8 +14,14 @@ with open("lib/xor_singleheader/include/binaryfusefilter.h", "r", encoding='utf-
|
|
|
14
14
|
all_src += src.read()
|
|
15
15
|
|
|
16
16
|
|
|
17
|
+
# Under Pyodide (WebAssembly), a wheel is tied to one Pyodide version anyway,
|
|
18
|
+
# so the limited API (abi3) gains nothing; and Pyodide 315 names abi3
|
|
19
|
+
# extensions with quotes (_xorfilter.abi3-"wasm32-emscripten".so), which
|
|
20
|
+
# Python then cannot import.
|
|
21
|
+
import sysconfig
|
|
17
22
|
ffi.set_source(
|
|
18
23
|
"_xorfilter", all_src,
|
|
24
|
+
py_limited_api=not sysconfig.get_platform().startswith("emscripten"),
|
|
19
25
|
)
|
|
20
26
|
|
|
21
27
|
ffi.cdef(
|
|
@@ -3,7 +3,7 @@ py-modules = []
|
|
|
3
3
|
# cffi-modules handled in setup.py
|
|
4
4
|
[project]
|
|
5
5
|
name = "pyfusefilter"
|
|
6
|
-
version = "1.3.
|
|
6
|
+
version = "1.3.3"
|
|
7
7
|
description = "Python bindings for C implementation of xor and fuse filters"
|
|
8
8
|
authors = [
|
|
9
9
|
{name = "Amey Narkhede", email = "ameynarkhede02@gmail.com"},
|
|
@@ -27,7 +27,7 @@ build-backend = "setuptools.build_meta"
|
|
|
27
27
|
# pdoc configuration
|
|
28
28
|
name = "pyfusefilter"
|
|
29
29
|
description = "Python bindings for C implementation of xor and fuse filters"
|
|
30
|
-
version = "1.3.
|
|
30
|
+
version = "1.3.3"
|
|
31
31
|
author = "Amey Narkhede & Daniel Lemire"
|
|
32
32
|
author_email = "daniel@lemire.me"
|
|
33
33
|
url = "https://github.com/FastFilter/pyfusefilter"
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
from pyfusefilter import Fuse16
|
|
2
|
-
from random import
|
|
2
|
+
from random import randrange
|
|
3
3
|
import tempfile, os
|
|
4
4
|
|
|
5
5
|
|
|
@@ -66,7 +66,10 @@ def test_fuse16_few_segments():
|
|
|
66
66
|
# https://github.com/FastFilter/xor_singleheader/issues/77
|
|
67
67
|
for size in (3551, 11504, 11521, 12372, 13224, 37454):
|
|
68
68
|
for _ in range(5):
|
|
69
|
-
keys =
|
|
69
|
+
keys = set()
|
|
70
|
+
while len(keys) < size:
|
|
71
|
+
keys.add(randrange(1 << 62))
|
|
72
|
+
keys = list(keys)
|
|
70
73
|
filter = Fuse16(keys)
|
|
71
74
|
for key in keys:
|
|
72
75
|
assert key in filter
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
from pyfusefilter import Fuse8
|
|
2
|
-
from random import
|
|
2
|
+
from random import randrange
|
|
3
3
|
import tempfile, os
|
|
4
4
|
|
|
5
5
|
def test_readme():
|
|
@@ -65,7 +65,10 @@ def test_fuse8_few_segments():
|
|
|
65
65
|
# https://github.com/FastFilter/xor_singleheader/issues/77
|
|
66
66
|
for size in (3551, 11504, 11521, 12372, 13224, 37454):
|
|
67
67
|
for _ in range(5):
|
|
68
|
-
keys =
|
|
68
|
+
keys = set()
|
|
69
|
+
while len(keys) < size:
|
|
70
|
+
keys.add(randrange(1 << 62))
|
|
71
|
+
keys = list(keys)
|
|
69
72
|
filter = Fuse8(keys)
|
|
70
73
|
for key in keys:
|
|
71
74
|
assert key in filter
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|