Skip to content

Commit 053aa88

Browse files
committed
travis-ci: verify different msgpack library versions
Also bump msgpack PyPI package name in requirements.txt. See the note about the library name change in [1]: | Package name on PyPI was changed to msgpack from 0.5. I choose versions for testing this way: we have 0.4.0 in requirements.txt, so it is the baseline. We should test at least 0.4.0, 0.5.0, 0.6.0 and 1.0.0. I also added 0.6.2, because this version is installed on my Gentoo box and because it is the last release before 1.0.0. [1]: https://github.com/msgpack/msgpack-python/blob/8fb709f2e0438862020d8810fa70a81fb5dac7d4/README.md Follows up #155
1 parent 542ba75 commit 053aa88

File tree

3 files changed

+16
-2
lines changed

3 files changed

+16
-2
lines changed

Diff for: .travis.yml

+9
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,15 @@ cache: false
88
env:
99
matrix:
1010
- TARGET=test
11+
PYTHON_MSGPACK=msgpack-python==0.4.0
12+
- TARGET=test
13+
PYTHON_MSGPACK=msgpack==0.5.0
14+
- TARGET=test
15+
PYTHON_MSGPACK=msgpack==0.6.0
16+
- TARGET=test
17+
PYTHON_MSGPACK=msgpack==0.6.2
18+
- TARGET=test
19+
PYTHON_MSGPACK=msgpack==1.0.0
1120
- OS=el DIST=6
1221
- OS=el DIST=7
1322
- OS=fedora DIST=28

Diff for: requirements.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
msgpack-python>=0.4.0
1+
msgpack>=0.4.0

Diff for: test.sh

+6-1
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,13 @@ echo "deb http://download.tarantool.org/tarantool/2x/ubuntu/ ${release} main" |
99
sudo apt-get update > /dev/null
1010
sudo apt-get -q -y install tarantool
1111

12+
# Install module requirements.
13+
#
14+
# Keep it in sync with requirements.txt.
15+
pip install "${PYTHON_MSGPACK:-msgpack==1.0.0}"
16+
python -c 'import msgpack; print(msgpack.version)'
17+
1218
# Install testing dependencies.
13-
pip install -r requirements.txt
1419
pip install pyyaml
1520

1621
# Run tests.

0 commit comments

Comments
 (0)