diff --git a/MANIFEST.in b/MANIFEST.in new file mode 100644 index 0000000..4166d4e --- /dev/null +++ b/MANIFEST.in @@ -0,0 +1,8 @@ + include *.lock + include *.py + include *.txt + include Pipfile + recursive-include pyarubacentral *.py + recursive-include samplescripts *.py + recursive-include samplescripts *.sample + recursive-include samplescripts *.yml diff --git a/bin/arubacentral b/bin/arubacentral.py similarity index 95% rename from bin/arubacentral rename to bin/arubacentral.py index 5677b25..a29f7e6 100755 --- a/bin/arubacentral +++ b/bin/arubacentral.py @@ -1,7 +1,7 @@ #!/usr/bin/env python3 import argparse -import os +import os, sys import json parser = argparse.ArgumentParser(description='Interact with Aruba Central') @@ -76,7 +76,10 @@ def refresh(profile): def main(): # print(args) - if args.configure == True: + if len(sys.argv)==1: + parser.print_help(sys.stderr) + sys.exit(1) + elif args.configure == True: check_config(args) elif args.profile: refresh(args.profile) diff --git a/requirements.txt b/requirements.txt index 3379f64..38e9aae 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,2 +1,7 @@ +certifi==2020.4.5.2 +chardet==3.0.4 +idna==2.9 +pyarubacentral==2.1.3 PyYAML==5.3.1 requests==2.23.0 +urllib3==1.25.9 diff --git a/setup.py b/setup.py index b5acf27..7a8fc24 100644 --- a/setup.py +++ b/setup.py @@ -35,7 +35,7 @@ # For a discussion on single-sourcing the version across setup.py and the # project code, see # https://packaging.python.org/en/latest/single_source_version.html - version='2.1.7', # Required + version='2.1.8', # Required # This is a one-line description or tagline of what your project does. This # corresponds to the "Summary" metadata field: @@ -177,11 +177,11 @@ # # For example, the following would provide a command called `sample` which # executes the function `main` from this package when invoked: - # entry_points={ # Optional - # 'console_scripts': [ - # 'sample=sample:main', - # ], - # }, + entry_points={ # Optional + 'console_scripts': [ + 'arubacentral=bin.arubacentral:main', + ], + }, # List additional URLs that are relevant to your project as a dict. #