Skip to content
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: 11 additions & 11 deletions .github/workflows/py3-packages-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.7]
python-version: [3.9]
steps:
- name: Checkout code
uses: actions/checkout@v2
Expand Down Expand Up @@ -56,10 +56,10 @@ jobs:
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Python 3.7
- name: Set up Python 3.9
uses: actions/setup-python@v2
with:
python-version: 3.7
python-version: 3.9
- name: Install dependencies
run: |
python -m pip install pip -U
Expand All @@ -74,10 +74,10 @@ jobs:
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Python 3.7
- name: Set up Python 3.9
uses: actions/setup-python@v2
with:
python-version: 3.7
python-version: 3.9
- name: Install dependencies
run: |
python -m pip install pip -U
Expand Down Expand Up @@ -107,10 +107,10 @@ jobs:
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Python 3.7
- name: Set up Python 3.9
uses: actions/setup-python@v2
with:
python-version: 3.7
python-version: 3.9
- name: Install dependencies
run: |
python -m pip install pip -U
Expand All @@ -134,10 +134,10 @@ jobs:
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Python 3.7
- name: Set up Python 3.9
uses: actions/setup-python@v2
with:
python-version: 3.7
python-version: 3.9
- name: Install dependencies
run: |
python -m pip install pip -U
Expand Down Expand Up @@ -170,10 +170,10 @@ jobs:
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Python 3.7
- name: Set up Python 3.9
uses: actions/setup-python@v2
with:
python-version: 3.7
python-version: 3.9
- name: Install dependencies
run: |
python -m pip install pip -U
Expand Down
50 changes: 23 additions & 27 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,27 +1,23 @@

repos:
- repo: https://github.com/timothycrosley/isort
rev: 5.6.4
hooks:
- id: isort
language_version: python3.7
exclude: '/mibs'
- repo: https://github.com/python/black
rev: 20.8b1
hooks:
- id: black
language_version: python3.7
exclude: '/mibs'
- repo: https://gitlab.com/pycqa/flake8
rev: 3.8.4
hooks:
- id: flake8
additional_dependencies: [
flake8-docstrings,
flake8-builtins,
flake8-comprehensions,
flake8-print,
flake8-eradicate,
]
language_version: python3.7
exclude: '/mibs'
repos:
- repo: https://github.com/PyCQA/isort
rev: 5.13.2
hooks:
- id: isort
exclude: '/mibs'
- repo: https://github.com/psf/black
rev: 24.8.0
hooks:
- id: black
exclude: '/mibs'
- repo: https://github.com/PyCQA/flake8
rev: 7.1.1
hooks:
- id: flake8
additional_dependencies: [
flake8-docstrings,
flake8-builtins,
flake8-comprehensions,
flake8-print,
flake8-eradicate,
]
exclude: '/mibs'
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,9 @@ def connect(self, prompt, logger):
self._handler.get_socket().send(telnetlib.IAC + telnetlib.WILL + telnetlib.ECHO)

action_map = OrderedDict()
action_map[
"[Ll]ogin:|[Uu]ser:|[Uu]sername:"
] = lambda session, logger: session.send_line(session.username, logger)
action_map["[Ll]ogin:|[Uu]ser:|[Uu]sername:"] = (
lambda session, logger: session.send_line(session.username, logger)
)
action_map["[Pp]assword:"] = lambda session, logger: session.send_line(
session.password, logger
)
Expand Down
5 changes: 3 additions & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
setuptools>=40.0
cloudshell-shell-flows>=1.0,<2
cloudshell-cli>=4.0,<5
cloudshell-snmp>=4.0,<5
passlib==1.7.4
cloudshell-snmp>=6.0,<7.0
passlib==1.7.4
standard-telnetlib>=3.13; python_version >= "3.13"
9 changes: 8 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,15 @@
packages=find_packages(),
install_requires=required,
tests_require=required_for_tests,
python_requires="~=3.7",
python_requires=">=3.9",
version=version_from_file,
classifiers=[
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
],
package_data={"": ["*.txt"]},
description="Quali checkpoint specific package",
include_package_data=True,
Expand Down
6 changes: 3 additions & 3 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# and then run "tox" from this directory.
[tox]
envlist =
py{37}-{master,dev}
py{39}-{master,dev}
pre-commit
build
distshare = dist
Expand All @@ -27,7 +27,7 @@ commands = pre-commit run --all-files --show-diff-on-failure
[testenv:build]
skip_install = true
commands =
python setup.py -q sdist --format zip
python setup.py -q sdist
python setup.py -q bdist_wheel

[isort]
Expand All @@ -39,5 +39,5 @@ skip = mibs
max-line-length = 88
;we don't need have docstrings in every func, class and package
;and W503 is not PEP 8 compliant
ignore = D100,D101,D102,D103,D104,D105,D106,D107,D401,W503,E203
ignore = D100,D101,D102,D103,D104,D105,D106,D107,D401,W503,E203,E741
exclude = mibs
2 changes: 1 addition & 1 deletion version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.0.4
1.1.0
Loading