Skip to content

Commit 11f6223

Browse files
Merge pull request #15 from intelops/bug/packaging_import_issue
fixed import issue after packaging
2 parents dc3aec8 + c814ae7 commit 11f6223

File tree

11 files changed

+26
-11
lines changed

11 files changed

+26
-11
lines changed

__init__.py

Lines changed: 0 additions & 1 deletion
This file was deleted.

pyproject.toml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
[build-system]
2+
requires = ["hatchling"]
3+
build-backend = "hatchling.build"
4+
5+
[project]
6+
name = "scsctl"
7+
version = "0.0.1"
8+
authors = [{name="Jegath S", email="[email protected]" }]
9+
description = "Tool for automating Vulnerability Risk Management and Software Supply Chain Security Measures"
10+
readme = "README.md"
11+
dependencies = ['click==8.1.3', 'clickhouse-driver==0.2.6', 'numpy==1.25.0', 'requests==2.31.0','questionary==1.10.0','tabulate==0.9.0']
12+
requires-python = ">=3.9"
13+
14+
[project.scripts]
15+
scsctl = 'scsctl.app:cli'

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
install_requires=['click==8.1.3', 'clickhouse-driver==0.2.6', 'numpy==1.25.0', 'requests==2.31.0','questionary==1.10.0','tabulate==0.9.0'],
99
entry_points={
1010
'console_scripts': [
11-
'scsctl = app:cli'
11+
'scsctl = scsctl.app:cli'
1212
]
1313
}
1414
)

src/scsctl/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
from .app import cli

app.py renamed to src/scsctl/app.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
11
from datetime import datetime
22
import click
33
import questionary
4-
from helper.falco import (
4+
from scsctl.helper.falco import (
55
parse_logs_and_get_package_paths,
66
compare_and_find_extra_packages_using_falco,
77
print_falco_packages,
88
save_falco_data,
99
)
10-
from helper.pyroscope import (
10+
from scsctl.helper.pyroscope import (
1111
get_pyroscope_data,
1212
print_pyroscope_packages,
1313
save_pyroscope_data,
1414
compare_and_find_pyroscope_extra_packages,
1515
)
16-
from helper.common import AppDetails, generate_final_report, modify_and_build_docker_image, custom_style_fancy
17-
from helper.trivy import get_sbom_report, print_sbom_report, save_sbom_data
16+
from scsctl.helper.common import AppDetails, generate_final_report, modify_and_build_docker_image, custom_style_fancy
17+
from scsctl.helper.trivy import get_sbom_report, print_sbom_report, save_sbom_data
1818

1919
import yaml
2020

File renamed without changes.
File renamed without changes.
File renamed without changes.

helper/falco.py renamed to src/scsctl/helper/falco.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
import questionary
55
from tabulate import tabulate
66
from datetime import datetime
7-
from helper.clickhouse import connect_to_db
7+
from scsctl.helper.clickhouse import connect_to_db
88

99

1010
def read_logs_from_log(pod_name, namespace):

helper/pyroscope.py renamed to src/scsctl/helper/pyroscope.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
from tabulate import tabulate
55
import questionary
66
from datetime import datetime
7-
from helper.common import AppDetails
8-
from helper.clickhouse import connect_to_db
7+
from scsctl.helper.common import AppDetails
8+
from scsctl.helper.clickhouse import connect_to_db
99

1010

1111
def get_pyroscope_data(app_details: AppDetails):

0 commit comments

Comments
 (0)