Skip to content

Commit 5433f5a

Browse files
authored
update to python version 3.9 (#660)
* update to python version 3.9 * update check
1 parent 79d321f commit 5433f5a

File tree

9 files changed

+24
-23
lines changed

9 files changed

+24
-23
lines changed

.github/actions/build-vsix/action.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,11 @@ runs:
1515
node-version: ${{ inputs.node_version }}
1616
cache: 'npm'
1717

18-
# Minimum supported version is Python 3.8
19-
- name: Use Python 3.8
18+
# Minimum supported version is Python 3.9
19+
- name: Use Python 3.9
2020
uses: actions/setup-python@v5
2121
with:
22-
python-version: 3.8
22+
python-version: 3.9
2323

2424
- name: Pip cache
2525
uses: actions/cache@v4

.github/actions/lint/action.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ runs:
3030
- name: Install Python
3131
uses: actions/setup-python@v5
3232
with:
33-
python-version: '3.8'
33+
python-version: '3.9'
3434

3535
- name: Pip cache
3636
uses: actions/cache@v4

.github/workflows/pr-check.yml

+5-5
Original file line numberDiff line numberDiff line change
@@ -45,19 +45,19 @@ jobs:
4545
fail-fast: false
4646
matrix:
4747
os: [ubuntu-latest, windows-latest]
48-
python: ['3.8', '3.9', '3.10', '3.11']
48+
python: ['3.9', '3.10', '3.11', '3.12', '3.13']
4949

5050
steps:
5151
- name: Checkout
5252
uses: actions/checkout@v4
5353
with:
5454
path: ${{ env.special-working-directory-relative }}
5555

56-
# Install bundled libs using 3.8 even though you test it on other versions.
57-
- name: Use Python 3.8
56+
# Install bundled libs using 3.9 even though you test it on other versions.
57+
- name: Use Python 3.9
5858
uses: actions/setup-python@v5
5959
with:
60-
python-version: '3.8'
60+
python-version: '3.9'
6161

6262
- name: Update pip, install pipx and install wheel
6363
run: python -m pip install -U pip pipx wheel
@@ -78,7 +78,7 @@ jobs:
7878
- name: Install dependencies (npm ci)
7979
run: npm ci
8080

81-
# Now that the bundle is installed to target using python 3.8
81+
# Now that the bundle is installed to target using python 3.9
8282
# switch back the python we want to test with
8383
- name: Use Python ${{ matrix.python }}
8484
uses: actions/setup-python@v5

.github/workflows/push-check.yml

+5-5
Original file line numberDiff line numberDiff line change
@@ -50,19 +50,19 @@ jobs:
5050
fail-fast: false
5151
matrix:
5252
os: [ubuntu-latest, windows-latest]
53-
python: ['3.8', '3.9', '3.10', '3.11']
53+
python: ['3.9', '3.10', '3.11', '3.12', '3.13']
5454

5555
steps:
5656
- name: Checkout
5757
uses: actions/checkout@v4
5858
with:
5959
path: ${{ env.special-working-directory-relative }}
6060

61-
# Install bundled libs using 3.8 even though you test it on other versions.
62-
- name: Use Python 3.8
61+
# Install bundled libs using 3.9 even though you test it on other versions.
62+
- name: Use Python 3.9
6363
uses: actions/setup-python@v5
6464
with:
65-
python-version: '3.8'
65+
python-version: '3.9'
6666

6767
- name: Update pip, install pipx and install wheel
6868
run: python -m pip install -U pip pipx wheel
@@ -83,7 +83,7 @@ jobs:
8383
- name: Install dependencies (npm ci)
8484
run: npm ci
8585

86-
# Now that the bundle is installed to target using python 3.8
86+
# Now that the bundle is installed to target using python 3.9
8787
# switch back the python we want to test with
8888
- name: Use Python ${{ matrix.python }}
8989
uses: actions/setup-python@v5

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ You can reference the table below to find the most recent Python Debugger extens
4646
| 2.7, >= 3.5 | 2023.1.XXX | 1.5.1 |
4747
| >= 3.7 | 2024.0.XXX | 1.7.0 |
4848
| >= 3.8 | 2024.2.XXX | 1.8.1 |
49+
| >= 3.9 | 2025.5.XXX | 1.8.13 |
4950

5051

5152
> **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.

build/azure-pipeline.pre-release.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ extends:
6363

6464
- task: UsePythonVersion@0
6565
inputs:
66-
versionSpec: '3.8'
66+
versionSpec: '3.9'
6767
addToPath: true
6868
architecture: 'x64'
6969
displayName: Select Python version

build/azure-pipeline.stable.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ extends:
5858

5959
- task: UsePythonVersion@0
6060
inputs:
61-
versionSpec: '3.8'
61+
versionSpec: '3.9'
6262
addToPath: true
6363
architecture: 'x64'
6464
displayName: Select Python version

requirements.txt

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
#
2-
# This file is autogenerated by pip-compile with Python 3.7
2+
# This file is autogenerated by pip-compile with Python 3.9
33
# by the following command:
44
#
55
# pip-compile --generate-hashes ./requirements.in
66
#
7-
packaging==23.2 \
8-
--hash=sha256:048fb0e9405036518eaaf48a55953c750c11e1a1b68e0dd1a9d62ed0c092cfc5 \
9-
--hash=sha256:8c491190033a9af7e1d931d0b5dacc2ef47509b34dd0de67ed209b5203fc88c7
10-
# via -r requirements.in
7+
packaging==24.2 \
8+
--hash=sha256:09abb1bccd265c01f4a3aa3f7a7db064b36514d2cba19a2f694fe6150451a759 \
9+
--hash=sha256:c228a6dc5e932d346bc5739379109d49e8853dd8223571c7c5b55260edc0b97f
10+
# via -r ./requirements.in

src/extension/debugger/adapter/factory.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ export class DebugAdapterDescriptorFactory implements IDebugAdapterDescriptorFac
159159
}
160160
const prompts = [Interpreters.changePythonInterpreter, Common.doNotShowAgain];
161161
const selection = await showErrorMessage(
162-
l10n.t('The debugger in the python extension no longer supports python versions minor than 3.8.'),
162+
l10n.t('The debugger in the python extension no longer supports python versions minor than 3.9.'),
163163
{ modal: true },
164164
...prompts,
165165
);
@@ -181,7 +181,7 @@ export class DebugAdapterDescriptorFactory implements IDebugAdapterDescriptorFac
181181
if (interpreter) {
182182
if (
183183
(interpreter.version?.major ?? 0) < 3 ||
184-
((interpreter.version?.major ?? 0) <= 3 && (interpreter.version?.minor ?? 0) <= 7)
184+
((interpreter.version?.major ?? 0) <= 3 && (interpreter.version?.minor ?? 0) <= 8)
185185
) {
186186
this.showDeprecatedPythonMessage();
187187
}

0 commit comments

Comments
 (0)