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
39
39
ENV PYENV_ROOT /.pyenv
40
40
ENV PATH $PYENV_ROOT/shims:$PYENV_ROOT/bin:$PATH
41
41
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.7 3.8 3.9 3.10
44
+
45
+ RUN for version in $PYTHON_VERSIONS; do \
46
+ pyenv install $version:latest; \
47
+ done
47
48
RUN pyenv rehash
48
49
RUN pyenv global $(pyenv versions --bare --skip-aliases)
49
50
50
51
# Install Latest pip and setuptools for each environment
51
52
# 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