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

Remove py3.6, update dependencies, update docs (#35) #1

Merged
merged 1 commit into from
Oct 12, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
22 changes: 14 additions & 8 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [ '3.6', '3.7', '3.8' ]
python-version: [ '3.7', '3.8', '3.9', '3.10' ]
steps:
- uses: actions/checkout@v2
- name: Start dev env
Expand Down Expand Up @@ -74,14 +74,20 @@ jobs:
name: Releasing to pypi
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Build
uses: abatilo/actions-poetry@v1.5.0
- uses: actions/checkout@v2
- name: Setup python
uses: actions/setup-python@v1
with:
python_version: 3.8.0
poetry_version: 1.0
working_directory: .
args: build
python-version: 3.8

- name: Install and configure Poetry
uses: snok/install-poetry@v1
with:
virtualenvs-path: ~/.virtualenvs

- name: Build
run: poetry build

- name: Publish package
if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags')
uses: pypa/gh-action-pypi-publish@master
Expand Down
5 changes: 5 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ Inventory
_________

* **YAMLInventory** - Create an inventory from yaml files
* **load_credentials** - Transform function to load credentials from venv

Functions
_________
Expand All @@ -49,3 +50,7 @@ Data:
Files:

* **write_file** - Writes content to files

Networking:

* **tcp_ping** - Tests connection to a tcp port.
Binary file modified docs/doctrees/api/functions.doctree
Binary file not shown.
Binary file modified docs/doctrees/api/index.doctree
Binary file not shown.
Binary file modified docs/doctrees/api/inventory.doctree
Binary file not shown.
Binary file modified docs/doctrees/api/processors.doctree
Binary file not shown.
Binary file modified docs/doctrees/api/tasks.doctree
Binary file not shown.
Binary file modified docs/doctrees/environment.pickle
Binary file not shown.
Binary file modified docs/doctrees/index.doctree
Binary file not shown.
38 changes: 19 additions & 19 deletions docs/doctrees/nbsphinx/tutorials/inventory_YAMLInventory.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -286,8 +286,8 @@
" 'a_string': 'qwe'}},\n",
" 'hostname': 'localhost',\n",
" 'port': 65021,\n",
" 'username': 'root',\n",
" 'password': 'from_group1',\n",
" 'username': None,\n",
" 'password': None,\n",
" 'platform': 'junos'},\n",
" 'dev3.group_2': {'name': 'dev3.group_2',\n",
" 'connection_options': {'napalm': {'extras': None,\n",
Expand All @@ -300,8 +300,8 @@
" 'data': {'www_server': 'apache', 'role': 'www'},\n",
" 'hostname': 'localhost',\n",
" 'port': 65022,\n",
" 'username': 'root',\n",
" 'password': 'docker',\n",
" 'username': None,\n",
" 'password': None,\n",
" 'platform': 'linux'},\n",
" 'dev4.group_2': {'name': 'dev4.group_2',\n",
" 'connection_options': {'paramiko': {'extras': None,\n",
Expand All @@ -320,17 +320,17 @@
" 'data': {'my_var': 'comes_from_dev4.group_2', 'role': 'db'},\n",
" 'hostname': 'localhost',\n",
" 'port': 65023,\n",
" 'username': 'root',\n",
" 'password': 'docker',\n",
" 'username': None,\n",
" 'password': None,\n",
" 'platform': 'linux'},\n",
" 'dev5.no_group': {'name': 'dev5.no_group',\n",
" 'connection_options': {},\n",
" 'groups': [],\n",
" 'data': {},\n",
" 'hostname': 'localhost',\n",
" 'port': 65024,\n",
" 'username': 'root',\n",
" 'password': 'docker',\n",
" 'username': None,\n",
" 'password': None,\n",
" 'platform': 'linux'}},\n",
" 'groups': {'parent_group': {'name': 'parent_group',\n",
" 'connection_options': {'dummy': {'extras': {'blah': 'from_group'},\n",
Expand All @@ -349,36 +349,36 @@
" 'data': {'a_var': 'blah', 'a_false_var': False},\n",
" 'hostname': None,\n",
" 'port': None,\n",
" 'username': 'root',\n",
" 'username': None,\n",
" 'password': 'from_parent_group',\n",
" 'platform': 'linux'},\n",
" 'platform': None},\n",
" 'group_1': {'name': 'group_1',\n",
" 'connection_options': {},\n",
" 'groups': ['parent_group'],\n",
" 'data': {'my_var': 'comes_from_group_1', 'site': 'site1'},\n",
" 'hostname': None,\n",
" 'port': None,\n",
" 'username': 'root',\n",
" 'username': None,\n",
" 'password': 'from_group1',\n",
" 'platform': 'linux'},\n",
" 'platform': None},\n",
" 'group_2': {'name': 'group_2',\n",
" 'connection_options': {},\n",
" 'groups': [],\n",
" 'data': {'site': 'site2'},\n",
" 'hostname': None,\n",
" 'port': None,\n",
" 'username': 'root',\n",
" 'password': 'docker',\n",
" 'platform': 'linux'},\n",
" 'username': None,\n",
" 'password': None,\n",
" 'platform': None},\n",
" 'group_3': {'name': 'group_3',\n",
" 'connection_options': {},\n",
" 'groups': [],\n",
" 'data': {'site': 'site2'},\n",
" 'hostname': None,\n",
" 'port': None,\n",
" 'username': 'root',\n",
" 'password': 'docker',\n",
" 'platform': 'linux'}},\n",
" 'username': None,\n",
" 'password': None,\n",
" 'platform': None}},\n",
" 'defaults': {'data': {'my_var': 'comes_from_defaults',\n",
" 'only_default': 'only_defined_in_default'},\n",
" 'connection_options': {'dummy': {'extras': {'blah': 'from_defaults'},\n",
Expand Down Expand Up @@ -420,7 +420,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.8.2"
"version": "3.7.10"
}
},
"nbformat": 4,
Expand Down
Loading
Loading