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

JP-0 | feat: support for pythjon3.12 #1288

Merged
merged 1 commit into from
Jan 12, 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
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
Loading