Skip to content

Commit 225be47

Browse files
committed
add lxml dependency
1 parent 72f1e1e commit 225be47

File tree

3 files changed

+5
-7
lines changed

3 files changed

+5
-7
lines changed

.travis.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,16 @@ python:
66
# command to install dependencies
77
install:
88
- pip install python-dateutil
9+
- pip install pytz
10+
- pip install lxml
911
- if [[ $TRAVIS_PYTHON_VERSION == '3.4' ]]; then pip install cryptography ; fi
10-
- if [[ $TRAVIS_PYTHON_VERSION == '3.4' ]]; then pip install pytz ; fi
1112
- if [[ $TRAVIS_PYTHON_VERSION == '2.7' ]]; then pip install futures ; fi
1213
- if [[ $TRAVIS_PYTHON_VERSION == '2.7' ]]; then pip install cryptography ; fi
1314
- if [[ $TRAVIS_PYTHON_VERSION == '2.7' ]]; then pip install trollius ; fi
1415
- if [[ $TRAVIS_PYTHON_VERSION == '2.7' ]]; then pip install enum34 ; fi
15-
- if [[ $TRAVIS_PYTHON_VERSION == '2.7' ]]; then pip install pytz ; fi
1616
#- if [[ $TRAVIS_PYTHON_VERSION == 'pypy3' ]]; then pip install cryptography ; fi
1717
- if [[ $TRAVIS_PYTHON_VERSION == 'pypy' ]]; then pip install futures ; fi
1818
- if [[ $TRAVIS_PYTHON_VERSION == 'pypy' ]]; then pip install trollius ; fi
1919
- if [[ $TRAVIS_PYTHON_VERSION == 'pypy' ]]; then pip install enum34 ; fi
20-
- if [[ $TRAVIS_PYTHON_VERSION == 'pypy' ]]; then pip install pytz ; fi
2120
# command to run tests
2221
script: ./run-tests.sh

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ OPC UA binary protocol implementation is quasi complete and has been tested agai
1313

1414
Most low level code is autogenerated from xml specification, thus adding missing functionnality to client or server is often trivial.
1515

16-
Using Python > 3.4 the dependencies are cryptography and dateutil. If using python 2.7 or pypy < 3 you also need to install enum34, trollius(asyncio), and futures(concurrent.futures), with pip for example.
16+
Using Python > 3.4 the dependencies are cryptography,dateutil and lxml. If using python 2.7 or pypy < 3 you also need to install enum34, trollius(asyncio), and futures(concurrent.futures), with pip for example.
1717

1818
coveryage.py reports a test coverage of over 90% of code, most of non-tested code is autogenerate code that is not used yet.
1919

setup.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,9 @@
22

33
import sys
44

5+
install_requires = ["python-dateutil", "pytz", "lxml"]
56
if sys.version_info[0] < 3:
6-
install_requires = ["python-dateutil", "enum34", "trollius", "futures", "pytz"]
7-
else:
8-
install_requires = ["python-dateutil", "pytz"]
7+
install_requires.extend(["enum34", "trollius", "futures"])
98

109
setup(name="freeopcua",
1110
version="0.90.0",

0 commit comments

Comments
 (0)