swh.digestmap 0.3.2__tar.gz → 0.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.
- {swh_digestmap-0.3.2 → swh_digestmap-0.3.3}/.copier-answers.yml +1 -1
- {swh_digestmap-0.3.2 → swh_digestmap-0.3.3}/.gitignore +8 -8
- {swh_digestmap-0.3.2 → swh_digestmap-0.3.3}/.pre-commit-config.yaml +5 -5
- {swh_digestmap-0.3.2/swh.digestmap.egg-info → swh_digestmap-0.3.3}/PKG-INFO +1 -1
- {swh_digestmap-0.3.2 → swh_digestmap-0.3.3}/lib/Cargo.toml +2 -2
- swh_digestmap-0.3.3/lib/src/build/mod.rs +123 -0
- swh_digestmap-0.3.2/lib/src/build.rs → swh_digestmap-0.3.3/lib/src/build/orc.rs +4 -104
- {swh_digestmap-0.3.2 → swh_digestmap-0.3.3}/lib/src/lib.rs +1 -2
- {swh_digestmap-0.3.2 → swh_digestmap-0.3.3}/lib/tests/create_from_orc_export.rs +3 -1
- {swh_digestmap-0.3.2 → swh_digestmap-0.3.3/swh.digestmap.egg-info}/PKG-INFO +1 -1
- {swh_digestmap-0.3.2 → swh_digestmap-0.3.3}/swh.digestmap.egg-info/SOURCES.txt +2 -1
- {swh_digestmap-0.3.2 → swh_digestmap-0.3.3}/tox.ini +5 -5
- {swh_digestmap-0.3.2 → swh_digestmap-0.3.3}/.cargo/config.toml +0 -0
- {swh_digestmap-0.3.2 → swh_digestmap-0.3.3}/.copyright-updater.yaml +0 -0
- {swh_digestmap-0.3.2 → swh_digestmap-0.3.3}/AUTHORS +0 -0
- {swh_digestmap-0.3.2 → swh_digestmap-0.3.3}/CODE_OF_CONDUCT.md +0 -0
- {swh_digestmap-0.3.2 → swh_digestmap-0.3.3}/CONTRIBUTORS +0 -0
- {swh_digestmap-0.3.2 → swh_digestmap-0.3.3}/Cargo.lock +0 -0
- {swh_digestmap-0.3.2 → swh_digestmap-0.3.3}/Cargo.toml +0 -0
- {swh_digestmap-0.3.2 → swh_digestmap-0.3.3}/LICENSE +0 -0
- {swh_digestmap-0.3.2 → swh_digestmap-0.3.3}/MANIFEST.in +0 -0
- {swh_digestmap-0.3.2 → swh_digestmap-0.3.3}/Makefile +0 -0
- {swh_digestmap-0.3.2 → swh_digestmap-0.3.3}/README.rst +0 -0
- {swh_digestmap-0.3.2 → swh_digestmap-0.3.3}/docs/.gitignore +0 -0
- {swh_digestmap-0.3.2 → swh_digestmap-0.3.3}/docs/Makefile +0 -0
- {swh_digestmap-0.3.2 → swh_digestmap-0.3.3}/docs/_static/.placeholder +0 -0
- {swh_digestmap-0.3.2 → swh_digestmap-0.3.3}/docs/_templates/.placeholder +0 -0
- {swh_digestmap-0.3.2 → swh_digestmap-0.3.3}/docs/conf.py +0 -0
- {swh_digestmap-0.3.2 → swh_digestmap-0.3.3}/docs/design.rst +0 -0
- {swh_digestmap-0.3.2 → swh_digestmap-0.3.3}/docs/index.rst +0 -0
- {swh_digestmap-0.3.2 → swh_digestmap-0.3.3}/lib/README.md +0 -0
- {swh_digestmap-0.3.2 → swh_digestmap-0.3.3}/lib/src/bin/build.rs +0 -0
- {swh_digestmap-0.3.2 → swh_digestmap-0.3.3}/lib/src/bin/map.rs +0 -0
- {swh_digestmap-0.3.2 → swh_digestmap-0.3.3}/lib/src/table.rs +0 -0
- {swh_digestmap-0.3.2 → swh_digestmap-0.3.3}/lib/tests/create_read.rs +0 -0
- {swh_digestmap-0.3.2 → swh_digestmap-0.3.3}/pyo3/.gitignore +0 -0
- {swh_digestmap-0.3.2 → swh_digestmap-0.3.3}/pyo3/Cargo.toml +0 -0
- {swh_digestmap-0.3.2 → swh_digestmap-0.3.3}/pyo3/install_wheel_build_deps.sh +0 -0
- {swh_digestmap-0.3.2 → swh_digestmap-0.3.3}/pyo3/src/lib.rs +0 -0
- {swh_digestmap-0.3.2 → swh_digestmap-0.3.3}/pyo3/tests/assets/README.md +0 -0
- {swh_digestmap-0.3.2 → swh_digestmap-0.3.3}/pyo3/tests/assets/sha1.bin +0 -0
- {swh_digestmap-0.3.2 → swh_digestmap-0.3.3}/pyo3/tests/assets/sha1_git.bin +0 -0
- {swh_digestmap-0.3.2 → swh_digestmap-0.3.3}/pyo3/tests/assets/sha1_git.vfunc +0 -0
- {swh_digestmap-0.3.2 → swh_digestmap-0.3.3}/pyo3/tests/test_digestmap.py +0 -0
- {swh_digestmap-0.3.2 → swh_digestmap-0.3.3}/pyproject.toml +0 -0
- {swh_digestmap-0.3.2 → swh_digestmap-0.3.3}/requirements-swh.txt +0 -0
- {swh_digestmap-0.3.2 → swh_digestmap-0.3.3}/requirements-test.txt +0 -0
- {swh_digestmap-0.3.2 → swh_digestmap-0.3.3}/requirements.txt +0 -0
- {swh_digestmap-0.3.2 → swh_digestmap-0.3.3}/setup.cfg +0 -0
- {swh_digestmap-0.3.2 → swh_digestmap-0.3.3}/swh/digestmap/__init__.py +0 -0
- {swh_digestmap-0.3.2 → swh_digestmap-0.3.3}/swh/digestmap/__init__.pyi +0 -0
- {swh_digestmap-0.3.2 → swh_digestmap-0.3.3}/swh/digestmap/py.typed +0 -0
- {swh_digestmap-0.3.2 → swh_digestmap-0.3.3}/swh.digestmap.egg-info/dependency_links.txt +0 -0
- {swh_digestmap-0.3.2 → swh_digestmap-0.3.3}/swh.digestmap.egg-info/entry_points.txt +0 -0
- {swh_digestmap-0.3.2 → swh_digestmap-0.3.3}/swh.digestmap.egg-info/requires.txt +0 -0
- {swh_digestmap-0.3.2 → swh_digestmap-0.3.3}/swh.digestmap.egg-info/top_level.txt +0 -0
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
target/
|
|
2
|
-
|
|
3
|
-
wheelhouse
|
|
4
|
-
build/
|
|
5
|
-
dist/
|
|
6
|
-
|
|
1
|
+
/target/
|
|
2
|
+
/.idea
|
|
3
|
+
/wheelhouse
|
|
4
|
+
/build/
|
|
5
|
+
/dist/
|
|
6
|
+
/*.egg-info/
|
|
7
7
|
*.so
|
|
8
8
|
*.pyc
|
|
9
9
|
# this symlink is created by a hook in swh-docs' main sphinx conf.py
|
|
10
|
-
docs/README.rst
|
|
10
|
+
/docs/README.rst
|
|
11
11
|
# and this one by bin/install
|
|
12
|
-
docs/Makefile.sphinx
|
|
12
|
+
/docs/Makefile.sphinx
|
|
@@ -7,12 +7,12 @@ repos:
|
|
|
7
7
|
- id: check-yaml
|
|
8
8
|
|
|
9
9
|
- repo: https://github.com/python/black
|
|
10
|
-
rev:
|
|
10
|
+
rev: 26.5.1
|
|
11
11
|
hooks:
|
|
12
12
|
- id: black
|
|
13
13
|
|
|
14
14
|
- repo: https://github.com/PyCQA/isort
|
|
15
|
-
rev:
|
|
15
|
+
rev: 8.0.1
|
|
16
16
|
hooks:
|
|
17
17
|
- id: isort
|
|
18
18
|
|
|
@@ -20,10 +20,10 @@ repos:
|
|
|
20
20
|
rev: 7.3.0
|
|
21
21
|
hooks:
|
|
22
22
|
- id: flake8
|
|
23
|
-
additional_dependencies: [flake8-bugbear==
|
|
23
|
+
additional_dependencies: [flake8-bugbear==25.11.29, flake8-pyproject]
|
|
24
24
|
|
|
25
25
|
- repo: https://github.com/codespell-project/codespell
|
|
26
|
-
rev: v2.4.
|
|
26
|
+
rev: v2.4.2
|
|
27
27
|
hooks:
|
|
28
28
|
- id: codespell
|
|
29
29
|
name: Check source code spelling
|
|
@@ -38,7 +38,7 @@ repos:
|
|
|
38
38
|
hooks:
|
|
39
39
|
- id: mypy
|
|
40
40
|
name: mypy
|
|
41
|
-
entry: mypy
|
|
41
|
+
entry: env MYPY_NUM_WORKERS=8 mypy
|
|
42
42
|
args: [swh]
|
|
43
43
|
pass_filenames: false
|
|
44
44
|
language: system
|
|
@@ -41,7 +41,7 @@ arrow-array.workspace = true
|
|
|
41
41
|
arrow-schema.workspace = true
|
|
42
42
|
|
|
43
43
|
[features]
|
|
44
|
-
|
|
44
|
+
orc = ["ar_row", "ar_row_derive", "orc-rust"]
|
|
45
45
|
|
|
46
46
|
[package.metadata.docs.rs]
|
|
47
47
|
all-features = true
|
|
@@ -49,7 +49,7 @@ all-features = true
|
|
|
49
49
|
[[bin]]
|
|
50
50
|
name = "swh-digestmap-build"
|
|
51
51
|
path = "src/bin/build.rs"
|
|
52
|
-
required-features = ["
|
|
52
|
+
required-features = ["orc"]
|
|
53
53
|
|
|
54
54
|
[[bin]]
|
|
55
55
|
name = "swh-digestmap-map"
|
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
// Copyright (C) 2025-2026 The Software Heritage developers
|
|
2
|
+
// See the AUTHORS file at the top-level directory of this distribution
|
|
3
|
+
// License: GNU General Public License version 3, or any later version
|
|
4
|
+
// See top-level LICENSE file for more information
|
|
5
|
+
|
|
6
|
+
use std::num::NonZeroUsize;
|
|
7
|
+
use std::path::Path;
|
|
8
|
+
|
|
9
|
+
use anyhow::Result;
|
|
10
|
+
use crossbeam::atomic::AtomicCell;
|
|
11
|
+
use dsi_progress_logger::{concurrent_progress_logger, ProgressLog};
|
|
12
|
+
use rayon::prelude::*;
|
|
13
|
+
use rdst::RadixSort;
|
|
14
|
+
use sux::bits::BitFieldVec;
|
|
15
|
+
use sux::func::{VBuilder, VFunc};
|
|
16
|
+
use sux::prelude::BitFieldSlice;
|
|
17
|
+
use sux::utils::FromIntoIterator;
|
|
18
|
+
|
|
19
|
+
use crate::table::Table;
|
|
20
|
+
use crate::{Sha1, Sha1Git, SHA1_FILENAME, SHA1_GIT_FILENAME};
|
|
21
|
+
|
|
22
|
+
#[cfg(feature = "orc")]
|
|
23
|
+
mod orc;
|
|
24
|
+
#[cfg(feature = "orc")]
|
|
25
|
+
pub use orc::*;
|
|
26
|
+
|
|
27
|
+
pub fn build_sha1_git_table_from_keys(
|
|
28
|
+
mut sha1_gits: Vec<Sha1Git>,
|
|
29
|
+
num_rows: usize,
|
|
30
|
+
tables_dir: &Path,
|
|
31
|
+
parallelism: NonZeroUsize,
|
|
32
|
+
) -> Result<Table<Sha1Git, impl AsRef<[u8]>>> {
|
|
33
|
+
let mut pl = concurrent_progress_logger! {
|
|
34
|
+
item_name="row",
|
|
35
|
+
display_memory=true,
|
|
36
|
+
expected_updates=Some(num_rows),
|
|
37
|
+
};
|
|
38
|
+
|
|
39
|
+
pl.start("Listing keys...");
|
|
40
|
+
|
|
41
|
+
pl.done();
|
|
42
|
+
|
|
43
|
+
log::info!("Sorting keys...");
|
|
44
|
+
sha1_gits.radix_sort_unstable();
|
|
45
|
+
|
|
46
|
+
log::info!("Deduplicating sha1_gits...");
|
|
47
|
+
sha1_gits.dedup();
|
|
48
|
+
let num_duplicates = num_rows - sha1_gits.len();
|
|
49
|
+
if num_duplicates > 0 {
|
|
50
|
+
log::warn!("Removed {num_duplicates} duplicates");
|
|
51
|
+
} else {
|
|
52
|
+
log::info!("No duplicates found");
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
log::info!("Writing sha1_git table...");
|
|
56
|
+
Table::from_array(tables_dir.join(SHA1_GIT_FILENAME), &sha1_gits, parallelism)
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
pub fn build_vfunc(
|
|
60
|
+
keys: &Table<Sha1Git, impl AsRef<[u8]>>,
|
|
61
|
+
) -> Result<VFunc<Sha1Git, usize, BitFieldVec>> {
|
|
62
|
+
let num_keys = keys.len();
|
|
63
|
+
|
|
64
|
+
let mut pl = concurrent_progress_logger! {
|
|
65
|
+
item_name="key",
|
|
66
|
+
display_memory=true,
|
|
67
|
+
expected_updates=Some(num_keys),
|
|
68
|
+
};
|
|
69
|
+
pl.start("Building VFunc...");
|
|
70
|
+
let builder = VBuilder::<_, BitFieldVec<usize>>::default().expected_num_keys(num_keys);
|
|
71
|
+
let func = builder.try_build_func(
|
|
72
|
+
FromIntoIterator::from(keys.into_iter()),
|
|
73
|
+
FromIntoIterator::from(0..num_keys),
|
|
74
|
+
&mut pl,
|
|
75
|
+
)?;
|
|
76
|
+
pl.done();
|
|
77
|
+
|
|
78
|
+
Ok(func)
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
pub fn build_sha1_table_from_pairs<I, D>(
|
|
82
|
+
pairs_iter: I,
|
|
83
|
+
vfunc: &VFunc<Sha1Git, usize, D>,
|
|
84
|
+
num_keys: usize,
|
|
85
|
+
tables_dir: &Path,
|
|
86
|
+
parallelism: NonZeroUsize,
|
|
87
|
+
) -> Result<()>
|
|
88
|
+
where
|
|
89
|
+
I: ParallelIterator<Item = Result<(Sha1Git, Sha1)>>,
|
|
90
|
+
D: BitFieldSlice<usize> + Sync,
|
|
91
|
+
{
|
|
92
|
+
log::info!("Allocating arrays...");
|
|
93
|
+
let sha1s: Vec<_> = (0..num_keys)
|
|
94
|
+
.into_par_iter()
|
|
95
|
+
.map(|_| AtomicCell::default())
|
|
96
|
+
.collect();
|
|
97
|
+
|
|
98
|
+
let mut pl = concurrent_progress_logger!(
|
|
99
|
+
item_name = "row",
|
|
100
|
+
display_memory = true,
|
|
101
|
+
expected_updates = Some(num_keys),
|
|
102
|
+
);
|
|
103
|
+
|
|
104
|
+
pl.start("Building tables...");
|
|
105
|
+
|
|
106
|
+
let res = pairs_iter.try_for_each_with(pl.clone(), |pl, pair| {
|
|
107
|
+
let (sha1_git, sha1) = pair?;
|
|
108
|
+
let index = vfunc.get(sha1_git);
|
|
109
|
+
sha1s[index].store(sha1);
|
|
110
|
+
pl.light_update();
|
|
111
|
+
Ok(())
|
|
112
|
+
});
|
|
113
|
+
|
|
114
|
+
pl.done();
|
|
115
|
+
|
|
116
|
+
// Compiled to no-op
|
|
117
|
+
let sha1s: Vec<_> = sha1s.into_iter().map(AtomicCell::into_inner).collect();
|
|
118
|
+
|
|
119
|
+
log::info!("Writing sha1 table...");
|
|
120
|
+
Table::from_array(tables_dir.join(SHA1_FILENAME), &sha1s, parallelism)?;
|
|
121
|
+
|
|
122
|
+
res
|
|
123
|
+
}
|
|
@@ -10,21 +10,19 @@ use anyhow::{Context, Result};
|
|
|
10
10
|
use ar_row::deserialize::ArRowStruct;
|
|
11
11
|
use ar_row::row_iterator::RowIterator;
|
|
12
12
|
use ar_row_derive::ArRowDeserialize;
|
|
13
|
-
use crossbeam::atomic::AtomicCell;
|
|
14
13
|
use dsi_progress_logger::{concurrent_progress_logger, ProgressLog};
|
|
15
14
|
use epserde::deser::{Deserialize, Flags};
|
|
16
15
|
use epserde::ser::Serialize;
|
|
17
16
|
use orc_rust::projection::ProjectionMask;
|
|
18
17
|
use orc_rust::ArrowReaderBuilder;
|
|
19
18
|
use rayon::prelude::*;
|
|
20
|
-
use
|
|
21
|
-
use sux::bits::BitFieldVec;
|
|
22
|
-
use sux::func::{VBuilder, VFunc};
|
|
19
|
+
use sux::func::VFunc;
|
|
23
20
|
use sux::prelude::BitFieldSlice;
|
|
24
|
-
use sux::utils::FromIntoIterator;
|
|
25
21
|
|
|
26
22
|
use crate::table::Table;
|
|
27
|
-
use crate::{Sha1, Sha1Git,
|
|
23
|
+
use crate::{Sha1, Sha1Git, VFUNC_FILENAME};
|
|
24
|
+
|
|
25
|
+
use super::{build_sha1_git_table_from_keys, build_sha1_table_from_pairs, build_vfunc};
|
|
28
26
|
|
|
29
27
|
pub(crate) fn get_dataset_reader_builders<P: AsRef<Path>>(
|
|
30
28
|
dataset_dir: P,
|
|
@@ -47,38 +45,6 @@ pub(crate) fn get_dataset_reader_builders<P: AsRef<Path>>(
|
|
|
47
45
|
.collect()
|
|
48
46
|
}
|
|
49
47
|
|
|
50
|
-
pub fn build_sha1_git_table_from_keys(
|
|
51
|
-
mut sha1_gits: Vec<Sha1Git>,
|
|
52
|
-
num_rows: usize,
|
|
53
|
-
tables_dir: &Path,
|
|
54
|
-
parallelism: NonZeroUsize,
|
|
55
|
-
) -> Result<Table<Sha1Git, impl AsRef<[u8]>>> {
|
|
56
|
-
let mut pl = concurrent_progress_logger! {
|
|
57
|
-
item_name="row",
|
|
58
|
-
display_memory=true,
|
|
59
|
-
expected_updates=Some(num_rows),
|
|
60
|
-
};
|
|
61
|
-
|
|
62
|
-
pl.start("Listing keys...");
|
|
63
|
-
|
|
64
|
-
pl.done();
|
|
65
|
-
|
|
66
|
-
log::info!("Sorting keys...");
|
|
67
|
-
sha1_gits.radix_sort_unstable();
|
|
68
|
-
|
|
69
|
-
log::info!("Deduplicating sha1_gits...");
|
|
70
|
-
sha1_gits.dedup();
|
|
71
|
-
let num_duplicates = num_rows - sha1_gits.len();
|
|
72
|
-
if num_duplicates > 0 {
|
|
73
|
-
log::warn!("Removed {num_duplicates} duplicates");
|
|
74
|
-
} else {
|
|
75
|
-
log::info!("No duplicates found");
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
log::info!("Writing sha1_git table...");
|
|
79
|
-
Table::from_array(tables_dir.join(SHA1_GIT_FILENAME), &sha1_gits, parallelism)
|
|
80
|
-
}
|
|
81
|
-
|
|
82
48
|
#[deprecated(
|
|
83
49
|
since = "0.1.5",
|
|
84
50
|
note = "please use `build_sha1_git_table_from_orc_export` instead"
|
|
@@ -142,72 +108,6 @@ pub fn build_sha1_git_table_from_orc_export<P: AsRef<Path>>(
|
|
|
142
108
|
build_sha1_git_table_from_keys(sha1_gits, num_rows, tables_dir, parallelism)
|
|
143
109
|
}
|
|
144
110
|
|
|
145
|
-
pub fn build_vfunc(
|
|
146
|
-
keys: &Table<Sha1Git, impl AsRef<[u8]>>,
|
|
147
|
-
) -> Result<VFunc<Sha1Git, usize, BitFieldVec>> {
|
|
148
|
-
let num_keys = keys.len();
|
|
149
|
-
|
|
150
|
-
let mut pl = concurrent_progress_logger! {
|
|
151
|
-
item_name="key",
|
|
152
|
-
display_memory=true,
|
|
153
|
-
expected_updates=Some(num_keys),
|
|
154
|
-
};
|
|
155
|
-
pl.start("Building VFunc...");
|
|
156
|
-
let builder = VBuilder::<_, BitFieldVec<usize>>::default().expected_num_keys(num_keys);
|
|
157
|
-
let func = builder.try_build_func(
|
|
158
|
-
FromIntoIterator::from(keys.into_iter()),
|
|
159
|
-
FromIntoIterator::from(0..num_keys),
|
|
160
|
-
&mut pl,
|
|
161
|
-
)?;
|
|
162
|
-
pl.done();
|
|
163
|
-
|
|
164
|
-
Ok(func)
|
|
165
|
-
}
|
|
166
|
-
|
|
167
|
-
pub fn build_sha1_table_from_pairs<I, D>(
|
|
168
|
-
pairs_iter: I,
|
|
169
|
-
vfunc: &VFunc<Sha1Git, usize, D>,
|
|
170
|
-
num_keys: usize,
|
|
171
|
-
tables_dir: &Path,
|
|
172
|
-
parallelism: NonZeroUsize,
|
|
173
|
-
) -> Result<()>
|
|
174
|
-
where
|
|
175
|
-
I: ParallelIterator<Item = Result<(Sha1Git, Sha1)>>,
|
|
176
|
-
D: BitFieldSlice<usize> + Sync,
|
|
177
|
-
{
|
|
178
|
-
log::info!("Allocating arrays...");
|
|
179
|
-
let sha1s: Vec<_> = (0..num_keys)
|
|
180
|
-
.into_par_iter()
|
|
181
|
-
.map(|_| AtomicCell::default())
|
|
182
|
-
.collect();
|
|
183
|
-
|
|
184
|
-
let mut pl = concurrent_progress_logger!(
|
|
185
|
-
item_name = "row",
|
|
186
|
-
display_memory = true,
|
|
187
|
-
expected_updates = Some(num_keys),
|
|
188
|
-
);
|
|
189
|
-
|
|
190
|
-
pl.start("Building sha1 table...");
|
|
191
|
-
|
|
192
|
-
let res = pairs_iter.try_for_each_with(pl.clone(), |pl, pair| {
|
|
193
|
-
let (sha1_git, sha1) = pair?;
|
|
194
|
-
let index = vfunc.get(sha1_git);
|
|
195
|
-
sha1s[index].store(sha1);
|
|
196
|
-
pl.light_update();
|
|
197
|
-
Ok(())
|
|
198
|
-
});
|
|
199
|
-
|
|
200
|
-
pl.done();
|
|
201
|
-
|
|
202
|
-
// Compiled to no-op
|
|
203
|
-
let sha1s: Vec<_> = sha1s.into_iter().map(AtomicCell::into_inner).collect();
|
|
204
|
-
|
|
205
|
-
log::info!("Writing sha1 table...");
|
|
206
|
-
Table::from_array(tables_dir.join(SHA1_FILENAME), &sha1s, parallelism)?;
|
|
207
|
-
|
|
208
|
-
res
|
|
209
|
-
}
|
|
210
|
-
|
|
211
111
|
fn build_sha1_table_from_orc_export<I, D>(
|
|
212
112
|
reader_builders_iter: I,
|
|
213
113
|
vfunc: &VFunc<Sha1Git, usize, D>,
|
|
@@ -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
|
|
@@ -17,7 +17,6 @@ use mmap_rs::Mmap;
|
|
|
17
17
|
use sux::{bits::BitFieldVec, func::VFunc, utils::sig_store::ToSig};
|
|
18
18
|
use xxhash_rust::xxh3;
|
|
19
19
|
|
|
20
|
-
#[cfg(any(test, feature = "build"))]
|
|
21
20
|
pub mod build;
|
|
22
21
|
|
|
23
22
|
pub mod table;
|
|
@@ -1,8 +1,10 @@
|
|
|
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
|
|
5
5
|
|
|
6
|
+
#![cfg(feature = "orc")]
|
|
7
|
+
|
|
6
8
|
use std::fs::{copy, DirBuilder, File};
|
|
7
9
|
use std::path::Path;
|
|
8
10
|
use tempfile::TempDir;
|
|
@@ -26,11 +26,12 @@ docs/_static/.placeholder
|
|
|
26
26
|
docs/_templates/.placeholder
|
|
27
27
|
lib/Cargo.toml
|
|
28
28
|
lib/README.md
|
|
29
|
-
lib/src/build.rs
|
|
30
29
|
lib/src/lib.rs
|
|
31
30
|
lib/src/table.rs
|
|
32
31
|
lib/src/bin/build.rs
|
|
33
32
|
lib/src/bin/map.rs
|
|
33
|
+
lib/src/build/mod.rs
|
|
34
|
+
lib/src/build/orc.rs
|
|
34
35
|
lib/tests/create_from_orc_export.rs
|
|
35
36
|
lib/tests/create_read.rs
|
|
36
37
|
pyo3/.gitignore
|
|
@@ -24,7 +24,7 @@ commands =
|
|
|
24
24
|
[testenv:black]
|
|
25
25
|
skip_install = true
|
|
26
26
|
deps =
|
|
27
|
-
black==
|
|
27
|
+
black==26.5.1
|
|
28
28
|
commands =
|
|
29
29
|
{envpython} -m black --check pyo3
|
|
30
30
|
|
|
@@ -32,8 +32,8 @@ commands =
|
|
|
32
32
|
skip_install = true
|
|
33
33
|
deps =
|
|
34
34
|
flake8==7.3.0
|
|
35
|
-
flake8-bugbear==
|
|
36
|
-
flake8-pyproject==1.2.
|
|
35
|
+
flake8-bugbear==25.11.29
|
|
36
|
+
flake8-pyproject==1.2.4
|
|
37
37
|
pycodestyle==2.14.0
|
|
38
38
|
|
|
39
39
|
commands =
|
|
@@ -43,9 +43,9 @@ commands =
|
|
|
43
43
|
extras =
|
|
44
44
|
testing
|
|
45
45
|
deps =
|
|
46
|
-
mypy==1.
|
|
46
|
+
mypy==2.1.0
|
|
47
47
|
commands =
|
|
48
|
-
mypy pyo3
|
|
48
|
+
mypy -n8 pyo3
|
|
49
49
|
|
|
50
50
|
# build documentation outside swh-environment using the current
|
|
51
51
|
# git HEAD of swh-docs, is executed on CI for each diff to prevent
|
|
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
|
|
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
|
|
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
|