Skip to content

Commit de2c3ea

Browse files
feature: 2.0.0 Release
- Remove poetry configuration - Base Python is 3.7.5 - Update pip to 19.3.1, virtualenv to 16.7.7, pre-commit to 1.20.0 - Install gcc into the image
1 parent 1924b7f commit de2c3ea

File tree

3 files changed

+26
-9
lines changed

3 files changed

+26
-9
lines changed

CHANGELOG.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,16 @@
1+
# 2.0.0 (2019-10-29)
2+
3+
- **Breaking change:** By default poetry will create virtualenv, while install
4+
project dependencies
5+
- Base `py37` Python is 3.7.5
6+
- Base `py36` Python is 3.6.10
7+
- Base `py35` Python is 3.5.8
8+
- Update pip to 19.3.1
9+
- Update virtualenv to 16.7.7
10+
- Update pre-commit to 1.20.0
11+
- As `black==19.10b0` requires `regex`, preinstall [gcc](https://gcc.gnu.org)
12+
into the image
13+
114
# 1.2.0 (2019-09-10)
215

316
- Install pre-commit & tox to user site packages, not to system site packages

Dockerfile

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,16 @@
1-
FROM python:3.7.4-slim-stretch
1+
FROM python:3.7.5-slim-stretch
22

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 apt update -qq && apt upgrade -y && apt install -y curl git locales locales-all make nano openssh-client && apt autoremove -y
6+
RUN apt update -qq && apt upgrade -y && apt install -y curl gcc git locales locales-all make nano openssh-client && apt autoremove -y
77

88
ENV PATH="/root/.local/bin:/root/.poetry/bin:${PATH}"
99

10-
RUN pip install pip==19.2.3 virtualenv==16.7.5
11-
RUN pip install --user pre-commit==1.18.3 tox==3.14.0
10+
RUN pip install pip==19.3.1 pre-commit==1.20.0 tox==3.14.0 virtualenv==16.7.7
1211

1312
ENV POETRY_VERSION=0.12.17
1413
RUN curl -sSL https://raw.githubusercontent.com/sdispater/poetry/master/get-poetry.py | python
1514

16-
RUN poetry config settings.virtualenvs.create false
17-
1815
WORKDIR /app
1916
CMD ["python3"]

README.md

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,16 @@ FROM playpauseandstop/docker-python
1414

1515
### Included dev-tools
1616

17-
- [pip](https://pip.pypa.io) 19.2.3
18-
- [virtualenv](https://virtualenv.pypa.io) 16.7.5
17+
- [pip](https://pip.pypa.io) 19.3.1
18+
- [virtualenv](https://virtualenv.pypa.io) 16.7.7
1919
- [poetry](https://poetry.eustace.io) 0.12.17
20-
- [pre-commit](https://pre-commit.com) 1.18.3
20+
- [pre-commit](https://pre-commit.com) 1.20.0
2121
- [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) &
2525
[locales-all](https://packages.debian.org/stretch/locales-all)
26+
- [gcc](https://gcc.gnu.org) 6.3.0
2627
- [make](https://www.gnu.org/software/make) 4.1
2728
- [nano](https://www.nano-editor.org) 2.7.4
2829
- [openssh-client](https://packages.debian.org/stretch/openssh-client)
@@ -34,6 +35,12 @@ other versions supported as well.
3435

3536
List of supported Python versions are (`<PY_VERSION>` -> base Docker image):
3637

38+
#### 2.0.0
39+
40+
- `py35` -> `python:3.5.8-slim-stretch`
41+
- `py36` -> `python:3.6.10-slim-stretch`
42+
- `py37` -> `python:3.7.5-slim-stretch`
43+
3744
#### 1.1.x & 1.2.x
3845

3946
- `py35` -> `python:3.5.7-slim-stretch`

0 commit comments

Comments
 (0)