Skip to content

Commit

Permalink
For improved compatability, remove local appinspect
Browse files Browse the repository at this point in the history
permanently until there is a new version.
  • Loading branch information
pyth0n1c authored Oct 23, 2023
1 parent c9a17d5 commit c949ed4
Showing 1 changed file with 15 additions and 11 deletions.
26 changes: 15 additions & 11 deletions contentctl/output/conf_output.py
Original file line number Diff line number Diff line change
Expand Up @@ -330,23 +330,27 @@ def parseAppinspectJsonLogFile(self, logfile_path:pathlib.Path,
def inspectAppCLI(self)-> None:

try:
raise("Local spunk-appinspect Not Supported at this time (you may use the appinspect api). If you would like to locally inspect your app with"
"Python 3.7, 3.8, or 3.9 (with limited support), please refer to:\n"
"\t - https://dev.splunk.com/enterprise/docs/developapps/testvalidate/appinspect/useappinspectclitool/")
from splunk_appinspect.main import (
validate, MODE_OPTION, APP_PACKAGE_ARGUMENT, OUTPUT_FILE_OPTION,
LOG_FILE_OPTION, INCLUDED_TAGS_OPTION, EXCLUDED_TAGS_OPTION,
PRECERT_MODE, TEST_MODE)
except Exception as e:
print("******WARNING******")
if sys.version_info.major == 3 and sys.version_info.minor > 9:
print("The package splunk-appinspect was not installed due to a current issue with the library on Python3.10+. "
"Please use the following commands to set up a virtualenvironment in a different folder so you may run appinspect manually (if desired):"
"\n\tpython3.9 -m venv .venv"
"\n\tsource .venv/bin/activate"
"\n\tpython3 -m pip install splunk-appinspect"
f"\n\tsplunk-appinspect inspect {self.getPackagePath(include_version=False).relative_to(pathlib.Path('.').absolute())} --mode precert")
print(e)
# print("******WARNING******")
# if sys.version_info.major == 3 and sys.version_info.minor > 9:
# print("The package splunk-appinspect was not installed due to a current issue with the library on Python3.10+. "
# "Please use the following commands to set up a virtualenvironment in a different folder so you may run appinspect manually (if desired):"
# "\n\tpython3.9 -m venv .venv"
# "\n\tsource .venv/bin/activate"
# "\n\tpython3 -m pip install splunk-appinspect"
# f"\n\tsplunk-appinspect inspect {self.getPackagePath(include_version=False).relative_to(pathlib.Path('.').absolute())} --mode precert")

else:
print("splunk-appinspect is only compatable with Python3.9 at this time. Please see the following open issue here: https://github.com/splunk/contentctl/issues/28")
print("******WARNING******")
# else:
# print("splunk-appinspect is only compatable with Python3.9 at this time. Please see the following open issue here: https://github.com/splunk/contentctl/issues/28")
# print("******WARNING******")
return

# Note that all tags are available and described here:
Expand Down

0 comments on commit c949ed4

Please sign in to comment.