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.
Files changed (22) hide show
  1. {pyfusefilter-1.3.2 → pyfusefilter-1.3.3}/PKG-INFO +1 -1
  2. {pyfusefilter-1.3.2 → pyfusefilter-1.3.3}/pyfusefilter/ffibuild.py +6 -0
  3. {pyfusefilter-1.3.2 → pyfusefilter-1.3.3}/pyfusefilter.egg-info/PKG-INFO +1 -1
  4. {pyfusefilter-1.3.2 → pyfusefilter-1.3.3}/pyproject.toml +2 -2
  5. {pyfusefilter-1.3.2 → pyfusefilter-1.3.3}/setup.py +1 -1
  6. {pyfusefilter-1.3.2 → pyfusefilter-1.3.3}/tests/test_fuse16.py +5 -2
  7. {pyfusefilter-1.3.2 → pyfusefilter-1.3.3}/tests/test_fuse8.py +5 -2
  8. {pyfusefilter-1.3.2 → pyfusefilter-1.3.3}/LICENSE +0 -0
  9. {pyfusefilter-1.3.2 → pyfusefilter-1.3.3}/MANIFEST.in +0 -0
  10. {pyfusefilter-1.3.2 → pyfusefilter-1.3.3}/README.md +0 -0
  11. {pyfusefilter-1.3.2 → pyfusefilter-1.3.3}/lib/xor_singleheader/include/binaryfusefilter.h +0 -0
  12. {pyfusefilter-1.3.2 → pyfusefilter-1.3.3}/lib/xor_singleheader/include/xorfilter.h +0 -0
  13. {pyfusefilter-1.3.2 → pyfusefilter-1.3.3}/pyfusefilter/__init__.py +0 -0
  14. {pyfusefilter-1.3.2 → pyfusefilter-1.3.3}/pyfusefilter/pyfusefilter.py +0 -0
  15. {pyfusefilter-1.3.2 → pyfusefilter-1.3.3}/pyfusefilter.egg-info/SOURCES.txt +0 -0
  16. {pyfusefilter-1.3.2 → pyfusefilter-1.3.3}/pyfusefilter.egg-info/dependency_links.txt +0 -0
  17. {pyfusefilter-1.3.2 → pyfusefilter-1.3.3}/pyfusefilter.egg-info/requires.txt +0 -0
  18. {pyfusefilter-1.3.2 → pyfusefilter-1.3.3}/pyfusefilter.egg-info/top_level.txt +0 -0
  19. {pyfusefilter-1.3.2 → pyfusefilter-1.3.3}/setup.cfg +0 -0
  20. {pyfusefilter-1.3.2 → pyfusefilter-1.3.3}/tests/__init__.py +0 -0
  21. {pyfusefilter-1.3.2 → pyfusefilter-1.3.3}/tests/test_xor16.py +0 -0
  22. {pyfusefilter-1.3.2 → pyfusefilter-1.3.3}/tests/test_xor8.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pyfusefilter
3
- Version: 1.3.2
3
+ Version: 1.3.3
4
4
  Summary: Python bindings for C implementation of xor and fuse filters
5
5
  Home-page: https://github.com/FastFilter/pyfusefilter
6
6
  Author: Amey Narkhede & Daniel Lemire
@@ -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(
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pyfusefilter
3
- Version: 1.3.2
3
+ Version: 1.3.3
4
4
  Summary: Python bindings for C implementation of xor and fuse filters
5
5
  Home-page: https://github.com/FastFilter/pyfusefilter
6
6
  Author: Amey Narkhede & Daniel Lemire
@@ -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.2"
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.2"
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"
@@ -3,7 +3,7 @@ import os
3
3
 
4
4
  setup(
5
5
  name="pyfusefilter",
6
- version="1.3.2",
6
+ version="1.3.3",
7
7
  description="Python bindings for C implementation of xorfilter",
8
8
  long_description=open("README.md", "r", encoding='utf-8').read(),
9
9
  long_description_content_type="text/markdown",
@@ -1,5 +1,5 @@
1
1
  from pyfusefilter import Fuse16
2
- from random import sample
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 = sample(range(1 << 62), size)
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 sample
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 = sample(range(1 << 62), size)
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