Skip to content

Commit

Permalink
0.12.1 (2023-12-05)
Browse files Browse the repository at this point in the history
-------------------
* [fix] dependency packaging
  • Loading branch information
vladimirs-git committed Apr 17, 2024
1 parent 73f65f5 commit 27d197d
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 12 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@
CHANGELOG
=========

0.12.1 (2023-12-05)
-------------------
* [fix] dependency packaging


0.12.0 (2023-12-05)
-------------------
* [change] poetry
Expand Down
4 changes: 2 additions & 2 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,13 @@ or install the package from github.com release

.. code:: bash
pip install https://github.com/vladimirs-git/netports/archive/refs/tags/0.12.0.tar.gz
pip install https://github.com/vladimirs-git/netports/archive/refs/tags/0.12.1.tar.gz
or install the package from github.com repository

.. code:: bash
pip install git+https://github.com/vladimirs-git/netports@0.12.0
pip install git+https://github.com/vladimirs-git/netports@0.12.1
.. contents:: **Contents**
Expand Down
19 changes: 19 additions & 0 deletions examples/swversion.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
"""Example SwVersion."""

import re
from netports import SwVersion

text = "Cisco IOS Software, C2960X Software (C2960X-UNIVERSALK9-M), Version 15.2(4)E10, ..."
text = re.search(r"Version (\S+),", text)[1]

version1 = SwVersion(text) # 15.2(4)E10
version2 = SwVersion("15.2(4)E11")

assert version1 < version2
assert version1 <= version2
assert not version1 > version2
assert not version1 >= version2
print(version1)
print(version2)
# 15.2(4)e10
# 15.2(4)e11
13 changes: 3 additions & 10 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "netports"
version = "0.12.0"
version = "0.12.1"
description = "Python tools for managing ranges of VLANs, TCP/UDP ports, IP protocols, Interfaces"
authors = ["Vladimirs Prusakovs <vladimir.prusakovs@gmail.com>"]
readme = "README.rst"
Expand All @@ -19,6 +19,7 @@ classifiers = [

[tool.poetry.dependencies]
python = "^3.8"
packaging = "^23.2"

[tool.poetry.group.dev.dependencies]
dictdiffer = "^0.9.0"
Expand All @@ -27,17 +28,9 @@ pygments = "^2.16.1"
pylint = "^3.0.1"
pytest = "^7.4.2"
pytest-cov = "^4.1.0"
pytest-mock = "^3.12.0"
readthedocs-sphinx-search = "^0.3.1"
requests-mock = "^1.11.0"
restructuredtext-lint = "^1.4.0"
ruff = "^0.1.6"
sphinx = "7.1.2"
sphinx-rtd-theme = "^1.3.0"
sphinxnotes-strike = "^1.2"
twine = "^4.0.2"
types-pyyaml = "^6.0.12.12"
types-requests = "^2.31.0.9"
types-tabulate = "^0.9.0.3"
typing-extensions = "^4.8.0"
vhelpers = "^0.1.14"
Expand All @@ -50,7 +43,7 @@ test = ["pytest"]

[tool.poetry.urls]
"Bug Tracker" = "https://github.com/vladimirs-git/netports/issues"
"Download URL" = "https://github.com/vladimirs-git/netports/archive/refs/tags/0.12.0.tar.gz"
"Download URL" = "https://github.com/vladimirs-git/netports/archive/refs/tags/0.12.1.tar.gz"

[tool.mypy]
python_version = "3.8"
Expand Down

0 comments on commit 27d197d

Please sign in to comment.