Skip to content

Commit

Permalink
Remove py3.6, update dependencies, update docs (#35)
Browse files Browse the repository at this point in the history
* Update docs, update development dependencies

* Remove Python 3.6 and update dependencies

* Add tasks.networking to docs

* Remove unknown config option and update mypy python version in setup.cfg

* Update release poetry version in workflow

* Use the same actions to install poetry and build in workflow

* Fix step name in workflow
  • Loading branch information
ubaumann authored Jun 5, 2023
1 parent 3a37d64 commit 42f2166
Show file tree
Hide file tree
Showing 120 changed files with 8,702 additions and 8,391 deletions.
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

0 comments on commit 42f2166

Please sign in to comment.