swh.graph.libs 9.0.0__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_graph_libs-9.0.0/.cargo/config.toml +2 -0
- swh_graph_libs-9.0.0/.copier-answers.yml +11 -0
- swh_graph_libs-9.0.0/.git-blame-ignore-revs +5 -0
- swh_graph_libs-9.0.0/.gitignore +21 -0
- swh_graph_libs-9.0.0/.mailmap +3 -0
- swh_graph_libs-9.0.0/.pre-commit-config.yaml +68 -0
- swh_graph_libs-9.0.0/AUTHORS +3 -0
- swh_graph_libs-9.0.0/CODE_OF_CONDUCT.md +78 -0
- swh_graph_libs-9.0.0/CONTRIBUTORS +7 -0
- swh_graph_libs-9.0.0/Cargo.lock +4131 -0
- swh_graph_libs-9.0.0/Cargo.toml +35 -0
- swh_graph_libs-9.0.0/LICENSE +674 -0
- swh_graph_libs-9.0.0/Makefile +5 -0
- swh_graph_libs-9.0.0/PKG-INFO +76 -0
- swh_graph_libs-9.0.0/README.rst +36 -0
- swh_graph_libs-9.0.0/docs/.gitignore +3 -0
- swh_graph_libs-9.0.0/docs/Makefile +1 -0
- swh_graph_libs-9.0.0/docs/_static/.placeholder +0 -0
- swh_graph_libs-9.0.0/docs/_templates/.placeholder +0 -0
- swh_graph_libs-9.0.0/docs/conf.py +1 -0
- swh_graph_libs-9.0.0/docs/index.rst +16 -0
- swh_graph_libs-9.0.0/pyproject.toml +103 -0
- swh_graph_libs-9.0.0/requirements-luigi.txt +3 -0
- swh_graph_libs-9.0.0/requirements-swh-luigi.txt +2 -0
- swh_graph_libs-9.0.0/requirements-swh.txt +1 -0
- swh_graph_libs-9.0.0/requirements-test.txt +5 -0
- swh_graph_libs-9.0.0/requirements.txt +0 -0
- swh_graph_libs-9.0.0/setup.cfg +4 -0
- swh_graph_libs-9.0.0/stdlib/Cargo.toml +22 -0
- swh_graph_libs-9.0.0/stdlib/src/collections/mod.rs +15 -0
- swh_graph_libs-9.0.0/stdlib/src/collections/node_set.rs +221 -0
- swh_graph_libs-9.0.0/stdlib/src/collections/paths.rs +147 -0
- swh_graph_libs-9.0.0/stdlib/src/collections/small_node_set.rs +243 -0
- swh_graph_libs-9.0.0/stdlib/src/diff.rs +1004 -0
- swh_graph_libs-9.0.0/stdlib/src/fs.rs +189 -0
- swh_graph_libs-9.0.0/stdlib/src/lib.rs +72 -0
- swh_graph_libs-9.0.0/stdlib/src/root_directory.rs +103 -0
- swh_graph_libs-9.0.0/stdlib/src/vcs.rs +77 -0
- swh_graph_libs-9.0.0/stdlib/src/visit.rs +102 -0
- swh_graph_libs-9.0.0/stdlib/tests/data/mod.rs +170 -0
- swh_graph_libs-9.0.0/stdlib/tests/data/test_graph_1.dot +92 -0
- swh_graph_libs-9.0.0/stdlib/tests/small_node_set.rs +473 -0
- swh_graph_libs-9.0.0/stdlib/tests/stdlib.rs +183 -0
- swh_graph_libs-9.0.0/swh/graph/libs/__init__.py +0 -0
- swh_graph_libs-9.0.0/swh/graph/libs/luigi/__init__.py +17 -0
- swh_graph_libs-9.0.0/swh/graph/libs/luigi/topology.py +409 -0
- swh_graph_libs-9.0.0/swh/graph/libs/py.typed +1 -0
- swh_graph_libs-9.0.0/swh/graph/libs/shell.py +30 -0
- swh_graph_libs-9.0.0/swh/graph/libs/tests/__init__.py +0 -0
- swh_graph_libs-9.0.0/swh/graph/libs/tests/luigi/__init__.py +0 -0
- swh_graph_libs-9.0.0/swh/graph/libs/tests/luigi/test_topology.py +386 -0
- swh_graph_libs-9.0.0/swh/graph/libs/tests/test_swh_graph_libs.py +8 -0
- swh_graph_libs-9.0.0/swh.graph.libs.egg-info/PKG-INFO +76 -0
- swh_graph_libs-9.0.0/swh.graph.libs.egg-info/SOURCES.txt +64 -0
- swh_graph_libs-9.0.0/swh.graph.libs.egg-info/dependency_links.txt +1 -0
- swh_graph_libs-9.0.0/swh.graph.libs.egg-info/requires.txt +22 -0
- swh_graph_libs-9.0.0/swh.graph.libs.egg-info/top_level.txt +1 -0
- swh_graph_libs-9.0.0/topology/Cargo.toml +44 -0
- swh_graph_libs-9.0.0/topology/src/bin/count_paths.rs +414 -0
- swh_graph_libs-9.0.0/topology/src/bin/edges.rs +390 -0
- swh_graph_libs-9.0.0/topology/src/bin/generations.rs +278 -0
- swh_graph_libs-9.0.0/topology/src/bin/topo-order-to-csv.rs +81 -0
- swh_graph_libs-9.0.0/topology/src/bin/toposort.rs +197 -0
- swh_graph_libs-9.0.0/topology/src/generations.rs +261 -0
- swh_graph_libs-9.0.0/topology/src/lib.rs +6 -0
- swh_graph_libs-9.0.0/tox.ini +63 -0
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# Changes here will be overwritten by Copier
|
|
2
|
+
_commit: v0.3.5
|
|
3
|
+
_src_path: https://gitlab.softwareheritage.org/swh/devel/swh-py-template.git
|
|
4
|
+
description: Rust libraries for the Software Heritage graph service
|
|
5
|
+
distribution_name: swh-graph-libs
|
|
6
|
+
have_cli: false
|
|
7
|
+
have_workers: false
|
|
8
|
+
package_root: swh/graph/libs
|
|
9
|
+
project_name: swh.graph.libs
|
|
10
|
+
python_minimal_version: '3.9'
|
|
11
|
+
readme_format: rst
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
*.egg-info/
|
|
2
|
+
*.pyc
|
|
3
|
+
.coverage
|
|
4
|
+
.eggs/
|
|
5
|
+
.hypothesis
|
|
6
|
+
.mypy_cache
|
|
7
|
+
.tox
|
|
8
|
+
__pycache__
|
|
9
|
+
build/
|
|
10
|
+
dist/
|
|
11
|
+
# these are symlinks created by a hook in swh-docs' main sphinx conf.py
|
|
12
|
+
docs/README.rst
|
|
13
|
+
docs/README.md
|
|
14
|
+
# this should be a symlink for people who want to build the sphinx doc
|
|
15
|
+
# without using tox, generally created by the swh-env/bin/update script
|
|
16
|
+
docs/Makefile.sphinx
|
|
17
|
+
|
|
18
|
+
target/
|
|
19
|
+
|
|
20
|
+
# These are backup files generated by rustfmt
|
|
21
|
+
**/*.rs.bk
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
repos:
|
|
2
|
+
- repo: https://github.com/pre-commit/pre-commit-hooks
|
|
3
|
+
rev: v6.0.0
|
|
4
|
+
hooks:
|
|
5
|
+
- id: trailing-whitespace
|
|
6
|
+
- id: check-json
|
|
7
|
+
- id: check-yaml
|
|
8
|
+
|
|
9
|
+
- repo: https://github.com/python/black
|
|
10
|
+
rev: 25.9.0
|
|
11
|
+
hooks:
|
|
12
|
+
- id: black
|
|
13
|
+
|
|
14
|
+
- repo: https://github.com/PyCQA/isort
|
|
15
|
+
rev: 6.1.0
|
|
16
|
+
hooks:
|
|
17
|
+
- id: isort
|
|
18
|
+
|
|
19
|
+
- repo: https://github.com/pycqa/flake8
|
|
20
|
+
rev: 7.3.0
|
|
21
|
+
hooks:
|
|
22
|
+
- id: flake8
|
|
23
|
+
additional_dependencies: [flake8-bugbear==24.12.12, flake8-pyproject]
|
|
24
|
+
|
|
25
|
+
- repo: https://github.com/codespell-project/codespell
|
|
26
|
+
rev: v2.4.1
|
|
27
|
+
hooks:
|
|
28
|
+
- id: codespell
|
|
29
|
+
name: Check source code spelling
|
|
30
|
+
args:
|
|
31
|
+
- "-L te,wth,alledges,afterall,mmapped,crate,beling,ser,\
|
|
32
|
+
implementor,implementors"
|
|
33
|
+
- "--skip=rust/tests/data/*"
|
|
34
|
+
stages: [pre-commit]
|
|
35
|
+
- id: codespell
|
|
36
|
+
name: Check commit message spelling
|
|
37
|
+
stages: [commit-msg]
|
|
38
|
+
|
|
39
|
+
- repo: local
|
|
40
|
+
hooks:
|
|
41
|
+
- id: mypy
|
|
42
|
+
name: mypy
|
|
43
|
+
entry: mypy
|
|
44
|
+
args: [swh]
|
|
45
|
+
pass_filenames: false
|
|
46
|
+
language: system
|
|
47
|
+
types: [python]
|
|
48
|
+
- id: twine-check
|
|
49
|
+
name: twine check
|
|
50
|
+
description: call twine check when pushing an annotated release tag
|
|
51
|
+
entry: bash -c "ref=$(git describe) &&
|
|
52
|
+
[[ $ref =~ ^v[0-9]+\.[0-9]+\.[0-9]+$ ]] &&
|
|
53
|
+
(python3 -m build --sdist && twine check $(ls -t dist/* | head -1)) || true"
|
|
54
|
+
pass_filenames: false
|
|
55
|
+
stages: [pre-push]
|
|
56
|
+
language: python
|
|
57
|
+
additional_dependencies: [twine, build]
|
|
58
|
+
|
|
59
|
+
- repo: https://github.com/doublify/pre-commit-rust
|
|
60
|
+
rev: v1.0
|
|
61
|
+
hooks:
|
|
62
|
+
- id: fmt
|
|
63
|
+
- id: cargo-check
|
|
64
|
+
args: ["--all-features"]
|
|
65
|
+
- id: clippy
|
|
66
|
+
args: ["--all-features", "--all-targets", "--", "--deny", "warnings"]
|
|
67
|
+
|
|
68
|
+
exclude: ^swh/graph/grpc/
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
# Software Heritage Code of Conduct
|
|
2
|
+
|
|
3
|
+
## Our Pledge
|
|
4
|
+
|
|
5
|
+
In the interest of fostering an open and welcoming environment, we as Software
|
|
6
|
+
Heritage contributors and maintainers pledge to making participation in our
|
|
7
|
+
project and our community a harassment-free experience for everyone, regardless
|
|
8
|
+
of age, body size, disability, ethnicity, sex characteristics, gender identity
|
|
9
|
+
and expression, level of experience, education, socioeconomic status,
|
|
10
|
+
nationality, personal appearance, race, religion, or sexual identity and
|
|
11
|
+
orientation.
|
|
12
|
+
|
|
13
|
+
## Our Standards
|
|
14
|
+
|
|
15
|
+
Examples of behavior that contributes to creating a positive environment
|
|
16
|
+
include:
|
|
17
|
+
|
|
18
|
+
* Using welcoming and inclusive language
|
|
19
|
+
* Being respectful of differing viewpoints and experiences
|
|
20
|
+
* Gracefully accepting constructive criticism
|
|
21
|
+
* Focusing on what is best for the community
|
|
22
|
+
* Showing empathy towards other community members
|
|
23
|
+
|
|
24
|
+
Examples of unacceptable behavior by participants include:
|
|
25
|
+
|
|
26
|
+
* The use of sexualized language or imagery and unwelcome sexual attention or
|
|
27
|
+
advances
|
|
28
|
+
* Trolling, insulting/derogatory comments, and personal or political attacks
|
|
29
|
+
* Public or private harassment
|
|
30
|
+
* Publishing others' private information, such as a physical or electronic
|
|
31
|
+
address, without explicit permission
|
|
32
|
+
* Other conduct which could reasonably be considered inappropriate in a
|
|
33
|
+
professional setting
|
|
34
|
+
|
|
35
|
+
## Our Responsibilities
|
|
36
|
+
|
|
37
|
+
Project maintainers are responsible for clarifying the standards of acceptable
|
|
38
|
+
behavior and are expected to take appropriate and fair corrective action in
|
|
39
|
+
response to any instances of unacceptable behavior.
|
|
40
|
+
|
|
41
|
+
Project maintainers have the right and responsibility to remove, edit, or
|
|
42
|
+
reject comments, commits, code, wiki edits, issues, and other contributions
|
|
43
|
+
that are not aligned to this Code of Conduct, or to ban temporarily or
|
|
44
|
+
permanently any contributor for other behaviors that they deem inappropriate,
|
|
45
|
+
threatening, offensive, or harmful.
|
|
46
|
+
|
|
47
|
+
## Scope
|
|
48
|
+
|
|
49
|
+
This Code of Conduct applies within all project spaces, and it also applies when
|
|
50
|
+
an individual is representing the project or its community in public spaces.
|
|
51
|
+
Examples of representing a project or community include using an official
|
|
52
|
+
project e-mail address, posting via an official social media account, or acting
|
|
53
|
+
as an appointed representative at an online or offline event. Representation of
|
|
54
|
+
a project may be further defined and clarified by project maintainers.
|
|
55
|
+
|
|
56
|
+
## Enforcement
|
|
57
|
+
|
|
58
|
+
Instances of abusive, harassing, or otherwise unacceptable behavior may be
|
|
59
|
+
reported by contacting the project team at `conduct@softwareheritage.org`. All
|
|
60
|
+
complaints will be reviewed and investigated and will result in a response that
|
|
61
|
+
is deemed necessary and appropriate to the circumstances. The project team is
|
|
62
|
+
obligated to maintain confidentiality with regard to the reporter of an
|
|
63
|
+
incident. Further details of specific enforcement policies may be posted
|
|
64
|
+
separately.
|
|
65
|
+
|
|
66
|
+
Project maintainers who do not follow or enforce the Code of Conduct in good
|
|
67
|
+
faith may face temporary or permanent repercussions as determined by other
|
|
68
|
+
members of the project's leadership.
|
|
69
|
+
|
|
70
|
+
## Attribution
|
|
71
|
+
|
|
72
|
+
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
|
|
73
|
+
available at https://www.contributor-covenant.org/version/1/4/code-of-conduct.html
|
|
74
|
+
|
|
75
|
+
[homepage]: https://www.contributor-covenant.org
|
|
76
|
+
|
|
77
|
+
For answers to common questions about this code of conduct, see
|
|
78
|
+
https://www.contributor-covenant.org/faq
|