Skip to content

Commit

Permalink
0.2.0 (2022-05-12)
Browse files Browse the repository at this point in the history
------------------
* [new] itcp(all=True), stcp(all=True), ivlan(all=True), svlan(all=True), iip, nip, sip
* [change] Ranges.ports > Ranges.numbers
* arithmetic, list, set methods for Ranges
  • Loading branch information
vprusakovs committed May 12, 2022
1 parent 6d5fd2f commit 24dedcc
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 7 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
CHANGELOG
=========

0.2.0 (2022-05-07)
0.2.0 (2022-05-12)
------------------
* [new] itcp(all=True), stcp(all=True), ivlan(all=True), svlan(all=True), iip, nip, sip
* [change] Ranges.ports > Ranges.numbers
Expand Down
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ Object implements most of the `set <https://www.w3schools.com/python/python_ref_
=============== =========================== ============================================================================
Parameter Type Description
=============== =========================== ============================================================================
items *str*, *List[int]* Range of numbers. Numbers can be unsorted and duplicated
items *str*, *List[int]* Range of numbers. Numbers can be unsorted and duplicated.
splitter *str* Separator character between items, by default ","
range_splitter *str* Separator between min and max numbers in range, by default "-"
strict *bool* True - Raise ValueError, if in items is invalid item. False - Make Range without invalid items. By default True.
Expand Down
2 changes: 1 addition & 1 deletion netports/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
]

__version__ = "0.2.0"
__date__ = "2022-05-07"
__date__ = "2022-05-12"
__title__ = "netports"

__summary__ = "A collection of Python objects and functions " \
Expand Down
3 changes: 1 addition & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,8 @@

import pathlib

from setuptools import setup, find_packages # type: ignore

import netports as package
from setuptools import setup, find_packages # type: ignore

VERSION = "0.2.0"
PACKAGE = package.__title__
Expand Down
3 changes: 1 addition & 2 deletions tests/test__vlan.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
import unittest

import dictdiffer # type: ignore

from netports import vlan

ALL_VLANS = list(range(1, 4095))
Expand Down Expand Up @@ -98,7 +97,7 @@ def test_valid__update_splitters(self):
dict(platform="hpe", splitter=" ", range_splitter=" to ")),
]:
result = vlan._update_splitters(**kwargs)
diff = list(dictdiffer.diff(first=result, second=req_d))
diff = list(dictdiffer.diff(result, req_d))
self.assertEqual(diff, [], msg=f"{kwargs=}")


Expand Down

0 comments on commit 24dedcc

Please sign in to comment.