Skip to content

Commit 18ad2ef

Browse files
authored
Merge pull request #56 from logchange/missing-pkg_resources
Missing pkg resources
2 parents 2461352 + 6118843 commit 18ad2ef

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "secscanner2junit"
3-
version = "1.0.0"
3+
version = "1.0.1"
44
description = "Convert Security Scanner Output to JUnit Format"
55
authors = ["logchange team <team@logchange.dev>", "Florian Angermeir <florian.angermeir@tum.de>"]
66
license = "GPL-3.0-only"

secscanner2junit/__init__.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22
import json
33
import sys
44
import argparse
5-
import pkg_resources
6-
75
from junit_xml import to_xml_report_file
86

7+
VERSION = "1.0.1"
8+
99
from secscanner2junit.config import get_config, Config
1010
from secscanner2junit.container_scanning import ContainerScanningParser
1111
from secscanner2junit.sast import SastParser
@@ -35,7 +35,7 @@ def save_junit_report(testsuite, output_path):
3535

3636
def parse_arguments(args):
3737
arg_parser = argparse.ArgumentParser(description="SecScanner2JUnit: Convert security scanner output to JUnit format.")
38-
arg_parser.add_argument('--version', action='version', version=pkg_resources.get_distribution('secscanner2junit').version)
38+
arg_parser.add_argument('--version', action='version', version=VERSION)
3939
arg_parser.add_argument('activity', choices=ScanType.list())
4040
arg_parser.add_argument('input_file')
4141
arg_parser.add_argument('output_file')

0 commit comments

Comments
 (0)