Skip to content

Commit 9380116

Browse files
committed
Add correct release version to PyStageLinQ messages
PyStageLinQ will now post correct version when sending discovery frames. This is only valid for PyPi released versions.
1 parent 84ee093 commit 9380116

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

PyStageLinQ/PyStageLinQ.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ def __init__(
5858
DeviceName=self.name,
5959
ConnectionType=ConnectionTypes.HOWDY,
6060
SwName="Python",
61-
SwVersion="1.0.0",
61+
SwVersion="0.0.1",
6262
ReqServicePort=self.REQUESTSERVICEPORT,
6363
)
6464

make_release.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ echo "Version detected from git tag: $new_ver"
99
echo "Updating pyproject.toml"
1010
sed -i 's/version = "0.0.0"/version = "'$new_ver'"/' pyproject.toml
1111
sed -i 's/release = "0.0.0"/release = "'$new_ver'"/' docs/conf.py
12+
sed -i 's/SwVersion="0.0.1"/SwVersion="'$new_ver'"/' PyStageLinQ/PyStageLinQ.py
1213

1314

1415
rm dist/* -f

tests/unit/test_unit_PyStageLinQ.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ def test_init_values(dummy_pystagelinq, dummy_ip):
4949
assert dummy_pystagelinq.discovery_info.DeviceName == name
5050
assert dummy_pystagelinq.discovery_info.ConnectionType is "DISCOVERER_HOWDY_"
5151
assert dummy_pystagelinq.discovery_info.SwName == "Python"
52-
assert dummy_pystagelinq.discovery_info.SwVersion == "1.0.0"
52+
assert dummy_pystagelinq.discovery_info.SwVersion == "0.0.1"
5353
assert (
5454
dummy_pystagelinq.discovery_info.ReqServicePort
5555
== dummy_pystagelinq.REQUESTSERVICEPORT
@@ -140,7 +140,7 @@ def test_internal_stop(dummy_pystagelinq, monkeypatch):
140140
DeviceName=dummy_pystagelinq.name,
141141
ConnectionType="DISCOVERER_EXIT_",
142142
SwName="Python",
143-
SwVersion="1.0.0",
143+
SwVersion="0.0.1",
144144
ReqServicePort=dummy_pystagelinq.REQUESTSERVICEPORT,
145145
)
146146
)

0 commit comments

Comments
 (0)