File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- FROM python:3.11.0rc2 -slim-bullseye as python-base
1+ FROM python:3.11.0 -slim-bullseye as python-base
22
33LABEL maintainer="Igor Davydenko <iam@igordavydenko.com>"
44LABEL 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 "
4242ENV PIPX_VERSION="1.1.0"
43- ENV POETRY_VERSION="1.2.1 "
43+ ENV POETRY_VERSION="1.2.2 "
4444ENV PRE_COMMIT_VERSION="2.20.0"
4545ENV TOX_VERSION="3.26.0"
46- ENV VIRTUALENV_VERSION="20.16.5 "
46+ ENV VIRTUALENV_VERSION="20.16.6 "
4747
4848RUN 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} \
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments