netsplit 0.3.0__tar.gz → 0.3.3__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: netsplit
3
- Version: 0.3.0
3
+ Version: 0.3.3
4
4
  Summary: Netsplit can help slice and dice your IP space
5
5
  Author: Nikos Chasiotis
6
6
  Author-email: hasiotis@gmail.com
@@ -58,8 +58,3 @@ Make sure to check examples for complex network plans:
58
58
 
59
59
  ![Multicloud Plan](/examples/img/netsplit-multicloud.png)
60
60
 
61
- ## Links
62
-
63
- * [Releases](https://pypi.org/project/netsplit/)
64
- * [Code](https://github.com/hasiotis/netsplit)
65
-
@@ -40,8 +40,3 @@ We can render it with:
40
40
  Make sure to check examples for complex network plans:
41
41
 
42
42
  ![Multicloud Plan](/examples/img/netsplit-multicloud.png)
43
-
44
- ## Links
45
-
46
- * [Releases](https://pypi.org/project/netsplit/)
47
- * [Code](https://github.com/hasiotis/netsplit)
@@ -81,7 +81,7 @@ def pprint_plan(options, prefixes, max_level, keyword, reserved):
81
81
  t.add_column(" #", justify="right")
82
82
  t.add_column(options["description"])
83
83
  t.add_column("Subnet")
84
- t.add_column("idx+ext/slots", justify="right")
84
+ t.add_column("idx/slots", justify="right")
85
85
  t.add_column("IPs", justify="right")
86
86
 
87
87
  for p in prefixes:
@@ -98,9 +98,9 @@ def pprint_plan(options, prefixes, max_level, keyword, reserved):
98
98
  index_value = ""
99
99
  if p['slots'] != 1:
100
100
  if p['extend'] == 0:
101
- index_value = f"{p['index']:3} / {p['slots']:3}"
101
+ index_value = f"{p['index']:3} / {p['slots']:3}"
102
102
  else:
103
- index_value = f"{p['index']:3} + {p['extend']} / {p['slots']:3}"
103
+ index_value = f"{p['index']:3} → {p['index']+2**p['extend']-1:2} / {p['slots']:3}"
104
104
 
105
105
  t.add_row(
106
106
  f"{STYLE}{RESERVED}{p['level']}",
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "netsplit"
3
- version = "0.3.0"
3
+ version = "0.3.3"
4
4
  description = "Netsplit can help slice and dice your IP space"
5
5
  authors = ["Nikos Chasiotis <hasiotis@gmail.com>"]
6
6
  readme = "README.md"
@@ -19,10 +19,19 @@ netsplit = 'netsplit.cli:cli'
19
19
  pre-commit = "^3.6.0"
20
20
  pytest = "^7.4.3"
21
21
  jsonpickle = "^3.0.2"
22
+ commitizen = "^3.13.0"
22
23
 
23
24
  [tool.pytest.ini_options]
24
25
  addopts = "-ra -q"
25
26
 
27
+
28
+ [tool.commitizen]
29
+ name = "cz_conventional_commits"
30
+ tag_format = "v$version"
31
+ version_scheme = "semver"
32
+ version_provider = "poetry"
33
+ update_changelog_on_bump = true
34
+ major_version_zero = true
26
35
  [build-system]
27
36
  requires = ["poetry-core"]
28
37
  build-backend = "poetry.core.masonry.api"
File without changes
File without changes