Skip to content

Commit 6d94727

Browse files
feature: Do not install pre-commit & tox to system site packages.
Also updates all Python dev tools to latest versions. Fixes: #1
1 parent 7be27d1 commit 6d94727

3 files changed

Lines changed: 17 additions & 7 deletions

File tree

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
# 1.2.0 (2019-09-10)
2+
3+
- Install pre-commit & tox to user site packages, not to system site packages
4+
- Update pip to 19.2.3
5+
- Update virtualenv to 16.7.5
6+
- Update pre-commit to 1.18.3
7+
- Update tox to 3.14.0
8+
19
# 1.1.0 (2019-07-11)
210

311
- Base `py37` Python is 3.7.4

Dockerfile

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,15 @@ FROM python:3.7.4-slim-stretch
33
LABEL maintainer="Igor Davydenko <iam@igordavydenko.com>"
44
LABEL description="Add poetry, pre-commit, and other dev-tools to official Python slim stretch Docker image."
55

6-
RUN pip install pip==19.1.1 pre-commit==1.17.0 tox==3.13.2 virtualenv==16.6.1
6+
RUN apt update && apt upgrade -y && apt install -y curl git locales locales-all make nano openssh-client && apt autoremove -y
7+
8+
RUN pip install pip==19.2.3 virtualenv==16.7.5
9+
RUN pip install --no-warn-script-location --user pre-commit==1.18.3 tox==3.14.0
710

811
ENV POETRY_VERSION=0.12.17
9-
RUN apt update && apt upgrade -y && apt install -y curl git locales locales-all make nano openssh-client && apt autoremove -y
1012
RUN curl -sSL https://raw.githubusercontent.com/sdispater/poetry/master/get-poetry.py | python
1113

12-
ENV PATH="/root/.poetry/bin:${PATH}"
14+
ENV PATH="/root/.local/bin:/root/.poetry/bin:${PATH}"
1315
RUN poetry config settings.virtualenvs.create false
1416

1517
WORKDIR /app

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@ FROM playpauseandstop/docker-python
1414

1515
### Included dev-tools
1616

17-
- [pip](https://pip.pypa.io) 19.1.1
18-
- [virtualenv](https://virtualenv.pypa.io) 16.6.1
17+
- [pip](https://pip.pypa.io) 19.2.3
18+
- [virtualenv](https://virtualenv.pypa.io) 16.7.5
1919
- [poetry](https://poetry.eustace.io) 0.12.17
20-
- [pre-commit](https://pre-commit.com) 1.17.0
21-
- [tox](https://tox.readthedocs.io/) 3.13.2
20+
- [pre-commit](https://pre-commit.com) 1.18.3
21+
- [tox](https://tox.readthedocs.io/) 3.14.0
2222
- [curl](https://curl.haxx.se) 7.52.1
2323
- [git](https://git-scm.com) 2.11.0
2424
- [locales](https://packages.debian.org/stretch/locales) &

0 commit comments

Comments
 (0)