File tree Expand file tree Collapse file tree 1 file changed +11
-10
lines changed Expand file tree Collapse file tree 1 file changed +11
-10
lines changed Original file line number Diff line number Diff line change @@ -39,18 +39,19 @@ RUN git clone https://github.com/pyenv/pyenv.git .pyenv
3939ENV PYENV_ROOT /.pyenv
4040ENV PATH $PYENV_ROOT/shims:$PYENV_ROOT/bin:$PATH
4141
42- # Set minimum supported Python version
43- RUN pyenv install 3.6:latest
44- RUN pyenv install 3.7:latest
45- RUN pyenv install 3.8:latest
46- RUN pyenv install 3.9:latest
42+ # Setup python version
43+ ENV PYTHON_VERSIONS 3.6 3.7 3.8 3.9
44+
45+ RUN for version in $PYTHON_VERSIONS; do \
46+ pyenv install $version:latest; \
47+ done
4748RUN pyenv rehash
4849RUN pyenv global $(pyenv versions --bare --skip-aliases)
4950
5051# Install Latest pip and setuptools for each environment
5152# https://pip.pypa.io/en/stable/news/
52- RUN python -m pip install --upgrade pip
53- RUN python -m pip install --upgrade setuptools
54-
55- # Install Python Testing Tools
56- RUN python -m pip install coverage tox
53+ RUN for version in $PYTHON_VERSIONS; do \
54+ python$version -m pip install -U pip && \
55+ python$version -m pip install -U setuptools && \
56+ python$version -m pip install -U coverage tox tox-factor; \
57+ done
You can’t perform that action at this time.
0 commit comments