Skip to content

Commit

Permalink
update dependencies
Browse files Browse the repository at this point in the history
Signed-off-by: hirokuni-kitahara <[email protected]>
  • Loading branch information
hirokuni-kitahara committed Apr 25, 2024
1 parent adee61c commit d25841e
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 36 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
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 d25841e

Please sign in to comment.