Skip to content

Commit

Permalink
Fixed import issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Koen1999 committed Jan 18, 2025
1 parent 97d0b8e commit 3cd6e07
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions suricata_check/_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
import subprocess
from importlib.metadata import PackageNotFoundError, requires, version

import setuptools_git_versioning

SURICATA_CHECK_DIR = os.path.dirname(__file__)

_logger = logging.getLogger(__name__)
Expand All @@ -25,6 +23,7 @@ def get_version() -> str:
git_dir = os.path.join(SURICATA_CHECK_DIR, "..", ".git")
if os.path.exists(git_dir):
try:
import setuptools_git_versioning
v = str(setuptools_git_versioning.get_version())
_logger.debug(
"Detected suricata-check version using setuptools_git_versioning: %s", v
Expand Down

0 comments on commit 3cd6e07

Please sign in to comment.