diff --git a/.github/actions/build-vsix/action.yml b/.github/actions/build-vsix/action.yml index 59e4b691..b34b3f6f 100644 --- a/.github/actions/build-vsix/action.yml +++ b/.github/actions/build-vsix/action.yml @@ -15,11 +15,11 @@ runs: node-version: ${{ inputs.node_version }} cache: 'npm' - # Minimum supported version is Python 3.8 - - name: Use Python 3.8 + # Minimum supported version is Python 3.9 + - name: Use Python 3.9 uses: actions/setup-python@v5 with: - python-version: 3.8 + python-version: 3.9 - name: Pip cache uses: actions/cache@v4 diff --git a/.github/actions/lint/action.yml b/.github/actions/lint/action.yml index e209abbc..83be9a49 100644 --- a/.github/actions/lint/action.yml +++ b/.github/actions/lint/action.yml @@ -30,7 +30,7 @@ runs: - name: Install Python uses: actions/setup-python@v5 with: - python-version: '3.8' + python-version: '3.9' - name: Pip cache uses: actions/cache@v4 diff --git a/.github/workflows/pr-check.yml b/.github/workflows/pr-check.yml index 98eec294..c417e888 100644 --- a/.github/workflows/pr-check.yml +++ b/.github/workflows/pr-check.yml @@ -45,7 +45,7 @@ jobs: fail-fast: false matrix: os: [ubuntu-latest, windows-latest] - python: ['3.8', '3.9', '3.10', '3.11'] + python: ['3.9', '3.10', '3.11', '3.12', '3.13'] steps: - name: Checkout @@ -53,11 +53,11 @@ jobs: with: path: ${{ env.special-working-directory-relative }} - # Install bundled libs using 3.8 even though you test it on other versions. - - name: Use Python 3.8 + # Install bundled libs using 3.9 even though you test it on other versions. + - name: Use Python 3.9 uses: actions/setup-python@v5 with: - python-version: '3.8' + python-version: '3.9' - name: Update pip, install pipx and install wheel run: python -m pip install -U pip pipx wheel @@ -78,7 +78,7 @@ jobs: - name: Install dependencies (npm ci) run: npm ci - # Now that the bundle is installed to target using python 3.8 + # Now that the bundle is installed to target using python 3.9 # switch back the python we want to test with - name: Use Python ${{ matrix.python }} uses: actions/setup-python@v5 diff --git a/.github/workflows/push-check.yml b/.github/workflows/push-check.yml index c2b1d424..b6110bc3 100644 --- a/.github/workflows/push-check.yml +++ b/.github/workflows/push-check.yml @@ -50,7 +50,7 @@ jobs: fail-fast: false matrix: os: [ubuntu-latest, windows-latest] - python: ['3.8', '3.9', '3.10', '3.11'] + python: ['3.9', '3.10', '3.11', '3.12', '3.13'] steps: - name: Checkout @@ -58,11 +58,11 @@ jobs: with: path: ${{ env.special-working-directory-relative }} - # Install bundled libs using 3.8 even though you test it on other versions. - - name: Use Python 3.8 + # Install bundled libs using 3.9 even though you test it on other versions. + - name: Use Python 3.9 uses: actions/setup-python@v5 with: - python-version: '3.8' + python-version: '3.9' - name: Update pip, install pipx and install wheel run: python -m pip install -U pip pipx wheel @@ -83,7 +83,7 @@ jobs: - name: Install dependencies (npm ci) run: npm ci - # Now that the bundle is installed to target using python 3.8 + # Now that the bundle is installed to target using python 3.9 # switch back the python we want to test with - name: Use Python ${{ matrix.python }} uses: actions/setup-python@v5 diff --git a/README.md b/README.md index d8cb9ae8..59bc8a3b 100644 --- a/README.md +++ b/README.md @@ -46,6 +46,7 @@ You can reference the table below to find the most recent Python Debugger extens | 2.7, >= 3.5 | 2023.1.XXX | 1.5.1 | | >= 3.7 | 2024.0.XXX | 1.7.0 | | >= 3.8 | 2024.2.XXX | 1.8.1 | +| >= 3.9 | 2025.5.XXX | 1.8.13 | > **Note**: Once you install an older version of the Python Debugger extension in VS Code, you may want to disable auto update by changing the value of the `"extensions.autoUpdate"` setting in your `settings.json` file. diff --git a/build/azure-pipeline.pre-release.yml b/build/azure-pipeline.pre-release.yml index 19bded7d..c97169d0 100644 --- a/build/azure-pipeline.pre-release.yml +++ b/build/azure-pipeline.pre-release.yml @@ -63,7 +63,7 @@ extends: - task: UsePythonVersion@0 inputs: - versionSpec: '3.8' + versionSpec: '3.9' addToPath: true architecture: 'x64' displayName: Select Python version diff --git a/build/azure-pipeline.stable.yml b/build/azure-pipeline.stable.yml index 6616e1b2..5a743734 100644 --- a/build/azure-pipeline.stable.yml +++ b/build/azure-pipeline.stable.yml @@ -58,7 +58,7 @@ extends: - task: UsePythonVersion@0 inputs: - versionSpec: '3.8' + versionSpec: '3.9' addToPath: true architecture: 'x64' displayName: Select Python version diff --git a/requirements.txt b/requirements.txt index 42f6cb18..6d22f396 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,10 +1,10 @@ # -# This file is autogenerated by pip-compile with Python 3.7 +# This file is autogenerated by pip-compile with Python 3.9 # by the following command: # # pip-compile --generate-hashes ./requirements.in # -packaging==23.2 \ - --hash=sha256:048fb0e9405036518eaaf48a55953c750c11e1a1b68e0dd1a9d62ed0c092cfc5 \ - --hash=sha256:8c491190033a9af7e1d931d0b5dacc2ef47509b34dd0de67ed209b5203fc88c7 - # via -r requirements.in +packaging==24.2 \ + --hash=sha256:09abb1bccd265c01f4a3aa3f7a7db064b36514d2cba19a2f694fe6150451a759 \ + --hash=sha256:c228a6dc5e932d346bc5739379109d49e8853dd8223571c7c5b55260edc0b97f + # via -r ./requirements.in diff --git a/src/extension/debugger/adapter/factory.ts b/src/extension/debugger/adapter/factory.ts index 183b75ae..c3b92394 100644 --- a/src/extension/debugger/adapter/factory.ts +++ b/src/extension/debugger/adapter/factory.ts @@ -159,7 +159,7 @@ export class DebugAdapterDescriptorFactory implements IDebugAdapterDescriptorFac } const prompts = [Interpreters.changePythonInterpreter, Common.doNotShowAgain]; const selection = await showErrorMessage( - l10n.t('The debugger in the python extension no longer supports python versions minor than 3.8.'), + l10n.t('The debugger in the python extension no longer supports python versions minor than 3.9.'), { modal: true }, ...prompts, ); @@ -181,7 +181,7 @@ export class DebugAdapterDescriptorFactory implements IDebugAdapterDescriptorFac if (interpreter) { if ( (interpreter.version?.major ?? 0) < 3 || - ((interpreter.version?.major ?? 0) <= 3 && (interpreter.version?.minor ?? 0) <= 7) + ((interpreter.version?.major ?? 0) <= 3 && (interpreter.version?.minor ?? 0) <= 8) ) { this.showDeprecatedPythonMessage(); }