Skip to content

Commit 7434c5c

Browse files
committed
centralize requirements for tests
1 parent a0c37c7 commit 7434c5c

File tree

7 files changed

+14
-25
lines changed

7 files changed

+14
-25
lines changed

requirements.txt

+7-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
11
libusb1 == 1.6.6
2-
hexdump
3-
pycrypto
4-
tqdm
2+
numpy==1.17.2
3+
hexdump>=3.3
4+
pycrypto==2.6.1
5+
tqdm>=4.14.0
56
nose
67
parameterized
78
requests
9+
flake8==3.7.8
10+
pylint==2.4.2
11+
cffi==1.11.4

tests/language/Dockerfile

-1
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,4 @@ RUN pyenv install 3.7.3
1414
RUN pyenv global 3.7.3
1515
RUN pyenv rehash
1616

17-
COPY tests/safety/requirements.txt /panda/tests/safety/requirements.txt
1817
COPY . /panda

tests/linter_python/Dockerfile

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,6 @@ RUN pyenv install 3.7.3
1414
RUN pyenv global 3.7.3
1515
RUN pyenv rehash
1616

17-
COPY tests/linter_python/requirements.txt requirements.txt
18-
RUN pip install -r requirements.txt
17+
COPY requirements.txt /tmp/
18+
RUN pip install -r /tmp/requirements.txt
1919
COPY . /panda

tests/linter_python/requirements.txt

-11
This file was deleted.

tests/misra/Dockerfile

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
FROM ubuntu:16.04
22

33
RUN apt-get update && apt-get install -y make python python-pip git
4-
COPY tests/safety/requirements.txt /panda/tests/safety/requirements.txt
5-
RUN pip install -r /panda/tests/safety/requirements.txt
4+
COPY requirements.txt /tmp/
5+
RUN pip install -r /tmp/requirements.txt
66
COPY . /panda

tests/safety/Dockerfile

+3-2
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ RUN pyenv install 3.7.3
1414
RUN pyenv global 3.7.3
1515
RUN pyenv rehash
1616

17-
COPY tests/safety/requirements.txt requirements.txt
18-
RUN pip install -r requirements.txt
17+
COPY requirements.txt /tmp/
18+
RUN pip install -r /tmp/requirements.txt
19+
1920
COPY . /panda

tests/safety/requirements.txt

-4
This file was deleted.

0 commit comments

Comments
 (0)