Skip to content

Commit 7e8e7cf

Browse files
committed
Merge branch '2.5.0' into dev
2 parents d4f5f9e + ffdc15c commit 7e8e7cf

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

57 files changed

+1452
-248
lines changed

.coveragerc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,5 @@
22
omit =
33
pymodbus/repl/*
44
pymodbus/internal/*
5-
pymodbus/server/asyncio.py
5+
pymodbus/server/asyncio.py
6+
pymodbus/server/reactive/*

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,3 +37,5 @@ test/__pycache__/
3737
/doc/_build/
3838
.pytest_cache/
3939
**/.pymodhis
40+
/build/
41+
/dist/

.travis.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,12 @@ before_install:
2020

2121
install:
2222
# - scripts/travis.sh pip install pip-accel
23-
- if [ $TRAVIS_OS_NAME = osx ]; then scripts/travis.sh pip install -U "\"setuptools<45"\"; else pip install -U setuptools --upgrade ; fi
23+
- if [ $TRAVIS_OS_NAME = osx ]; then scripts/travis.sh pip install -U pip "\"setuptools<45"\"; else pip install -U pip setuptools --upgrade ; fi
2424
- scripts/travis.sh pip install coveralls
2525
- scripts/travis.sh pip install --requirement=requirements-checks.txt
2626
- scripts/travis.sh pip install --requirement=requirements-tests.txt
27-
- scripts/travis.sh LC_ALL=C pip install .
27+
- scripts/travis.sh LC_ALL=C pip install --upgrade .
28+
# - scripts/travis.sh pip freeze --all
2829
script:
2930
# - scripts/travis.sh make check
3031
- scripts/travis.sh make test

CHANGELOG.rst

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,34 @@
1+
version 2.5.0rc3
2+
----------------------------------------------------------
3+
* Minor fix in documentations
4+
* Travis fix for Mac OSX
5+
* Disable unnecessary deprecation warning while using async clients.
6+
* Use Github actions for builds in favor of travis.
7+
8+
9+
version 2.5.0rc2
10+
----------------------------------------------------------
11+
* Documentation updates
12+
* Disable `strict` mode by default.
13+
* Fix `ReportSlaveIdRequest` request
14+
* Sparse datablock initialization updates.
15+
16+
version 2.5.0rc1
17+
----------------------------------------------------------
18+
* Support REPL for modbus server (only python3 and asyncio)
19+
* Fix REPL client for write requests
20+
* Fix examples
21+
* Asyncio server
22+
* Asynchronous server (with custom datablock)
23+
* Fix version info for servers
24+
* Fix and enhancements to Tornado clients (seril and tcp)
25+
* Fix and enhancements to Asyncio client and server
26+
* Update Install instructions
27+
* Synchronous client retry on empty and error enhancments
28+
* Add new modbus state `RETRYING`
29+
* Support runtime response manipulations for Servers
30+
* Bug fixes with logging module in servers
31+
* Asyncio modbus serial server support
132

233
Version 2.4.0
334
----------------------------------------------------------

Makefile

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,20 @@ check: install
4242
test: install
4343
@pip install --upgrade --quiet --requirement=requirements-tests.txt
4444
ifeq ($(PYVER),3.6)
45+
$(info Running tests on $(PYVER))
46+
@pip install --upgrade pip --quiet
4547
@pytest --cov=pymodbus/ --cov-report term-missing test/test_server_asyncio.py test
48+
@coverage report --fail-under=85 -i
49+
else ifeq ($(PYVER),2.7)
50+
$(info Running tests on $(PYVER))
51+
@pip install pip==20.3.4 --quiet
52+
@pytest --cov-config=.coveragerc --cov=pymodbus/ --cov-report term-missing --ignore test/test_server_asyncio.py --ignore test/test_client_async_asyncio.py test
4653
@coverage report --fail-under=90 -i
4754
else
48-
@pytest --cov=pymodbus/ --cov-report term-missing
49-
@coverage report --fail-under=90 -i
55+
$(info Running tests on $(PYVER))
56+
@pip install --upgrade pip --quiet
57+
@pytest --cov=pymodbus/ --cov-report term-missing test
58+
@coverage report --fail-under=85 -i
5059
endif
5160

5261
tox: install

README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ PyModbus - A Python Modbus Stack
77
.. image:: https://badges.gitter.im/Join%20Chat.svg
88
:target: https://gitter.im/pymodbus_dev/Lobby
99
.. image:: https://readthedocs.org/projects/pymodbus/badge/?version=latest
10-
:target: http://pymodbus.readthedocs.io/en/async/?badge=latest
10+
:target: http://pymodbus.readthedocs.io/en/latest/?badge=latest
1111
:alt: Documentation Status
1212
.. image:: http://pepy.tech/badge/pymodbus
1313
:target: http://pepy.tech/project/pymodbus

doc/INSTALL

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
Requirements
22
-------------
33

4-
* Python 2.3 or later.
5-
* Python Twisted
4+
* Python 2.7 or later.
5+
* Python Twisted, Tornado or asyncio (For async client and server)
66
* Pyserial
77

88
On Windows pywin32 is recommended (this is built in to ActivePython,
@@ -35,7 +35,7 @@ much easier to run with the nose package. With that installed, you can
3535
use either of the following::
3636

3737
python setup.py test
38-
nosetests
38+
pytest
3939

4040

4141
Building Documentation

doc/source/library/REPL.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ result.raw Return raw result dict.
200200
201201
```
202202

203-
Every command has auto suggetion on the arguments supported , supply arg and value are to be supplied in `arg=val` format.
203+
Every command has auto suggestion on the arguments supported, arg and value are to be supplied in `arg=val` format.
204204
```
205205
206206
> client.read_holding_registers count=4 address=9 unit=1

examples/common/README.rst

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,11 +92,13 @@ the tools/nullmodem/linux directory::
9292

9393
sudo ./run
9494

95+
The third method is Generic Unix method below.
96+
9597
------------------------------------------------------------
9698
Windows
9799
------------------------------------------------------------
98100

99-
For Windows, simply use the com2com application that is in
101+
For Windows, simply use the com0com application that is in
100102
the directory tools/nullmodem/windows. Instructions are
101103
included in the Readme.txt.
102104

examples/common/asynchronous_server.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@
99
"""
1010
# --------------------------------------------------------------------------- #
1111
# import the various server implementations
12-
# --------------------------------------------------------------------------- #
12+
# --------------------------------------------------------------------------- #
13+
from pymodbus.version import version
1314
from pymodbus.server.asynchronous import StartTcpServer
1415
from pymodbus.server.asynchronous import StartUdpServer
1516
from pymodbus.server.asynchronous import StartSerialServer
@@ -105,10 +106,10 @@ def run_async_server():
105106
identity = ModbusDeviceIdentification()
106107
identity.VendorName = 'Pymodbus'
107108
identity.ProductCode = 'PM'
108-
identity.VendorUrl = 'http://github.com/bashwork/pymodbus/'
109+
identity.VendorUrl = 'http://github.com/riptideio/pymodbus/'
109110
identity.ProductName = 'Pymodbus Server'
110111
identity.ModelName = 'Pymodbus Server'
111-
identity.MajorMinorRevision = '2.3.0'
112+
identity.MajorMinorRevision = version.short()
112113

113114
# ----------------------------------------------------------------------- #
114115
# run the server you want

0 commit comments

Comments
 (0)