Skip to content

Commit

Permalink
Merge pull request #15 from intelops/bug/packaging_import_issue
Browse files Browse the repository at this point in the history
fixed import issue after packaging
  • Loading branch information
jegathintelops authored Aug 8, 2023
2 parents dc3aec8 + c814ae7 commit 11f6223
Show file tree
Hide file tree
Showing 11 changed files with 26 additions and 11 deletions.
1 change: 0 additions & 1 deletion __init__.py

This file was deleted.

15 changes: 15 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"

[project]
name = "scsctl"
version = "0.0.1"
authors = [{name="Jegath S", email="[email protected]" }]
description = "Tool for automating Vulnerability Risk Management and Software Supply Chain Security Measures"
readme = "README.md"
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']
requires-python = ">=3.9"

[project.scripts]
scsctl = 'scsctl.app:cli'
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
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'],
entry_points={
'console_scripts': [
'scsctl = app:cli'
'scsctl = scsctl.app:cli'
]
}
)
1 change: 1 addition & 0 deletions src/scsctl/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from .app import cli
8 changes: 4 additions & 4 deletions app.py → src/scsctl/app.py
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
from datetime import datetime
import click
import questionary
from helper.falco import (
from scsctl.helper.falco import (
parse_logs_and_get_package_paths,
compare_and_find_extra_packages_using_falco,
print_falco_packages,
save_falco_data,
)
from helper.pyroscope import (
from scsctl.helper.pyroscope import (
get_pyroscope_data,
print_pyroscope_packages,
save_pyroscope_data,
compare_and_find_pyroscope_extra_packages,
)
from helper.common import AppDetails, generate_final_report, modify_and_build_docker_image, custom_style_fancy
from helper.trivy import get_sbom_report, print_sbom_report, save_sbom_data
from scsctl.helper.common import AppDetails, generate_final_report, modify_and_build_docker_image, custom_style_fancy
from scsctl.helper.trivy import get_sbom_report, print_sbom_report, save_sbom_data

import yaml

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion helper/falco.py → src/scsctl/helper/falco.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import questionary
from tabulate import tabulate
from datetime import datetime
from helper.clickhouse import connect_to_db
from scsctl.helper.clickhouse import connect_to_db


def read_logs_from_log(pod_name, namespace):
Expand Down
4 changes: 2 additions & 2 deletions helper/pyroscope.py → src/scsctl/helper/pyroscope.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
from tabulate import tabulate
import questionary
from datetime import datetime
from helper.common import AppDetails
from helper.clickhouse import connect_to_db
from scsctl.helper.common import AppDetails
from scsctl.helper.clickhouse import connect_to_db


def get_pyroscope_data(app_details: AppDetails):
Expand Down
4 changes: 2 additions & 2 deletions helper/trivy.py → src/scsctl/helper/trivy.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
import click
import json
from tabulate import tabulate
from helper.clickhouse import connect_to_db
from helper.common import AppDetails
from scsctl.helper.clickhouse import connect_to_db
from scsctl.helper.common import AppDetails
import questionary
from datetime import datetime

Expand Down

0 comments on commit 11f6223

Please sign in to comment.