Skip to content

Commit

Permalink
Fix imports and package resolution, and updated requirements
Browse files Browse the repository at this point in the history
  • Loading branch information
aaTarek authored and hezanathos committed Aug 29, 2023
1 parent c825202 commit e792d55
Show file tree
Hide file tree
Showing 10 changed files with 7 additions and 19 deletions.
Empty file added cli/__init__.py
Empty file.
2 changes: 1 addition & 1 deletion cli/bin/airgap/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import sys
from . import download_scripts, download_compliance_scripts, upload_scripts, upload_compliance_scripts
from cli.bin.airgap import download_scripts, download_compliance_scripts, upload_scripts, upload_compliance_scripts

def help():
print("Usage : cyberwatch-cli airgap [COMMAND] [ARGS]")
Expand Down
5 changes: 2 additions & 3 deletions cli/bin/airgap/download_compliance_scripts.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
from cyberwatch_api import Cyberwatch_Pyhelper
from os.path import abspath, basename, dirname, join
from os.path import abspath, join
import os
from .. import os as cbw_os
from cli.bin import os as cbw_os
import argparse
import sys
import shutil
Expand Down
2 changes: 0 additions & 2 deletions cli/bin/airgap/download_scripts.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
from cyberwatch_api import Cyberwatch_Pyhelper
from os.path import abspath, basename, dirname, join
from itertools import groupby
import argparse
import sys
import os
import requests

Expand Down
4 changes: 0 additions & 4 deletions cli/bin/airgap/upload_compliance_scripts.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
from cyberwatch_api import Cyberwatch_Pyhelper
from os.path import abspath, basename, dirname, join
from itertools import groupby
import argparse
import chardet
import sys
import os

def help():
Expand Down
4 changes: 0 additions & 4 deletions cli/bin/airgap/upload_scripts.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
from cyberwatch_api import Cyberwatch_Pyhelper
from os.path import abspath, basename, dirname, join
from itertools import groupby
import argparse
import chardet
import sys
import os

def help():
Expand Down
1 change: 0 additions & 1 deletion cli/bin/os.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
from cyberwatch_api import Cyberwatch_Pyhelper
import sys

def help():
Expand Down
2 changes: 1 addition & 1 deletion cli/cyberwatch-cli
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

from cyberwatch_api import Cyberwatch_Pyhelper
import sys
from bin import os, airgap
from cli.bin import os, airgap
import requests
from urllib3.exceptions import InsecureRequestWarning

Expand Down
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
requests
chardet
5 changes: 2 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
from setuptools import setup, find_packages

setup(name='cyberwatch_api',
version='0.3.3',
version='0.3.5',
description='Python Api client for the Cyberwatch software',
long_description=open('README.md').read().strip(),
long_description_content_type="text/markdown",
author='CyberWatch SAS',
packages=find_packages(where='cli'),
package_dir={"": "cli"},
py_modules=['cyberwatch_api'],
packages=find_packages(include=['cli.*']),
license='MIT',
install_requires=['requests>=2.20.1'],
scripts=['cli/cyberwatch-cli']
Expand Down

0 comments on commit e792d55

Please sign in to comment.