Skip to content
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

Bump pip from 18.1 to 21.1 #8

Open
wants to merge 139 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
139 commits
Select commit Hold shift + click to select a range
8bf9906
Create LICENSE
Feb 13, 2019
5096ab6
Intial commit
Feb 13, 2019
052407b
Update description
Feb 14, 2019
28515ce
Merge pull request #1 from Dapacruz/add-license-1
Feb 14, 2019
7305ff6
Update exception message
Feb 14, 2019
1732b88
Update version format
Feb 14, 2019
289f5f1
Ignore connection issues and continue
Feb 14, 2019
6c0f0c6
Refactor argument parsing in preparation for deploying to PyPI
Feb 16, 2019
2352209
Merge Cookiecutter template
Feb 16, 2019
26c1511
Update version
Feb 17, 2019
4f55bfe
Update README.rst
Feb 17, 2019
30613da
Update README.md
Feb 18, 2019
ce508c7
Update README.rst and README.md
Feb 18, 2019
dbd308a
Add bumpversion configuration
Feb 18, 2019
83a7176
Update tox configuration
Feb 18, 2019
8aa80dc
Fix bug in saved settings update
Feb 19, 2019
8536817
Update history
Feb 19, 2019
ce3a895
Bump version: 0.1.3 → 0.1.4
Feb 19, 2019
9cf1c60
Refactor saved settings update
Feb 19, 2019
54b3dac
Update history
Feb 19, 2019
79501c1
Bump version: 0.1.4 → 0.1.5
Feb 19, 2019
ce34b36
Fix GitHub links
Feb 20, 2019
a39db1a
Configure Travis CI
Feb 20, 2019
9afa9a2
Update history
Feb 20, 2019
68f300a
Bump version: 0.1.5 → 0.1.6
Feb 20, 2019
82fa9c9
Remove Python 3.7 from Travis CI configuration
Feb 20, 2019
3b45ca2
Update history
Feb 20, 2019
1a79820
Bump version: 0.1.6 → 0.1.7
Feb 20, 2019
3593ab9
Update PyPI repo in Travis CI configuration
Feb 20, 2019
363124a
Update history
Feb 20, 2019
5f99c8c
Bump version: 0.1.7 → 0.1.8
Feb 20, 2019
c8aa3a0
Update repo in Travis CI configuration
Feb 20, 2019
b962b18
Update history
Feb 20, 2019
3bab7fe
Bump version: 0.1.8 → 0.1.9
Feb 20, 2019
a2ab515
Update password in Travis CI configuration
Feb 20, 2019
3411905
Update history
Feb 20, 2019
fea9ada
Bump version: 0.1.9 → 0.1.10
Feb 20, 2019
db97534
Configure Slack notifications for Travis CI
Feb 20, 2019
ff4f6e3
Update history
Feb 20, 2019
8298e6c
Bump version: 0.1.10 → 0.1.11
Feb 20, 2019
936ae9d
Base functionality implemented
Feb 28, 2019
b9d0078
Refactor saved settings
Feb 28, 2019
ab50b9b
Update description
Feb 28, 2019
b59d2e8
Update password prompt to include username
Feb 28, 2019
3220660
Update documentation
Mar 7, 2019
7713431
Merge branch 'feat/get-config'
Mar 7, 2019
74f355f
Updated history
Mar 7, 2019
781a050
Bump version: 0.1.11 → 0.2.0
Mar 7, 2019
cd58103
Fix package requirements
Mar 7, 2019
51a9513
Bump version: 0.2.0 → 0.2.1
Mar 7, 2019
2d08626
Updated requirements_dev.txt
Mar 7, 2019
2725332
Move password prompt outside of for loop
Mar 7, 2019
e75bb6e
Bump version: 0.2.1 → 0.2.2
Mar 7, 2019
65ec6d0
Include key file path for Windows
Mar 7, 2019
f58f031
Bump version: 0.2.2 → 0.2.3
Mar 7, 2019
e45e095
Implement config type
Mar 8, 2019
2ac5eec
Bump version: 0.2.3 → 0.2.4
Mar 8, 2019
62d5c6b
Implement argument groups
Mar 8, 2019
b321ab9
Bump version: 0.2.4 → 0.2.5
Mar 8, 2019
ddf2e50
Add model, uptime and software version to output
Apr 7, 2019
8a5d046
Redirect header to sys.stderr to make it grep friendly
Apr 7, 2019
463bd79
Implement concurrency
Apr 7, 2019
1db19ff
Fix output race condition
Apr 7, 2019
a7b22b3
Update history
Apr 7, 2019
3699520
Bump version: 0.2.5 → 0.3.0
Apr 7, 2019
f1c8c7d
Remove password prompt for XML format
Apr 11, 2019
2deb757
Bump version: 0.3.0 → 0.3.1
Apr 11, 2019
054a8fa
Implement state argument
Apr 12, 2019
ecb0066
Implement multi-threading
Apr 12, 2019
6ecf9b4
Update history
Apr 12, 2019
ee6370d
Bump version: 0.3.1 → 0.4.0
Apr 12, 2019
542701b
Update documentation
Apr 12, 2019
234eac7
Bump version: 0.4.0 → 0.4.1
Apr 12, 2019
557b7fc
Bump version: 0.4.1 → 0.4.2
Apr 12, 2019
d335941
Update documentation
Apr 12, 2019
5e1a563
Bump version: 0.4.2 → 0.4.3
Apr 12, 2019
cf4e2ab
Update documentation
Apr 12, 2019
4dc5bcb
Bump version: 0.4.3 → 0.4.4
Apr 12, 2019
492845e
Implement exec-panw-cmd
Apr 13, 2019
a159c54
Update history
Apr 13, 2019
5181a7f
Bump version: 0.4.4 → 0.5.0
Apr 13, 2019
3dc5c9f
Rename exec_panw_cmd to run_panw_cmd
Apr 14, 2019
996638a
Bump version: 0.5.0 → 0.5.1
Apr 14, 2019
bbdcb1f
Update argparse
Apr 14, 2019
d7a09dd
Bump version: 0.5.1 → 0.5.2
Apr 14, 2019
d9267bb
Update SSH message
Apr 14, 2019
21b3a81
Fix raw output bug
Apr 15, 2019
ceb20f3
Fix print output race condition
Apr 15, 2019
fa56896
Bump version: 0.5.2 → 0.5.3
Apr 15, 2019
b84db74
Fix positional argument bug
Apr 17, 2019
030e52e
Bump version: 0.5.3 → 0.5.4
Apr 17, 2019
c5cf174
Fix print bug
Apr 17, 2019
61800e8
Bump version: 0.5.4 → 0.5.5
Apr 17, 2019
e5c3a1f
Replace non printable Unicode characters to fix Windows stdout issue
Sep 11, 2019
b7f9fa7
Change the default output to any connected state
Sep 11, 2019
1fc7578
Refactor
Sep 11, 2019
e29b929
Bump version: 0.5.5 → 0.5.6
Sep 11, 2019
181ebcc
Update requirements
Sep 11, 2019
0756d94
Bump version: 0.5.6 → 0.5.7
Sep 11, 2019
97956c0
Fix output bug
Sep 19, 2019
354ec1d
Bump version: 0.5.7 → 0.5.8
Sep 19, 2019
8783329
Fix encoding issue on PowerShell
Sep 26, 2019
1f20cc2
Bump version: 0.5.8 → 0.5.9
Sep 26, 2019
73c3524
add interface status and mac address
Aug 22, 2020
290ec55
add interface zone and refactor
Aug 22, 2020
6fe183e
add interface comment
Aug 24, 2020
f2c027f
add interface vrouter and comment
Sep 14, 2020
184e730
bump requirements versions
Sep 14, 2020
c45e81e
update docs
Sep 14, 2020
964f20d
Bump version: 0.5.9 → 0.6.0
Sep 14, 2020
76b27a1
add paramiko to requirements to mitigate dependency issues
Sep 14, 2020
2ff6a0a
Bump version: 0.6.0 → 0.6.1
Sep 14, 2020
7100a2e
fixed typo in history.rst
Sep 14, 2020
c9c0461
Bump version: 0.6.1 → 0.6.2
Sep 14, 2020
763f827
convert operational state to link state
Sep 15, 2020
89b4652
Bump version: 0.6.2 → 0.7.0
Sep 15, 2020
60a5ef8
fix interface enumeration bug and update arg if-state to if-status
Sep 16, 2020
508dd04
Bump version: 0.7.0 → 0.7.1
Sep 16, 2020
baa495b
refactor dict iteration
Sep 16, 2020
cd9ee4b
Bump version: 0.7.1 → 0.7.2
Sep 16, 2020
7cb1b63
refactor print_results
Sep 16, 2020
a5d449a
Bump version: 0.7.2 → 0.7.3
Sep 16, 2020
ebd4e18
add interface aggregate group
Sep 17, 2020
8306967
Bump version: 0.7.3 → 0.7.4
Sep 17, 2020
2d7e4ab
add interface vsys
Sep 18, 2020
99a12d4
add interface vsys
Sep 18, 2020
31109ac
Bump version: 0.7.4 → 0.7.5
Sep 18, 2020
e5d4bc3
refactor print_results to minimize output width
Sep 22, 2020
c456c0d
Bump version: 0.7.5 → 0.7.6
Sep 22, 2020
b190152
refactor max field width calculation
Sep 23, 2020
704b0b5
remove header redirection to stderr
Oct 1, 2020
f09b7f6
Bump version: 0.7.6 → 0.7.7
Oct 1, 2020
72bf4ca
remove terse output connected only assumption
Oct 1, 2020
c4b1585
Bump version: 0.7.7 → 0.7.8
Oct 1, 2020
52b8617
fix exception handling
Oct 1, 2020
b9728f6
Bump version: 0.7.8 → 0.7.9
Oct 1, 2020
2225fa7
fix exception handling
Oct 5, 2020
5ea047c
Bump version: 0.7.9 → 0.7.10
Oct 5, 2020
198795e
Bump pip from 18.1 to 21.1
dependabot[bot] Nov 15, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions .bumpversion.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
[bumpversion]
current_version = 0.7.10
commit = True
tag = True

[bumpversion:file:setup.py]

[bumpversion:file:setup.cfg]

[bumpversion:file:panw_utils/__init__.py]
21 changes: 21 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# http://editorconfig.org

root = true

[*]
indent_style = space
indent_size = 4
trim_trailing_whitespace = true
insert_final_newline = true
charset = utf-8
end_of_line = lf

[*.bat]
indent_style = tab
end_of_line = crlf

[LICENSE]
insert_final_newline = false

[Makefile]
indent_style = tab
15 changes: 15 additions & 0 deletions .github/ISSUE_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
* panw-utils version:
* Python version:
* Operating System:

### Description

Describe what you were trying to get done.
Tell us what happened, what went wrong, and what you expected to happen.

### What I Did

```
Paste the command(s) you ran and the output.
If there was a crash, please include the traceback here.
```
12 changes: 6 additions & 6 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
.vscode

# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
Expand All @@ -8,6 +10,7 @@ __pycache__/

# Distribution / packaging
.Python
env/
build/
develop-eggs/
dist/
Expand All @@ -23,7 +26,6 @@ wheels/
*.egg-info/
.installed.cfg
*.egg
MANIFEST

# PyInstaller
# Usually these files are written by a python script from a template
Expand Down Expand Up @@ -54,7 +56,6 @@ coverage.xml
# Django stuff:
*.log
local_settings.py
db.sqlite3

# Flask stuff:
instance/
Expand All @@ -81,14 +82,13 @@ celerybeat-schedule
# SageMath parsed files
*.sage.py

# Environments
# dotenv
.env

# virtualenv
.venv
env/
venv/
ENV/
env.bak/
venv.bak/

# Spyder project settings
.spyderproject
Expand Down
18 changes: 18 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
language: python
python:
- 3.6
install: pip install -U tox-travis
script: tox
deploy:
provider: pypi
distributions: sdist bdist_wheel
user: dapacruz
password:
secure: F/uInSMFwe8mGTn4ovmosDLuzN0s+nKfB3aqILqlgABFmlzTdQ4zDP8qJUQhr1d5fSO1ZBmHwytPa8VRb7JVlr25bpjRe4VlavQa9vgVF3Wz8JNt5rSwKUGq9FCy542rnNnVlVSv4ekn4V722pE+x/AaBDJUAfcZJtLizulcqPLKAi3yzb/QErU1/a+QlUcR+IVrKVIvLcjtbugxuT7QpaWQRafLGjOPI5YADCrH1X82v7pX3en/5QgHqYOxyJHJDSHhMLMaSege/FF9eLFmbCvNyY3RQqs4C77Hs2iFga+P8lcVCCqsxFiTfhAjcU7EHJk19PStT978UCs1wC9aJ+VbpLFLjU6zuvPiD9OAR72krLr5Bbb8ZdtWmn7g6KFHYa760vsdOrSzeA11lYsCT8xfIeXatp3QnryCqCb5juKikEq7BJAcPxkSLURCSmCfi+ZpTgbtDyTWvNtusPev8WMOizCaxY4+WmSZhf/jHBhaZo0BRY59Gmz4n1CQVhwNfEvbSX+GrGftVCqHXXw1F4Z5GCPFr/H/+HjPK2ezaYTolFURCuxzbPfQhAckKg29VXdxGBmClUHzvCMFVKyijIqtEgmlUd/eRyU6xR9kvXzcN9KK0+d9mo24wb/r5UeNkKt9UUmIbNAAioxnLSJUymMK2RDgfUR13cV7oyF9guA=
on:
tags: true
repo: Dapacruz/panw-utils
python: 3.6
notifications:
slack:
secure: mxBCi+kgmwpLHNMfD0ofPyvkmR22DdkBJw4QeaY1yXouX8rRwPi0DRs+OorutpHRBROWe0TAKHkPUQugCniNsiuknwDx1iUmt8ZjxIwzsKbQlSuVAtgxm7vXnXF0e1fJMAvLe9Zhk3GG0iAAFKDi30kZT7Q8pbyppRb6lLiJ7KyYIZY5qh2N12tAY7zNoC9UodETk72SU4LrZFenNWT1R5xUZLA8ztSVkEoMOYAz9GONZipMVYEgFOPQxw8IisYF8S2oaBe0NFqHKpAAWuvQs9m63EgOrjehOCp4iRDl0sI7Flo3ilvvinlsyy/ZwmWtLSFJpCLD1mksP+ryZp7VXLKcwQoHseDf42j8xt001R76GXNjwHPiayOCokyHhOFvNhj8gq0l49arHeH/sLnQDl8Uh2aDHL8a2tHk6i0DzQhfCgV9NVG2XjD5kBDLXIgKTfu/loNmqbgT4WA/UUZyuxbARzZS1/+KhgVpDMYBa9WSLNxnXarAvZZ6FsLSW3lJ4JoltRFYYFlMZuFIrv4tLY/cYzVtmrEn1PLxncVIpep1v50hfH6cORTkOOUyo/mV45QYm98iO51kH9IF7MekhWoZnllnAMPWd46X4DZTujwV7sTHpqev+Bfs9kImk0XBq4FaOzMhmP1rp8QlXdrkGhGd43kKfOu+4BoHUxFs06I=
4 changes: 4 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"restructuredtext.confPath": "${workspaceFolder}/docs",
"python.pythonPath": "/usr/local/bin/python3"
}
13 changes: 13 additions & 0 deletions AUTHORS.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
=======
Credits
=======

Development Lead
----------------

* David Paul Cruz <[email protected]>

Contributors
------------

None yet. Why not be the first?
128 changes: 128 additions & 0 deletions CONTRIBUTING.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,128 @@
.. highlight:: shell

============
Contributing
============

Contributions are welcome, and they are greatly appreciated! Every little bit
helps, and credit will always be given.

You can contribute in many ways:

Types of Contributions
----------------------

Report Bugs
~~~~~~~~~~~

Report bugs at https://github.com/dapacruz/panw-utils/issues.

If you are reporting a bug, please include:

* Your operating system name and version.
* Any details about your local setup that might be helpful in troubleshooting.
* Detailed steps to reproduce the bug.

Fix Bugs
~~~~~~~~

Look through the GitHub issues for bugs. Anything tagged with "bug" and "help
wanted" is open to whoever wants to implement it.

Implement Features
~~~~~~~~~~~~~~~~~~

Look through the GitHub issues for features. Anything tagged with "enhancement"
and "help wanted" is open to whoever wants to implement it.

Write Documentation
~~~~~~~~~~~~~~~~~~~

panw-utils could always use more documentation, whether as part of the
official panw-utils docs, in docstrings, or even on the web in blog posts,
articles, and such.

Submit Feedback
~~~~~~~~~~~~~~~

The best way to send feedback is to file an issue at https://github.com/dapacruz/panw-utils/issues.

If you are proposing a feature:

* Explain in detail how it would work.
* Keep the scope as narrow as possible, to make it easier to implement.
* Remember that this is a volunteer-driven project, and that contributions
are welcome :)

Get Started!
------------

Ready to contribute? Here's how to set up `panw_utils` for local development.

1. Fork the `panw_utils` repo on GitHub.
2. Clone your fork locally::

$ git clone [email protected]:your_name_here/panw_utils.git

3. Install your local copy into a virtualenv. Assuming you have virtualenvwrapper installed, this is how you set up your fork for local development::

$ mkvirtualenv panw_utils
$ cd panw_utils/
$ python setup.py develop

4. Create a branch for local development::

$ git checkout -b name-of-your-bugfix-or-feature

Now you can make your changes locally.

5. When you're done making changes, check that your changes pass flake8 and the
tests, including testing other Python versions with tox::

$ flake8 panw_utils tests
$ python setup.py test or py.test
$ tox

To get flake8 and tox, just pip install them into your virtualenv.

6. Commit your changes and push your branch to GitHub::

$ git add .
$ git commit -m "Your detailed description of your changes."
$ git push origin name-of-your-bugfix-or-feature

7. Submit a pull request through the GitHub website.

Pull Request Guidelines
-----------------------

Before you submit a pull request, check that it meets these guidelines:

1. The pull request should include tests.
2. If the pull request adds functionality, the docs should be updated. Put
your new functionality into a function with a docstring, and add the
feature to the list in README.rst.
3. The pull request should work for Python 2.7, 3.4, 3.5 and 3.6, and for PyPy. Check
https://travis-ci.org/dapacruz/panw_utils/pull_requests
and make sure that the tests pass for all supported Python versions.

Tips
----

To run a subset of tests::


$ python -m unittest tests.test_panw_utils

Deploying
---------

A reminder for the maintainers on how to deploy.
Make sure all your changes are committed (including an entry in HISTORY.rst).
Then run::

$ bumpversion patch # possible: major / minor / patch
$ git push
$ git push --tags

Travis will then deploy to PyPI if tests pass.
58 changes: 58 additions & 0 deletions HISTORY.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
=======
History
=======

0.0.1 (2019-02-16)
------------------

* First release on PyPI.

0.1.5 (2019-02-17)
-------------------

* Update README.rst.
* Update descriptions.
* Implement helper command (panw-utils).

0.1.6 (2019-02-17)
-------------------

* Fix bug in saved settings update

0.1.11 (2019-02-17)
-------------------

* Configure Travis CI

0.2.0 (2019-03-07)
-------------------

* Added get-panw-config

0.3.0 (2019-04-07)
-------------------

* Implement concurrency
* Redirect headers to sys.stderr to make grep friendly
* Add model, uptime and software version to output

0.4.0 (2019-04-12)
-------------------

* Migrate from multi-processing to multi-threading

0.5.0 (2019-04-13)
-------------------

* Added run-panw-cmd

0.6.0 (2020-09-14)
-------------------

* Added status, MAC address, zone, virtual router and comment to get-panw-interfaces output
* Bumped requirements versions

0.7.0 (2020-09-14)
-------------------

* Convert get-panw-interfaces operational state to link state
22 changes: 22 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
MIT License

Copyright (c) 2019, David Paul Cruz

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

11 changes: 11 additions & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
include AUTHORS.rst
include CONTRIBUTING.rst
include HISTORY.rst
include LICENSE
include README.rst

recursive-include tests *
recursive-exclude * __pycache__
recursive-exclude * *.py[co]

recursive-include docs *.rst conf.py Makefile make.bat *.jpg *.png *.gif
Loading