Skip to content

Commit 785c7ac

Browse files
committed
Misc updates, bump version to 2.5.0rc1
1 parent 093c903 commit 785c7ac

File tree

7 files changed

+41
-10
lines changed

7 files changed

+41
-10
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/

CHANGELOG.rst

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
version 2.5.0rc1
2+
----------------------------------------------------------
3+
* Support REPL for modbus server (only python3 and asyncio)
4+
* Fix REPL client for write requests
5+
* Fix examples
6+
* Asyncio server
7+
* Asynchronous server (with custom datablock)
8+
* Fix version info for servers
9+
* Fix and enhancements to Tornado clients (seril and tcp)
10+
* Fix and enhancements to Asyncio client and server
11+
* Update Install instructions
12+
* Synchronous client retry on empty and error enhancments
13+
* Add new modbus state `RETRYING`
14+
* Support runtime response manipulations for Servers
15+
* Bug fixes with logging module in servers
16+
* Asyncio modbus serial server support
117

218
Version 2.4.0
319
----------------------------------------------------------

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ ifeq ($(PYVER),3.6)
4545
@pytest --cov=pymodbus/ --cov-report term-missing test/test_server_asyncio.py test
4646
@coverage report --fail-under=90 -i
4747
else
48-
@pytest --cov=pymodbus/ --cov-report term-missing
48+
@pytest --cov-config=.coveragerc --cov=pymodbus/ --cov-report term-missing --ignore test/test_server_asyncio.py test
4949
@coverage report --fail-under=90 -i
5050
endif
5151

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

pymodbus/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ def __str__(self):
4141
return '[%s, version %s]' % (self.package, self.short())
4242

4343

44-
version = Version('pymodbus', 2, 4, 0)
44+
version = Version('pymodbus', 2, 5, 0, "rc1")
4545

4646
version.__name__ = 'pymodbus' # fix epydoc error
4747

setup.py

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,15 @@
2323
try:
2424
from setup_commands import command_classes
2525
except ImportError:
26-
command_classes={}
26+
command_classes = {}
2727
from pymodbus import __version__, __author__, __maintainer__
28+
from pymodbus.utilities import IS_PYTHON3
2829

30+
CONSOLE_SCRIPTS = [
31+
'pymodbus.console=pymodbus.repl.client.main:main'
32+
]
33+
if IS_PYTHON3:
34+
CONSOLE_SCRIPTS.append('pymodbus.server=pymodbus.repl.server.main:server')
2935
with open('requirements.txt') as reqs:
3036
install_requires = [
3137
line for line in reqs.read().split('\n')
@@ -89,14 +95,20 @@
8995
'tornado': [
9096
'tornado == 4.5.3'
9197
],
92-
'repl': [
98+
99+
'repl:python_version <= "2.7"': [
93100
'click>=7.0',
94101
'prompt-toolkit==2.0.4',
95-
'pygments==2.2.0'
102+
'pygments>=2.2.0'
103+
],
104+
'repl:python_version >= "3.6"': [
105+
'click>=7.0',
106+
'prompt-toolkit>=3.0.8',
107+
'pygments>=2.2.0'
96108
]
97109
},
98110
entry_points={
99-
'console_scripts': ['pymodbus.console=pymodbus.repl.main:main'],
111+
'console_scripts': CONSOLE_SCRIPTS,
100112
},
101113
test_suite='nose.collector',
102114
cmdclass=command_classes,

0 commit comments

Comments
 (0)