Skip to content

Commit

Permalink
Removed slim and replaced with tarfile
Browse files Browse the repository at this point in the history
  • Loading branch information
pyth0n1c authored Jul 6, 2023
1 parent c66de59 commit 8c17053
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
9 changes: 5 additions & 4 deletions contentctl/output/conf_output.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
from typing import Union
from pathlib import Path
import pathlib
import slim
#import slim
from splunk_appinspect.main import validate, TEST_MODE, PRECERT_MODE, JSON_DATA_FORMAT, ERROR_LOG_LEVEL
import shutil
from contentctl.output.conf_writer import ConfWriter
Expand Down Expand Up @@ -131,7 +131,7 @@ def packageApp(self) -> None:
input_app_path = pathlib.Path(self.config.build.path_root)/f"{self.config.build.name}"
output_app_expected_name = pathlib.Path(self.config.build.path_root)/f"{self.config.build.name}-{self.config.build.version}.tar.gz"
print(f"Expecting that the app we build is at {output_app_expected_name}")

'''
try:
slim.package(source=input_app_path, output_dir=pathlib.Path(self.config.build.path_root))
if not output_app_expected_name.exists():
Expand All @@ -141,8 +141,9 @@ def packageApp(self) -> None:
except Exception as e:
print(f"Error using slim to package app: {str(e)}")
#with tarfile.open(name, "w:gz") as app_archive:
# app_archive.add(self.output_path, arcname=os.path.basename(self.output_path))
'''
with tarfile.open(name, "w:gz") as app_archive:
app_archive.add(self.output_path, arcname=os.path.basename(self.output_path))

def inspectApp(self)-> None:

Expand Down
1 change: 0 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ semantic-version = "^2.10.0"
bottle = "^0.12.23"
tqdm = "^4.65.0"
splunk-appinspect = "^2.36.0"
splunk-packaging-toolkit = "^1.0.1"

[tool.poetry.dev-dependencies]

Expand Down

0 comments on commit 8c17053

Please sign in to comment.