Skip to content

Commit 60e605f

Browse files
committed
add lxml dependency
1 parent 5836fdd commit 60e605f

3 files changed

Lines changed: 5 additions & 11 deletions

File tree

.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 & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +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 functionality to client or server is often trivial.
1515

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

2218
coveryage.py reports a test coverage of over 90% of code, most of non-tested code is autogenerated code that is not used yet.
2319

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.2",

0 commit comments

Comments
 (0)