Skip to content

Commit

Permalink
Merge pull request #1288 from lebovski/JP-0
Browse files Browse the repository at this point in the history
support for pythjon3.12
  • Loading branch information
dineshbaburam91 committed Jan 12, 2024
2 parents 53054ea + 7d46fcd commit 3f26cc6
Show file tree
Hide file tree
Showing 73 changed files with 1,447 additions and 856 deletions.
52 changes: 25 additions & 27 deletions .github/workflows/pylint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,35 +13,33 @@ jobs:

strategy:
matrix:
os: [ubuntu-latest, windows-latest]
python-version: [3.7, 3.8, 3.9]
os: [ ubuntu-latest, windows-latest ]
python-version: [ 3.9, '3.10', 3.11, 3.12 ]
exclude:
- os: windows-latest
python-version: 3.8
- os: windows-latest
python-version: 3.9

steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pylint
pip install -r requirements.txt
pip install -r development.txt
pip install ntc_templates==1.4.1
pip install textfsm==0.4.1
pip install .
- name: Run black tool
run: |
pip install -U black;
black --check --diff --exclude="docs|build|tests|samples" .
- name: Run unit tests
run: |
nosetests -v --with-coverage --cover-package=jnpr.junos --cover-inclusive -a unit
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pylint
pip install -r requirements.txt
pip install -r development.txt
pip install ntc_templates==1.4.1
pip install textfsm==0.4.1
pip install .
- name: Run black tool
run: |
pip install -U black;
black --check --diff --exclude="docs|build|tests|samples" .
- name: Run unit tests
run: |
nose2 --with-coverage -vvv tests.unit
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ develop-eggs
.installed.cfg
lib64
env
.venv

# Documentation
docs/_build
Expand All @@ -42,6 +43,8 @@ MANIFEST

# Testing
.tox
foo_*
testfile

# Vagrant
.vagrant
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ _Junos PyEZ_ is designed to provide the same capabilities as a user would have o

## PIP

Installation requires Python >=3.5 and associated `pip` tool
Installation requires Python >=3.8 and associated `pip` tool

pip install junos-eznc

Expand Down
2 changes: 1 addition & 1 deletion development.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

coverage # http://nedbatchelder.com/code/coverage/
mock # http://www.voidspace.org.uk/python/mock/
nose # http://nose.readthedocs.org/en/latest/
nose2 # https://docs.nose2.io/en/latest/
pep8 # https://github.com/jcrocholl/pep8
pyflakes # https://launchpad.net/pyflakes
coveralls # https://coveralls.io/
Expand Down
Loading

0 comments on commit 3f26cc6

Please sign in to comment.