Skip to content

Commit 2d19a5f

Browse files
Update the worker image to reference Spack for style requirements (#102)
* Update the worker image to reference Spack for style requirements * Update worker to python3.9 and run black
1 parent 06018e4 commit 2d19a5f

File tree

4 files changed

+5
-11
lines changed

4 files changed

+5
-11
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM python:3.7
1+
FROM python:3.9
22

33
EXPOSE 8080
44

spackbot/routes.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919

2020

2121
class SpackbotRouter(routing.Router):
22-
2322
"""
2423
Custom router to handle common interactions for spackbot
2524
"""

workers/Dockerfile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
1-
FROM python:3.7
1+
FROM python:3.9
22

3+
ADD https://raw.githubusercontent.com/spack/spack/refs/heads/develop/.github/workflows/requirements/style/requirements.txt /source/style-requirements.txt
34
COPY workers/requirements.txt /source/requirements.txt
45

56
RUN pip3 install --upgrade pip setuptools wheel && \
6-
pip3 install -r /source/requirements.txt
7+
pip3 install -r /source/requirements.txt && \
8+
pip3 install -r /source/style-requirements.txt
79

810
COPY workers/install_aws.sh /source/install_aws.sh
911

workers/requirements.txt

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,3 @@ gidgethub
44
python_dotenv
55
rq
66
sh
7-
8-
# Add these so we don't wait for install
9-
mypy
10-
flake8
11-
isort
12-
black
13-
clingo

0 commit comments

Comments
 (0)