From d452706f37f9d5d2a473352c05e14b1be3660e80 Mon Sep 17 00:00:00 2001 From: Riccardo Date: Tue, 3 Dec 2019 12:28:43 -0800 Subject: [PATCH] add requirements.txt --- Dockerfile | 3 ++- README.md | 2 +- requirements.txt | 7 +++++++ 3 files changed, 10 insertions(+), 2 deletions(-) create mode 100644 requirements.txt diff --git a/Dockerfile b/Dockerfile index c8ef0534..e1053137 100644 --- a/Dockerfile +++ b/Dockerfile @@ -7,8 +7,9 @@ ENV PATH="/root/.pyenv/bin:/root/.pyenv/shims:${PATH}" RUN pyenv install 3.7.3 RUN pyenv global 3.7.3 RUN pyenv rehash -RUN pip3 install pyyaml==5.1.2 Cython==0.29.14 scons==3.1.1 pycapnp==0.6.4 Jinja2==2.10.3 +COPY requirements.txt /tmp/ +RUN pip install -r /tmp/requirements.txt ENV PYTHONPATH=/project diff --git a/README.md b/README.md index eec42dfe..c11cf3fd 100644 --- a/README.md +++ b/README.md @@ -42,7 +42,7 @@ For example: SG_ VEHICLE_SPEED : 7|15@0+ (0.01,0) [0|250] "kph" PCM ``` -- Signal's size: always use the smallest amount of bits possible. For example, let's say I'm reverse engineering the gas pedal position and I've determined that it's in a 3 bytes message. For 0% pedal position I read a message value of `0x00 0x00 0x00`, while for 100% of pedal position I read `0x64 0x00 0x00`: clearly, the gas pedal position is within the first byte of the message and I might be tempted to define the signal `GAS_POS` as: +- Signal size: always use the smallest amount of bits possible. For example, let's say I'm reverse engineering the gas pedal position and I've determined that it's in a 3 bytes message. For 0% pedal position I read a message value of `0x00 0x00 0x00`, while for 100% of pedal position I read `0x64 0x00 0x00`: clearly, the gas pedal position is within the first byte of the message and I might be tempted to define the signal `GAS_POS` as: ``` SG_ GAS_POS : 7|8@0+ (1,0) [0|100] "%" PCM ``` diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 00000000..c1ac27ec --- /dev/null +++ b/requirements.txt @@ -0,0 +1,7 @@ +Cython==0.29.14 +flake8==3.7.9 +Jinja2==2.10.3 +pycapnp==0.6.4 +pylint==2.4.3 +pyyaml==5.1.2 +scons==3.1.1