diff --git a/Dockerfile b/Dockerfile index cafe069cd298ede04fd1986bc6a3c9a775042f19..1e5c5d43d3575d76d1688717d3ff0364298cb9c5 100644 --- a/Dockerfile +++ b/Dockerfile @@ -137,11 +137,11 @@ ENV CGO_ENABLED=0 # Python -RUN apt-get update && apt-get install -y python3.7-dev python3-distutils && \ +RUN apt-get update && apt-get install -y python3.8-dev python3-distutils && \ rm -rf /var/lib/apt/lists/* -RUN rm -fr /usr/bin/python3 && ln /usr/bin/python3.7 /usr/bin/python3 -RUN rm -rf /usr/bin/python && ln /usr/bin/python3.7 /usr/bin/python +RUN rm -fr /usr/bin/python3 && ln /usr/bin/python3.8 /usr/bin/python3 +RUN rm -rf /usr/bin/python && ln /usr/bin/python3.8 /usr/bin/python # Pip diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 580ca99052d4ee522aee26fc787db9ab3bdac0fd..5d8df33313d4e995394fd962c3336314a48cb06c 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -18,12 +18,12 @@ jobs: - job: 'Windows' strategy: matrix: - Node10 Py3.7: + Node10 Py3.8: nodeVersion: '10.x' - pythonVersion: '3.7' - Node12 Py3.7: + pythonVersion: '3.8' + Node12 Py3.8: nodeVersion: '12.x' - pythonVersion: '3.7' + pythonVersion: '3.8' pool: vmImage: windows-2019 steps: @@ -38,9 +38,9 @@ jobs: - job: 'Linux' strategy: matrix: - Node10 Py3.7: + Node10 Py3.8: nodeVersion: '10.x' - pythonVersion: '3.7' + pythonVersion: '3.8' pool: vmImage: ubuntu-18.04 steps: @@ -49,9 +49,9 @@ jobs: - job: 'MacOS' strategy: matrix: - Node10 Py3.7: + Node10 Py3.8: nodeVersion: '10.x' - pythonVersion: '3.7' + pythonVersion: '3.8' pool: vmImage: macOS-10.13 diff --git a/docs/development/local-development.md b/docs/development/local-development.md index 7013090c0dae270a686da151d8a1f31979a27c1f..c060902e51736bdf7d3bbb878865c0fec0af34c3 100644 --- a/docs/development/local-development.md +++ b/docs/development/local-development.md @@ -124,7 +124,7 @@ You can run just the Jest unit tests by running `yarn jest`. You can also run ju #### Prerequisites -You need to have Python with `mock` installed for all tests to pass. Version 3.7 of Python includes `mock` so that approach is recommended. +You need to have Python with `mock` installed for all tests to pass. Python 3 includes `mock` so that approach is recommended. You also need to make sure that you don't have a local `.npmrc` file that overrides npm's default registry. diff --git a/lib/manager/pip_setup/extract.ts b/lib/manager/pip_setup/extract.ts index fde3a15c72227fa68f244d0559f57a9efd48b5d1..f3c739512755896df0b5f181557b2df8a7f3b774 100644 --- a/lib/manager/pip_setup/extract.ts +++ b/lib/manager/pip_setup/extract.ts @@ -5,7 +5,7 @@ import { isSkipComment } from '../../util/ignore'; import { dependencyPattern } from '../pip_requirements/extract'; import { ExtractConfig, PackageFile, PackageDependency } from '../common'; -export const pythonVersions = ['python', 'python3', 'python3.7']; +export const pythonVersions = ['python', 'python3', 'python3.8']; let pythonAlias: string | null = null; export function parsePythonVersion(str: string): number[] { diff --git a/test/manager/pip_setup/__snapshots__/extract.spec.ts.snap b/test/manager/pip_setup/__snapshots__/extract.spec.ts.snap index 393c2d8ae448908a77a8468115259f9dc15124f2..525227158345c44e38d370fb9b7d14c82ede2e85 100644 --- a/test/manager/pip_setup/__snapshots__/extract.spec.ts.snap +++ b/test/manager/pip_setup/__snapshots__/extract.spec.ts.snap @@ -138,7 +138,7 @@ exports[`lib/manager/pip_setup/extract getPythonAlias finds python 1`] = ` "python3 --version", ], Array [ - "python3.7 --version", + "python3.8 --version", ], ], "results": Array [