pyfusefilter 1.3.0__tar.gz → 1.3.2__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.0 → pyfusefilter-1.3.2}/PKG-INFO +1 -1
  2. {pyfusefilter-1.3.0 → pyfusefilter-1.3.2}/lib/xor_singleheader/include/binaryfusefilter.h +1 -1
  3. {pyfusefilter-1.3.0 → pyfusefilter-1.3.2}/pyfusefilter/pyfusefilter.py +3 -1
  4. {pyfusefilter-1.3.0 → pyfusefilter-1.3.2}/pyfusefilter.egg-info/PKG-INFO +1 -1
  5. {pyfusefilter-1.3.0 → pyfusefilter-1.3.2}/pyproject.toml +3 -19
  6. {pyfusefilter-1.3.0 → pyfusefilter-1.3.2}/setup.py +1 -1
  7. {pyfusefilter-1.3.0 → pyfusefilter-1.3.2}/LICENSE +0 -0
  8. {pyfusefilter-1.3.0 → pyfusefilter-1.3.2}/MANIFEST.in +0 -0
  9. {pyfusefilter-1.3.0 → pyfusefilter-1.3.2}/README.md +0 -0
  10. {pyfusefilter-1.3.0 → pyfusefilter-1.3.2}/lib/xor_singleheader/include/xorfilter.h +0 -0
  11. {pyfusefilter-1.3.0 → pyfusefilter-1.3.2}/pyfusefilter/__init__.py +0 -0
  12. {pyfusefilter-1.3.0 → pyfusefilter-1.3.2}/pyfusefilter/ffibuild.py +0 -0
  13. {pyfusefilter-1.3.0 → pyfusefilter-1.3.2}/pyfusefilter.egg-info/SOURCES.txt +0 -0
  14. {pyfusefilter-1.3.0 → pyfusefilter-1.3.2}/pyfusefilter.egg-info/dependency_links.txt +0 -0
  15. {pyfusefilter-1.3.0 → pyfusefilter-1.3.2}/pyfusefilter.egg-info/requires.txt +0 -0
  16. {pyfusefilter-1.3.0 → pyfusefilter-1.3.2}/pyfusefilter.egg-info/top_level.txt +0 -0
  17. {pyfusefilter-1.3.0 → pyfusefilter-1.3.2}/setup.cfg +0 -0
  18. {pyfusefilter-1.3.0 → pyfusefilter-1.3.2}/tests/__init__.py +0 -0
  19. {pyfusefilter-1.3.0 → pyfusefilter-1.3.2}/tests/test_fuse16.py +0 -0
  20. {pyfusefilter-1.3.0 → pyfusefilter-1.3.2}/tests/test_fuse8.py +0 -0
  21. {pyfusefilter-1.3.0 → pyfusefilter-1.3.2}/tests/test_xor16.py +0 -0
  22. {pyfusefilter-1.3.0 → pyfusefilter-1.3.2}/tests/test_xor8.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pyfusefilter
3
- Version: 1.3.0
3
+ Version: 1.3.2
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
@@ -332,7 +332,7 @@ static inline bool binary_fuse8_populate(uint64_t *keys, uint32_t size,
332
332
  for (uint32_t i = 0; i < block; i++) {
333
333
  // important : i * size would overflow as a 32-bit number in some
334
334
  // cases.
335
- startPos[i] = (uint32_t)((uint64_t)i * size) >> blockBits;
335
+ startPos[i] = (uint32_t)(((uint64_t)i * size) >> blockBits);
336
336
  }
337
337
 
338
338
  uint64_t maskblock = block - 1;
@@ -4,7 +4,9 @@ import xxhash
4
4
  import struct
5
5
 
6
6
  def hash(item):
7
- return xxhash.xxh64_intdigest(str(item))
7
+ # xxhash 4 no longer accepts str; encoding as UTF-8 gives exactly the
8
+ # same hash values that earlier xxhash versions computed for str input.
9
+ return xxhash.xxh64_intdigest(str(item).encode("utf-8"))
8
10
 
9
11
  class Xor8:
10
12
  """
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pyfusefilter
3
- Version: 1.3.0
3
+ Version: 1.3.2
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.0"
6
+ version = "1.3.2"
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"},
@@ -21,29 +21,13 @@ Homepage = "https://github.com/FastFilter/pyfusefilter"
21
21
  requires = ["setuptools", "wheel", "cffi"]
22
22
  build-backend = "setuptools.build_meta"
23
23
 
24
- [tool.cibuildwheel]
25
- environment = { PIP_GLOBAL_OPTION="build_ext", PIP_NO_BUILD_ISOLATION="1" , CIBUILDWHEEL="1" }
26
- build-frontend = "pip"
27
-
28
- [tool.cibuildwheel.linux]
29
- before-all = "yum install -y libffi-devel"
30
-
31
- [tool.cibuildwheel.macos]
32
- before-all = "brew install libffi"
33
-
34
- [[tool.cibuildwheel.overrides]]
35
- select = "*-manylinux2_*"
36
- before-all = "apt-get -y install libffi-dev"
37
-
38
- [[tool.cibuildwheel.overrides]]
39
- select = "*-musllinux*"
40
- before-all = "apk add libffi-dev"
24
+ # cibuildwheel settings live in pyproject-cibuildwheel.toml (see wheels.yml).
41
25
 
42
26
  [tool.pdoc]
43
27
  # pdoc configuration
44
28
  name = "pyfusefilter"
45
29
  description = "Python bindings for C implementation of xor and fuse filters"
46
- version = "1.3.0"
30
+ version = "1.3.2"
47
31
  author = "Amey Narkhede & Daniel Lemire"
48
32
  author_email = "daniel@lemire.me"
49
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.0",
6
+ version="1.3.2",
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",
File without changes
File without changes
File without changes
File without changes