Skip to content

Commit

Permalink
update dependencies (#226)
Browse files Browse the repository at this point in the history
* update dependencies

Signed-off-by: hirokuni-kitahara <[email protected]>

* remove variable_manager which was not used

Signed-off-by: hirokuni-kitahara <[email protected]>

---------

Signed-off-by: hirokuni-kitahara <[email protected]>
  • Loading branch information
hirokuni-kitahara authored Apr 25, 2024
1 parent adee61c commit a3cf27f
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 39 deletions.
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

0 comments on commit a3cf27f

Please sign in to comment.