swh.digestmap 0.3.0__tar.gz → 0.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 (55) hide show
  1. {swh_digestmap-0.3.0 → swh_digestmap-0.3.2}/.gitignore +2 -0
  2. swh_digestmap-0.3.2/MANIFEST.in +3 -0
  3. {swh_digestmap-0.3.0/swh.digestmap.egg-info → swh_digestmap-0.3.2}/PKG-INFO +2 -1
  4. {swh_digestmap-0.3.0 → swh_digestmap-0.3.2}/docs/Makefile +0 -1
  5. {swh_digestmap-0.3.0 → swh_digestmap-0.3.2}/docs/index.rst +10 -0
  6. {swh_digestmap-0.3.0 → swh_digestmap-0.3.2}/lib/README.md +1 -1
  7. {swh_digestmap-0.3.0 → swh_digestmap-0.3.2}/pyproject.toml +1 -0
  8. swh_digestmap-0.3.0/swh/digestmap.pyi → swh_digestmap-0.3.2/swh/digestmap/__init__.pyi +4 -1
  9. {swh_digestmap-0.3.0 → swh_digestmap-0.3.2/swh.digestmap.egg-info}/PKG-INFO +2 -1
  10. {swh_digestmap-0.3.0 → swh_digestmap-0.3.2}/swh.digestmap.egg-info/SOURCES.txt +4 -3
  11. {swh_digestmap-0.3.0 → swh_digestmap-0.3.2}/.cargo/config.toml +0 -0
  12. {swh_digestmap-0.3.0 → swh_digestmap-0.3.2}/.copier-answers.yml +0 -0
  13. {swh_digestmap-0.3.0 → swh_digestmap-0.3.2}/.copyright-updater.yaml +0 -0
  14. {swh_digestmap-0.3.0 → swh_digestmap-0.3.2}/.pre-commit-config.yaml +0 -0
  15. {swh_digestmap-0.3.0 → swh_digestmap-0.3.2}/AUTHORS +0 -0
  16. {swh_digestmap-0.3.0 → swh_digestmap-0.3.2}/CODE_OF_CONDUCT.md +0 -0
  17. {swh_digestmap-0.3.0 → swh_digestmap-0.3.2}/CONTRIBUTORS +0 -0
  18. {swh_digestmap-0.3.0 → swh_digestmap-0.3.2}/Cargo.lock +0 -0
  19. {swh_digestmap-0.3.0 → swh_digestmap-0.3.2}/Cargo.toml +0 -0
  20. {swh_digestmap-0.3.0 → swh_digestmap-0.3.2}/LICENSE +0 -0
  21. {swh_digestmap-0.3.0 → swh_digestmap-0.3.2}/Makefile +0 -0
  22. {swh_digestmap-0.3.0 → swh_digestmap-0.3.2}/README.rst +0 -0
  23. {swh_digestmap-0.3.0 → swh_digestmap-0.3.2}/docs/.gitignore +0 -0
  24. {swh_digestmap-0.3.0 → swh_digestmap-0.3.2}/docs/_static/.placeholder +0 -0
  25. {swh_digestmap-0.3.0 → swh_digestmap-0.3.2}/docs/_templates/.placeholder +0 -0
  26. {swh_digestmap-0.3.0 → swh_digestmap-0.3.2}/docs/conf.py +0 -0
  27. {swh_digestmap-0.3.0 → swh_digestmap-0.3.2}/docs/design.rst +0 -0
  28. {swh_digestmap-0.3.0 → swh_digestmap-0.3.2}/lib/Cargo.toml +0 -0
  29. {swh_digestmap-0.3.0 → swh_digestmap-0.3.2}/lib/src/bin/build.rs +0 -0
  30. {swh_digestmap-0.3.0 → swh_digestmap-0.3.2}/lib/src/bin/map.rs +0 -0
  31. {swh_digestmap-0.3.0 → swh_digestmap-0.3.2}/lib/src/build.rs +0 -0
  32. {swh_digestmap-0.3.0 → swh_digestmap-0.3.2}/lib/src/lib.rs +0 -0
  33. {swh_digestmap-0.3.0 → swh_digestmap-0.3.2}/lib/src/table.rs +0 -0
  34. {swh_digestmap-0.3.0 → swh_digestmap-0.3.2}/lib/tests/create_from_orc_export.rs +0 -0
  35. {swh_digestmap-0.3.0 → swh_digestmap-0.3.2}/lib/tests/create_read.rs +0 -0
  36. {swh_digestmap-0.3.0 → swh_digestmap-0.3.2}/pyo3/.gitignore +0 -0
  37. {swh_digestmap-0.3.0 → swh_digestmap-0.3.2}/pyo3/Cargo.toml +0 -0
  38. {swh_digestmap-0.3.0 → swh_digestmap-0.3.2}/pyo3/install_wheel_build_deps.sh +0 -0
  39. {swh_digestmap-0.3.0 → swh_digestmap-0.3.2}/pyo3/src/lib.rs +0 -0
  40. {swh_digestmap-0.3.0 → swh_digestmap-0.3.2}/pyo3/tests/assets/README.md +0 -0
  41. {swh_digestmap-0.3.0 → swh_digestmap-0.3.2}/pyo3/tests/assets/sha1.bin +0 -0
  42. {swh_digestmap-0.3.0 → swh_digestmap-0.3.2}/pyo3/tests/assets/sha1_git.bin +0 -0
  43. {swh_digestmap-0.3.0 → swh_digestmap-0.3.2}/pyo3/tests/assets/sha1_git.vfunc +0 -0
  44. {swh_digestmap-0.3.0 → swh_digestmap-0.3.2}/pyo3/tests/test_digestmap.py +0 -0
  45. {swh_digestmap-0.3.0 → swh_digestmap-0.3.2}/requirements-swh.txt +0 -0
  46. {swh_digestmap-0.3.0 → swh_digestmap-0.3.2}/requirements-test.txt +0 -0
  47. {swh_digestmap-0.3.0 → swh_digestmap-0.3.2}/requirements.txt +0 -0
  48. {swh_digestmap-0.3.0 → swh_digestmap-0.3.2}/setup.cfg +0 -0
  49. {swh_digestmap-0.3.0 → swh_digestmap-0.3.2}/swh/digestmap/__init__.py +0 -0
  50. {swh_digestmap-0.3.0/swh → swh_digestmap-0.3.2/swh/digestmap}/py.typed +0 -0
  51. {swh_digestmap-0.3.0 → swh_digestmap-0.3.2}/swh.digestmap.egg-info/dependency_links.txt +0 -0
  52. {swh_digestmap-0.3.0 → swh_digestmap-0.3.2}/swh.digestmap.egg-info/entry_points.txt +0 -0
  53. {swh_digestmap-0.3.0 → swh_digestmap-0.3.2}/swh.digestmap.egg-info/requires.txt +0 -0
  54. {swh_digestmap-0.3.0 → swh_digestmap-0.3.2}/swh.digestmap.egg-info/top_level.txt +0 -0
  55. {swh_digestmap-0.3.0 → swh_digestmap-0.3.2}/tox.ini +0 -0
@@ -8,3 +8,5 @@ dist/
8
8
  *.pyc
9
9
  # this symlink is created by a hook in swh-docs' main sphinx conf.py
10
10
  docs/README.rst
11
+ # and this one by bin/install
12
+ docs/Makefile.sphinx
@@ -0,0 +1,3 @@
1
+ graft swh
2
+ global-exclude */__pycache__/*
3
+ global-exclude *.pyc
@@ -1,6 +1,7 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: swh.digestmap
3
- Version: 0.3.0
3
+ Version: 0.3.2
4
+ Summary: A map of Software Heritage content hashes (SWHID) from SWHIDs to SHA1
4
5
  Author-email: Software Heritage developers <swh-devel@inria.fr>
5
6
  License-Expression: GPL-3.0
6
7
  Project-URL: Homepage, https://softwareheritage.org/
@@ -1,4 +1,3 @@
1
- SKIP_APIDOC = yes
2
1
  apidoc_dep = ../README.rst
3
2
 
4
3
  include Makefile.sphinx
@@ -93,3 +93,13 @@ We test via ``pytest`` because the ``DigestMap`` binding needs a Python able to
93
93
  ``swh.model.model``.
94
94
 
95
95
  Package with ``cibuildwheel .`` from the repository's root.
96
+
97
+
98
+ .. only:: standalone_package_doc
99
+
100
+ Indices and tables
101
+ ------------------
102
+
103
+ * :ref:`genindex`
104
+ * :ref:`modindex`
105
+ * :ref:`search`
@@ -28,7 +28,7 @@ and 1TB to work fully in-memory.
28
28
 
29
29
  Default installation with `cargo install swh-digestmap` will build and install the `swh-digestmap-map` binary,
30
30
  which is capable of looking up mapping from an already built map.
31
- To be able to *build* maps yourself, install with `cargo install swh-digestmap --features=build`,
31
+ To be able to *build* maps yourself, install with `cargo install swh-digestmap --all-features`,
32
32
  which will also build and install the `swh-digestmap-build` binary.
33
33
 
34
34
 
@@ -1,6 +1,7 @@
1
1
  [project]
2
2
  name = "swh.digestmap"
3
3
  requires-python = ">=3.9"
4
+ description = "A map of Software Heritage content hashes (SWHID) from SWHIDs to SHA1"
4
5
  readme = {file = "README.rst", content-type = "text/x-rst"}
5
6
  license = "GPL-3.0"
6
7
  authors = [
@@ -1,4 +1,4 @@
1
- # Copyright (C) 2025 The Software Heritage developers
1
+ # Copyright (C) 2025-2026 The Software Heritage developers
2
2
  # See the AUTHORS file at the top-level directory of this distribution
3
3
  # License: GNU General Public License version 3, or any later version
4
4
  # See top-level LICENSE file for more information
@@ -6,11 +6,14 @@
6
6
  from pathlib import Path
7
7
  from typing import List, Optional
8
8
 
9
+ import pyarrow as pa
10
+
9
11
  from swh.model.model import Content
10
12
 
11
13
  class DigestMap:
12
14
  def __init__(self, path: Path): ...
13
15
  def sha1_from_swhid(self, swhid: str) -> bytes: ...
16
+ def sha1_from_swhid_arrow(self, swhids: pa.Array) -> pa.Array: ...
14
17
  def content_get(
15
18
  self, sha1_gits: List[bytes], algo: str
16
19
  ) -> List[Optional[Content]]: ...
@@ -1,6 +1,7 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: swh.digestmap
3
- Version: 0.3.0
3
+ Version: 0.3.2
4
+ Summary: A map of Software Heritage content hashes (SWHID) from SWHIDs to SHA1
4
5
  Author-email: Software Heritage developers <swh-devel@inria.fr>
5
6
  License-Expression: GPL-3.0
6
7
  Project-URL: Homepage, https://softwareheritage.org/
@@ -8,6 +8,7 @@ CONTRIBUTORS
8
8
  Cargo.lock
9
9
  Cargo.toml
10
10
  LICENSE
11
+ MANIFEST.in
11
12
  Makefile
12
13
  README.rst
13
14
  pyproject.toml
@@ -41,12 +42,12 @@ pyo3/tests/assets/README.md
41
42
  pyo3/tests/assets/sha1.bin
42
43
  pyo3/tests/assets/sha1_git.bin
43
44
  pyo3/tests/assets/sha1_git.vfunc
44
- swh/digestmap.pyi
45
- swh/py.typed
46
45
  swh.digestmap.egg-info/PKG-INFO
47
46
  swh.digestmap.egg-info/SOURCES.txt
48
47
  swh.digestmap.egg-info/dependency_links.txt
49
48
  swh.digestmap.egg-info/entry_points.txt
50
49
  swh.digestmap.egg-info/requires.txt
51
50
  swh.digestmap.egg-info/top_level.txt
52
- swh/digestmap/__init__.py
51
+ swh/digestmap/__init__.py
52
+ swh/digestmap/__init__.pyi
53
+ swh/digestmap/py.typed
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes