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

Release 5.0.0 #35

Merged
merged 3 commits into from
Jul 2, 2024
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
18 changes: 9 additions & 9 deletions .github/workflows/commit.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@ jobs:
strategy:
max-parallel: 4
matrix:
python-version: ["3.7", "3.8", "3.9", "3.10"]
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
steps:
- name: Checkout repository
uses: actions/checkout@v2
uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
Expand All @@ -33,9 +33,9 @@ jobs:
needs: test
steps:
- name: Checkout repository
uses: actions/checkout@v2
uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v1
uses: actions/setup-python@v5
with:
python-version: 3.9
- name: Install dependencies
Expand All @@ -47,13 +47,13 @@ jobs:
python setup.py bdist_wheel --build-number $GITHUB_RUN_NUMBER
- name: Upload to test
if: github.event_name == 'push'
uses: pypa/gh-action-pypi-publish@master
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.TEST_PYPI_API_TOKEN }}
repository_url: https://test.pypi.org/legacy/
skip_existing: true
repository-url: https://test.pypi.org/legacy/
skip-existing: true
- name: Upload Pypi
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
uses: pypa/gh-action-pypi-publish@master
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.PYPI_API_TOKEN }}
4 changes: 2 additions & 2 deletions napalm_mos/mos.py
Original file line number Diff line number Diff line change
Expand Up @@ -795,7 +795,7 @@ def get_optics(self):
optics_detail[port] = port_detail
return optics_detail

def get_config(self, retrieve="all", full=False, sanitized=False):
def get_config(self, retrieve="all", full=False, sanitized=False, format="text"):
"""get_config implementation for MOS."""

get_startup = False
Expand All @@ -812,7 +812,7 @@ def get_config(self, retrieve="all", full=False, sanitized=False):
if not get_startup and not get_running:
Exception("Wrong retrieve filter: {}".format(retrieve))

output = self.device.run_commands(commands, encoding="text")
output = self.device.run_commands(commands, encoding=format)

if sanitized:
output = [
Expand Down
3 changes: 1 addition & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
napalm>=4.0.0
pyeapi>=0.8.1
napalm>=5.0.0
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

setup(
name="napalm-mos",
version="4.0.2",
version="5.0.0",
packages=find_packages(),
author="Benny Holmgren, Brandon Ewing",
author_email="benny@holmgren.id.au, brandon.ewing@warningg.com",
Expand All @@ -23,5 +23,5 @@
url="https://github.com/napalm-automation-community/napalm-mos",
include_package_data=True,
install_requires=reqs,
python_requires=">=3.7",
python_requires=">=3.8",
)
Loading