Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sbomnix refactor #95

Merged
merged 4 commits into from
Nov 30, 2023
Merged

Sbomnix refactor #95

merged 4 commits into from
Nov 30, 2023

Conversation

henrirosten
Copy link
Collaborator

@henrirosten henrirosten commented Nov 28, 2023

Refactor sbomnix so all pytests can be re-enabled:

  • Move to src layout, also moving the content from scripts/ to src/.
  • Make it possible to call repology-related code from the repology python package.
  • Change vulnxscan and nix_outdated so they call the repology-related code from the repology package instead of creating a new process with exec_cmd to invoke repology_cli or repology_cve.
  • Re-enable pytests that were disabled as explained in PR bring in python devshell with Nix #94.

In addition:

More cleanup/refactor PRs will follow, this is the first take.

Signed-off-by: Henri Rosten <henri.rosten@unikie.com>
Signed-off-by: Henri Rosten <henri.rosten@unikie.com>
@henrirosten henrirosten marked this pull request as ready for review November 29, 2023 14:11
@henrirosten henrirosten requested review from flokli, brianmcgee and a team November 29, 2023 14:11
src/repology/repology_cli.py Outdated Show resolved Hide resolved
src/nixupdate/nix_outdated.py Show resolved Hide resolved
src/repology/repology_cli.py Outdated Show resolved Hide resolved
src/repology/repology_cli.py Outdated Show resolved Hide resolved
src/repology/repology_cli.py Outdated Show resolved Hide resolved
src/vulnxscan/vulnxscan_cli.py Outdated Show resolved Hide resolved
src/nixupdate/nix_outdated.py Outdated Show resolved Hide resolved
- Make it possible to call repology-related code from the repology
  package.
- Change vulnxscan and nix_outdated so they call the replogoy-related
  code from the repology package instead of creating a new process
  with exec_cmd to invoke repology_cli or repology_cve.

Signed-off-by: Henri Rosten <henri.rosten@unikie.com>
Signed-off-by: Henri Rosten <henri.rosten@unikie.com>
@henrirosten henrirosten merged commit 2e3f2b6 into tiiuae:main Nov 30, 2023
3 checks passed
@henrirosten henrirosten deleted the sbomnix-refactor branch November 30, 2023 09:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants