Skip to content

Commit 38a204b

Browse files
authored
Freezes extra packages to run pylint CI (#1830)
1 parent f3f4987 commit 38a204b

File tree

3 files changed

+33
-4
lines changed

3 files changed

+33
-4
lines changed

ci/helpers/install_pylint.bash

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,15 @@
77
set -euo pipefail
88
IFS=$'\n\t'
99

10+
CURDIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
11+
12+
1013
REQUIREMENTS=packages/service-library/requirements/_test.txt
1114
PYLINT_VERSION="$(grep pylint== $REQUIREMENTS | awk '{print $1}')"
1215
pip3 install "$PYLINT_VERSION"
1316

1417
# Minimal packages to pass linter
15-
pip install \
16-
celery\
17-
docker\
18-
pyjwt
18+
pip install -r $CURDIR/requirements.txt
1919

2020

2121
echo "INFO:" "$(pylint --version)" "@" "$(command -v pylint)"

ci/helpers/requirements.in

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# Minimal packages for install_pylint.bash
2+
#
3+
# NOTE: keep frozen since it caused errors in the past
4+
celery==4.4.7
5+
docker==4.3.1
6+
pyjwt==1.7.1

ci/helpers/requirements.txt

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
#
2+
# This file is autogenerated by pip-compile
3+
# To update, run:
4+
#
5+
# pip-compile requirements.in
6+
#
7+
amqp==2.6.1 # via kombu
8+
billiard==3.6.3.0 # via celery
9+
celery==4.4.7 # via -r requirements.in
10+
certifi==2020.6.20 # via requests
11+
chardet==3.0.4 # via requests
12+
docker==4.3.1 # via -r requirements.in
13+
idna==2.10 # via requests
14+
importlib-metadata==2.0.0 # via kombu
15+
kombu==4.6.11 # via celery
16+
pyjwt==1.7.1 # via -r requirements.in
17+
pytz==2020.1 # via celery
18+
requests==2.24.0 # via docker
19+
six==1.15.0 # via docker, websocket-client
20+
urllib3==1.25.10 # via requests
21+
vine==1.3.0 # via amqp, celery
22+
websocket-client==0.57.0 # via docker
23+
zipp==3.2.0 # via importlib-metadata

0 commit comments

Comments
 (0)