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

update dependencies #226

Merged
merged 2 commits into from
Apr 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions ansible_risk_insight/loader.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
import os
import pathlib
import json
import pygit2
import pkg_resources
from .models import LoadType

Expand Down Expand Up @@ -59,9 +58,10 @@ def get_loader_version():
return version
# try to get version from commit ID in source code repository
try:
script_dir = pathlib.Path(__file__).parent.resolve()
repo = pygit2.Repository(script_dir)
version = repo.head.target
# TODO: consider how to get git version if it is needed
_ = pathlib.Path(__file__).parent.resolve()
# repo = pygit2.Repository(script_dir)
# version = repo.head.target
except Exception:
pass
return version
Expand Down
2 changes: 1 addition & 1 deletion ansible_risk_insight/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
from copy import deepcopy
import json
import jsonpickle
import Levenshtein
from rapidfuzz.distance import Levenshtein
import ansible_risk_insight.yaml as ariyaml
from ansible.module_utils.parsing.convert_bool import boolean
from .keyutil import (
Expand Down
3 changes: 0 additions & 3 deletions ansible_risk_insight/tree.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@
)
from .model_loader import load_builtin_modules
from .risk_assessment_model import RAMClient
from .variable_manager import VariableManager


obj_type_dict = {
Expand Down Expand Up @@ -466,8 +465,6 @@ def __init__(
# TODO: dependency check, especially for
# collection dependencies for role

self.var_manager: VariableManager = VariableManager()

self.target_playbook_path = target_playbook_path
self.load_all_taskfiles = load_all_taskfiles

Expand Down
28 changes: 0 additions & 28 deletions ansible_risk_insight/variable_manager.py

This file was deleted.

5 changes: 2 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,17 +14,16 @@ classifiers = [
]
dependencies = [
"gitdb",
"pygit2",
"joblib",
"jsonpickle",
"PyYAML",
"smmap",
"tabulate",
"requests",
"ansible",
"ansible-core",
"ruamel.yaml",
"filelock",
"Levenshtein",
"rapidfuzz",
]
dynamic = ["version"]

Expand Down
Loading