-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
94 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# set base image (host OS) | ||
FROM python:3.8 | ||
|
||
# set the working directory in the container | ||
WORKDIR /code | ||
|
||
# install make | ||
RUN apt-get update && apt-get install -y \ | ||
make \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
# copy the dependencies file to the working directory | ||
COPY requirements.txt . | ||
# copy the dev-dependencies file to the working directory | ||
|
||
COPY requirements-dev.txt . | ||
|
||
# install dependencies | ||
RUN pip install -r requirements.txt | ||
# install dev dependencies | ||
RUN pip install -r requirements-dev.txt | ||
|
||
|
||
# copy the source to container working directory | ||
COPY testslide ./testslide | ||
COPY tests ./tests | ||
COPY util ./util | ||
COPY Makefile . | ||
COPY mypy.ini . | ||
|
||
# command to run on container start | ||
CMD ["/usr/bin/make", "tests"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
black | ||
coverage | ||
coveralls | ||
flake8 | ||
isort~=5.1 | ||
mypy==0.782 | ||
ipython | ||
sphinx | ||
sphinx-autobuild | ||
sphinx-kr-theme | ||
twine |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
psutil>=5.6.7 | ||
Pygments>=2.6.1 | ||
typeguard>=2.10.0 | ||
dataclasses==0.6; python_version < "3.7" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters