Gentoo Archives: gentoo-portage-dev

From: "Michał Górny" <mgorny@g.o>
To: gentoo-portage-dev@l.g.o
Cc: "Michał Górny" <mgorny@g.o>
Subject: [gentoo-portage-dev] [PATCH 14/14] travis: Install additional (pure Python) crypto providers if necessary
Date: Sun, 12 Mar 2017 19:03:58
Message-Id: 20170312190011.3234-15-mgorny@gentoo.org
In Reply to: [gentoo-portage-dev] [PATCHES] portage.checksum hacking, pt. 4 by "Michał Górny"
1 Install pysha3 to provide the SHA3 routines on Python < 3.6, and install
2 pygost to provide a Streebog implementation.
3 ---
4 .travis.yml | 9 ++++++++-
5 1 file changed, 8 insertions(+), 1 deletion(-)
6
7 diff --git a/.travis.yml b/.travis.yml
8 index 7fe3c06aa..196e3520a 100644
9 --- a/.travis.yml
10 +++ b/.travis.yml
11 @@ -8,7 +8,14 @@ python:
12 - pypy
13
14 # command to install dependencies
15 -install: "pip install lxml"
16 +install:
17 + - pip install lxml
18 + # python3.6+ has sha3 built-in, for older versions install pysha3
19 + # (except for pypy where pysha3 is broken)
20 + - "[[ ${TRAVIS_PYTHON_VERSION} == 3.[6789] || ${TRAVIS_PYTHON_VERSION} == pypy ]] || pip install pysha3"
21 + # always install pygost for Streebog
22 + # (except for py3.3 which it does not support)
23 + - "[[ ${TRAVIS_PYTHON_VERSION} == 3.3 ]] || pip install pygost"
24
25 script:
26 - printf "[build_ext]\nportage-ext-modules=true" >> setup.cfg
27 --
28 2.12.0