Skip to content

Commit 91e2243

Browse files
author
sodn
committed
Conflicts
2 parents a28d928 + 328caec commit 91e2243

File tree

8 files changed

+70
-13
lines changed

8 files changed

+70
-13
lines changed

connector/Makefile

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,10 @@ PYTHON = python3
3232
TESTCMD = cd tests; runAll
3333
DISTDIR = $(BUILDDIR)/dist
3434

35+
DEPENDENCIES = "paramiko >= 1.15.1" "lxml >= 3.3.0" \
36+
"ncclient >= 0.6.6" grpcio protobuf
37+
38+
3539
.PHONY: clean package distribute distribute_staging distribute_staging_external\
3640
develop undevelop populate_dist_dir help docs distribute_docs test
3741

@@ -85,7 +89,8 @@ develop:
8589
@echo ""
8690

8791
@pip3 uninstall -y yang.connector || true
88-
@$(PYTHON) setup.py develop -q
92+
@pip install $(DEPENDENCIES)
93+
@pip install -e . --no-deps
8994

9095
@echo "Completed building and installing: $@"
9196
@echo ""
@@ -98,7 +103,7 @@ undevelop:
98103
@echo "Uninstalling $(PKG_NAME) development distributable: $@"
99104
@echo ""
100105

101-
@$(PYTHON) setup.py develop -q --uninstall
106+
@pip uninstall $(PKG_NAME) -y
102107

103108
@echo "Completed uninstalling: $@"
104109
@echo ""
Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
January 2025
2+
==========
3+
4+
- Yang v25.1
5+
------------------------
6+
7+
8+
9+
.. csv-table:: New Module Versions
10+
:header: "Modules", "Version"
11+
12+
``yang.connector``, v25.1
13+
``yang.ncdiff``, v25.1
14+
15+
16+
17+
18+
Changelogs
19+
^^^^^^^^^^
20+
21+
yang.connector
22+
""""""""""""""
23+
--------------------------------------------------------------------------------
24+
New
25+
--------------------------------------------------------------------------------
26+
27+
* yang.connector
28+
* Added support for GRPC_MAX_RECEIVE_MESSAGE_LENGTH and GRPC_MAX_SEND_MESSAGE_LENGTH attributes to pick up from testbed settings.
29+
30+
31+
--------------------------------------------------------------------------------
32+
Fix
33+
--------------------------------------------------------------------------------
34+
35+
* yang.connector
36+
* Deprecated python3 setup.py
37+
* Fix syntax warning
38+
39+
40+
41+
yang.ncdiff
42+
"""""""""""
43+
--------------------------------------------------------------------------------
44+
Fix
45+
--------------------------------------------------------------------------------
46+
47+
* yang.ncdiff
48+
* Deprecated python3 setup.py
49+
* Fix syntax warning
50+
51+

connector/docs/changelog/index.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ Changelog
44
.. toctree::
55
:maxdepth: 2
66

7+
2025/january
78
2024/november
89
2024/october
910
2024/September

connector/docs/changelog/undistributed/changelog_add_grcp.rst

Lines changed: 0 additions & 5 deletions
This file was deleted.

connector/src/yang/connector/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"""
88

99
# metadata
10-
__version__ = '24.11'
10+
__version__ = '25.1'
1111
__author__ = (
1212
'Jonathan Yang <[email protected]>',
1313
'Siming Yuan <[email protected]',

ncdiff/Makefile

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,10 @@ PYTHON = python3
3232
TESTCMD = cd tests; runAll
3333
DISTDIR = $(BUILDDIR)/dist
3434

35+
DEPENDENCIES = "pyang >= 1.7.3" "ncclient >= 0.6.3" \
36+
"requests >= 2.18.4" "xmljson >= 0.1.9" \
37+
"yang.connector >= 3.0.0"
38+
3539
.PHONY: clean package distribute distribute_staging distribute_staging_external\
3640
develop undevelop populate_dist_dir help docs distribute_docs test
3741

@@ -84,7 +88,8 @@ develop:
8488
@echo ""
8589

8690
@pip3 uninstall -y yang.ncdiff || true
87-
@$(PYTHON) setup.py develop -q
91+
@pip install $(DEPENDENCIES)
92+
@pip install -e . --no-deps
8893

8994
@echo "Completed building and installing: $@"
9095
@echo ""
@@ -97,7 +102,7 @@ undevelop:
97102
@echo "Uninstalling $(PKG_NAME) development distributable: $@"
98103
@echo ""
99104

100-
@$(PYTHON) setup.py develop -q --uninstall
105+
@pip uninstall $(PKG_NAME) -y
101106

102107
@echo "Completed uninstalling: $@"
103108
@echo ""
@@ -157,4 +162,4 @@ changelogs:
157162
@echo "yang.ncdiff changelog created..."
158163
@echo ""
159164
@echo "Done."
160-
@echo ""
165+
@echo ""

ncdiff/src/yang/ncdiff/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
edit-config message."""
55

66
# metadata
7-
__version__ = '24.11'
7+
__version__ = '25.1'
88
__author__ = 'Jonathan Yang <[email protected]>'
99
__contact__ = '[email protected]'
1010
__copyright__ = 'Cisco Systems, Inc.'

ncdiff/src/yang/ncdiff/ref.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -362,7 +362,7 @@ def parse_square_bracket(self, to_node=None):
362362
self.cut(start_idx+1, end_idx-2, tag, 2)
363363
start_idx = None
364364
else:
365-
if re.search('^\[[1-9][0-9]*\]$', substring):
365+
if re.search(r'^\[[1-9][0-9]*\]$', substring):
366366
numbers = substring[1:-1]
367367
self.cut(start_idx+1, end_idx-1, numbers, 2)
368368
else:

0 commit comments

Comments
 (0)