Skip to content

Commit 47b27c9

Browse files
committed
prepare for 0.7
1 parent 72395d1 commit 47b27c9

File tree

6 files changed

+27
-5
lines changed

6 files changed

+27
-5
lines changed

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,3 +46,7 @@ doc/_build/
4646
.idea
4747

4848
.vagrant/
49+
.virtualenv/
50+
.virtualenv3/
51+
.venv/
52+
.venv3/

CHANGES renamed to CHANGES.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,23 @@
11
CHANGES
22
=======
33

4+
0.7
5+
---
6+
7+
* util.get_int() broken (#65, #71)
8+
* fix Add files via upload bug (#59)
9+
10+
Special thanks to Pelle van der Heide for solving issues
11+
12+
413
0.6
514
---
615

716
* Add __del__ to client, server and partner (#69)
817
* Add files via upload (#59)
918

19+
Special thanks to xybsoft for solving issues
20+
1021
0.5
1122
---
1223

setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
import os
22
from distutils.core import setup
3-
from snap7 import __version__
3+
44

55
def read(fname):
66
return open(os.path.join(os.path.dirname(__file__), fname)).read()
77

88
setup(name='python-snap7',
9-
version=__version__,
9+
version='0.7',
1010
description='Python wrapper for the snap7 library',
1111
author='Gijs Molenaar',
1212
author_email='[email protected]',

snap7/__init__.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,16 @@
11
"""
22
The Snap7 Python library.
33
"""
4+
import pkg_resources
5+
46
import snap7.server as server
57
import snap7.client as client
68
import snap7.error as error
79
import snap7.snap7types as types
810
import snap7.common as common
911
import snap7.util as util
1012

11-
__version__ = '0.6'
13+
try:
14+
__version__ = pkg_resources.require("snap7")[0].version
15+
except pkg_resources.DistributionNotFound:
16+
__version__ = "0.0rc0"

test/requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ nose
22
coverage
33
tox
44
codecov
5-
5+
mock

tox.ini

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,6 @@ envlist = py27, py34, py35, py36
88

99
[testenv]
1010
commands = nosetests
11-
deps = nose
11+
deps =
12+
nose
13+
mock

0 commit comments

Comments
 (0)