Skip to content

Commit 55791cb

Browse files
feat: Update py311 image to 3.11.0 (#70)
As well as, - Update pip to 22.3 - Update poetry to 1.2.2 - Update virtualenv to 20.16.6
1 parent 46bfa4a commit 55791cb

3 files changed

Lines changed: 35 additions & 8 deletions

File tree

Dockerfile

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM python:3.11.0rc2-slim-bullseye as python-base
1+
FROM python:3.11.0-slim-bullseye as python-base
22

33
LABEL maintainer="Igor Davydenko <iam@igordavydenko.com>"
44
LABEL description="Add poetry, pre-commit and tox installed via pipx as well as other system dev tools to official Python slim Docker image."
@@ -35,15 +35,15 @@ ENV PATH="${PIPX_BIN_DIR}:${PATH}"
3535
# To check latest versions,
3636
#
3737
# ```bash
38-
# pip-latest-release pip pipx poetry pre-commit tox virtualenv
38+
# ./scripts/pip-latest-release.sh pip pipx poetry pre-commit tox virtualenv
3939
# ```
4040
#
41-
ENV PIP_VERSION="22.2.2"
41+
ENV PIP_VERSION="22.3"
4242
ENV PIPX_VERSION="1.1.0"
43-
ENV POETRY_VERSION="1.2.1"
43+
ENV POETRY_VERSION="1.2.2"
4444
ENV PRE_COMMIT_VERSION="2.20.0"
4545
ENV TOX_VERSION="3.26.0"
46-
ENV VIRTUALENV_VERSION="20.16.5"
46+
ENV VIRTUALENV_VERSION="20.16.6"
4747

4848
RUN python3 -m pip install --no-cache-dir pip==${PIP_VERSION} pipx==${PIPX_VERSION} virtualenv==${VIRTUALENV_VERSION} \
4949
&& python3 -m pipx install --pip-args=--no-cache-dir poetry==${POETRY_VERSION} \

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,12 @@ FROM playpauseandstop/docker-python:6.0.0
1313

1414
### Included dev-tools
1515

16-
- [pip](https://pip.pypa.io) 22.2.2
16+
- [pip](https://pip.pypa.io) 22.3
1717
- [pipx](https://pypa.github.io/pipx/) 1.1.0
18-
- [poetry](https://python-poetry.org) 1.2.1
18+
- [poetry](https://python-poetry.org) 1.2.2
1919
- [pre-commit](https://pre-commit.com) 2.20.0
2020
- [tox](https://tox.readthedocs.io/) 3.26.0
21-
- [virtualenv](https://virtualenv.pypa.io) 20.16.5
21+
- [virtualenv](https://virtualenv.pypa.io) 20.16.6
2222
- [curl](https://curl.haxx.se) 7.74.0
2323
- [gcc & g++](https://gcc.gnu.org) 10.2.1
2424
- [git](https://git-scm.com) 2.30.2

scripts/pip-latest-release.sh

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
#!/bin/bash
2+
#
3+
# Script to fetch latest version of requested packages from PyPI
4+
#
5+
# Requirements
6+
# ============
7+
#
8+
# - [curl](https://curl.se)
9+
# - [jq](https://stedolan.github.io/jq/)
10+
#
11+
# Usage
12+
# =====
13+
#
14+
# ```bash
15+
# ./scripts/pip-latest-release.sh PROJECT [PROJECT ...]
16+
# ```
17+
#
18+
19+
set -euo pipefail
20+
21+
function get_project_latest_version() {
22+
curl -s "https://pypi.org/pypi/${1}/json" | jq -r ".info.version"
23+
}
24+
25+
for project in "${@:1}"; do
26+
echo "${project}==$(get_project_latest_version ${project})"
27+
done

0 commit comments

Comments
 (0)