From 16507243267b7488a426bd73bd4a6ecbaaf7c6ae Mon Sep 17 00:00:00 2001 From: Vyacheslav Potoropin Date: Mon, 18 Jul 2022 10:48:05 +0200 Subject: [PATCH] Add --bom argument to all commands --- cas_wrapper.py | 5 ++--- setup.py | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/cas_wrapper.py b/cas_wrapper.py index 512a923..87579a6 100644 --- a/cas_wrapper.py +++ b/cas_wrapper.py @@ -52,6 +52,7 @@ class CasWrapper: """ command = self._cas[ 'notarize', + '--bom', local_path, '-o', 'json', @@ -88,7 +89,7 @@ class CasWrapper: """ command_args = ['authenticate', local_path] if use_hash: - command_args = ['authenticate', '--hash', local_path] + command_args = ['authenticate', '--bom', '--hash', local_path] command_args.extend(('-o', 'json')) command = self._cas[command_args] try: @@ -119,7 +120,6 @@ class CasWrapper: """ is_authenticated = False commit_cas_hash = None - self.ensure_login() try: result_json = self.authenticate(local_path, return_json=True) is_authenticated = result_json['verified'] @@ -140,7 +140,6 @@ class CasWrapper: Returns authenticate result. """ is_authenticated = False - self.ensure_login() try: is_authenticated = self.authenticate( local_path, diff --git a/setup.py b/setup.py index f19dd49..946af85 100644 --- a/setup.py +++ b/setup.py @@ -2,7 +2,7 @@ from setuptools import setup setup( name="cas_wrapper", - version="0.0.2", + version="0.0.3", author="Stepan Oksanichenko", author_email="soksanichenko@almalinux.org", description="The python wrapper around binary cas from "