-
Notifications
You must be signed in to change notification settings - Fork 2
Version Update #23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Version Update #23
Changes from all commits
089e9ee
72c11a6
d66152a
69d305c
b914f9d
077b445
da7139a
4842bf4
72b82fa
6e35e6a
2940548
25f0b58
2fc1229
ff11403
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,4 @@ | ||
| # autogenerated pyup.io config file | ||
| # autogenerated pyup.io config file | ||
| # see https://pyup.io/docs/configuration/ for all available options | ||
|
|
||
| schedule: every week |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| ./LICENSE.md |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -42,7 +42,7 @@ | |
|
|
||
| # General information about the project. | ||
| project = u'python_template' | ||
| copyright = u'2017, reactive-firewall' | ||
| copyright = u'2017-2018, reactive-firewall' | ||
|
|
||
| # The version info for the project you're documenting, acts as replacement for | ||
| # |version| and |release|, also used in various other places throughout the | ||
|
|
@@ -65,7 +65,7 @@ | |
|
|
||
| # List of patterns, relative to source directory, that match files and | ||
| # directories to ignore when looking for source files. | ||
| exclude_patterns = ['_build'] | ||
| exclude_patterns = ['_build', 'tests'] | ||
|
Owner
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. document tests separately ... not in template |
||
|
|
||
| # The reST default role (used for this markup: `text`) to use for all documents. | ||
| # default_role = None | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -3,13 +3,13 @@ | |
|
|
||
| # Python Repo Template | ||
| # .................................. | ||
| # Copyright (c) 2017, Kendrick Walls | ||
| # Copyright (c) 2017-2018, Kendrick Walls | ||
| # .................................. | ||
| # Licensed under MIT (the "License"); | ||
| # you may not use this file except in compliance with the License. | ||
| # You may obtain a copy of the License at | ||
| # .......................................... | ||
| # http://www.github.com/reactive-firewall/python-repo/LICENSE.md | ||
| # https://www.github.com/reactive-firewall/python-repo/LICENSE.md | ||
| # .......................................... | ||
| # Unless required by applicable law or agreed to in writing, software | ||
| # distributed under the License is distributed on an "AS IS" BASIS, | ||
|
|
@@ -19,15 +19,8 @@ | |
|
|
||
|
|
||
| try: | ||
| import os | ||
| import sys | ||
| import argparse | ||
| sys.path.insert( | ||
| 0, | ||
| os.path.abspath( | ||
| os.path.join(os.path.dirname(__file__), '..') | ||
| ) | ||
| ) | ||
| except Exception as err: | ||
| # Show Error Info | ||
| print(str(type(err))) | ||
|
|
@@ -57,7 +50,7 @@ | |
| """Contains the short epilog of the program CLI help text.""" | ||
|
|
||
|
|
||
| __version__ = """1.0.0""" | ||
| __version__ = """1.1.0""" | ||
|
Owner
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Version bump |
||
| """The version of this program.""" | ||
|
|
||
|
|
||
|
|
@@ -103,20 +96,24 @@ def parseArgs(arguments=None): | |
| return parser.parse_known_args(arguments) | ||
|
|
||
|
|
||
| def __checkToolArgs(args=None): | ||
| """Handles None case for arguments as a helper function.""" | ||
| if args is None: | ||
| args = [None] | ||
| return args | ||
|
|
||
|
|
||
| def useTool(tool, arguments=None): | ||
| """Handler for launching the functions.""" | ||
| if arguments is None: | ||
| arguments = [None] | ||
| if tool is None: | ||
| return None | ||
| if tool in TASK_OPTIONS.keys(): | ||
| arguments = __checkToolArgs(arguments) | ||
| if (tool is not None) and (tool in TASK_OPTIONS.keys()): | ||
| try: | ||
| # print(str("launching: " + tool)) | ||
| TASK_OPTIONS[tool](arguments) | ||
| except Exception: | ||
| print(str( | ||
| "WARNING - An error occured while" + | ||
| "handling the shell. Cascading failure." | ||
| "handling the tool. Cascading failure." | ||
| )) | ||
| else: | ||
| return None | ||
|
|
@@ -147,6 +144,5 @@ def main(argv=None): | |
|
|
||
|
|
||
| if __name__ == '__main__': | ||
| if (sys.argv is not None) and (sys.argv is not []): | ||
| if (len(sys.argv) > 1): | ||
| main(sys.argv[1:]) | ||
| if (sys.argv is not None) and (len(sys.argv) >= 1): | ||
| main(sys.argv[1:]) | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,6 +1,6 @@ | ||
| [metadata] | ||
| name = pythonrepo | ||
| version = 1.0.2 | ||
| version = 1.1.1 | ||
|
Owner
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. version bump |
||
| author = Mr. Walls | ||
| author-email = reactive-firewall@users.noreply.github.com | ||
| summary = python-repo template | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This workaround helps fixes tox dependency on python 3.4+ from breaking 3.3 or older builds
also lines 180-181