Skip to content

Commit

Permalink
release changes (#60)
Browse files Browse the repository at this point in the history
  • Loading branch information
nhakmiller authored Dec 15, 2020
1 parent 5e8c009 commit f54ea1d
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 7 deletions.
16 changes: 11 additions & 5 deletions panther_analysis_tool/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -167,10 +167,10 @@ def zip_analysis(args: argparse.Namespace) -> Tuple[int, str]:
Returns:
A tuple of return code and the archive filename.
"""
return_code, _ = test_analysis(args)

if return_code == 1:
return return_code, ''
if not args.skip_tests:
return_code, _ = test_analysis(args)
if return_code == 1:
return return_code, ''

logging.info('Zipping analysis packs in %s to %s', args.path, args.out)
# example: 2019-08-05T18-23-25
Expand Down Expand Up @@ -636,7 +636,7 @@ def setup_parser() -> argparse.ArgumentParser:
prog='panther_analysis_tool')
parser.add_argument('--version',
action='version',
version='panther_analysis_tool 0.4.1')
version='panther_analysis_tool 0.4.2')
subparsers = parser.add_subparsers()

test_parser = subparsers.add_parser(
Expand Down Expand Up @@ -695,6 +695,9 @@ def setup_parser() -> argparse.ArgumentParser:
'greater than 1 is specified, at least one True and one False test is required.',
required=False)
zip_parser.add_argument('--debug', action='store_true', dest='debug')
zip_parser.add_argument('--skip-tests',
action='store_true',
dest='skip_tests')
zip_parser.set_defaults(func=zip_analysis)

upload_parser = subparsers.add_parser(
Expand Down Expand Up @@ -733,6 +736,9 @@ def setup_parser() -> argparse.ArgumentParser:
metavar="KEY=VALUE",
nargs='+')
upload_parser.add_argument('--debug', action='store_true', dest='debug')
upload_parser.add_argument('--skip-tests',
action='store_true',
dest='skip_tests')
upload_parser.set_defaults(func=upload_analysis)

return parser
Expand Down
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@
setup(
name='panther_analysis_tool',
packages=['panther_analysis_tool'],
version='0.4.1',
version='0.4.2',
license='apache-2.0',
description=
'Panther command line interface for writing, testing, and packaging policies/rules.',
author='Panther Labs Inc',
author_email='pypi@runpanther.io',
url='https://github.com/panther-labs/panther_analysis_tool',
download_url = 'https://github.com/panther-labs/panther_analysis_tool/archive/v0.4.1.tar.gz',
download_url = 'https://github.com/panther-labs/panther_analysis_tool/archive/v0.4.2.tar.gz',
keywords=['Security', 'CLI'],
scripts=['bin/panther_analysis_tool'],
install_requires=[
Expand Down

0 comments on commit f54ea1d

Please sign in to comment.