Skip to content

Commit 0418685

Browse files
authored
chore: update python minimum to 3.9 (#561)
1 parent bb6ac63 commit 0418685

File tree

14 files changed

+69
-69
lines changed

14 files changed

+69
-69
lines changed

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

Lines changed: 3 additions & 3 deletions
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@v4
2121
with:
22-
python-version: 3.8
22+
python-version: 3.9
2323

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

.github/actions/lint/action.yml

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

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

.github/workflows/pr-check.yml

Lines changed: 7 additions & 7 deletions
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', '3.12']
48+
python: ['3.9', '3.10', '3.11', '3.12', '3.13']
4949

5050
steps:
5151
- name: Checkout
5252
uses: actions/checkout@v3
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 wheel and nox
6363
run: python -m pip install -U pip wheel nox
@@ -68,7 +68,7 @@ jobs:
6868
run: python -m nox --session install_bundled_libs
6969
shell: bash
7070

71-
# Now that the bundle is installed to target using python 3.8
71+
# Now that the bundle is installed to target using python 3.9
7272
# switch back the python we want to test with
7373
- name: Use Python ${{ matrix.python }}
7474
uses: actions/setup-python@v5
@@ -112,10 +112,10 @@ jobs:
112112
cache: 'npm'
113113
cache-dependency-path: ${{ env.special-working-directory-relative }}/package-lock.json
114114

115-
- name: Use Python 3.8
115+
- name: Use Python 3.9
116116
uses: actions/setup-python@v5
117117
with:
118-
python-version: '3.8'
118+
python-version: '3.9'
119119

120120
- name: Update pip, install wheel and nox
121121
run: python -m pip install -U pip wheel nox

.github/workflows/push-check.yml

Lines changed: 5 additions & 5 deletions
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', '3.12']
53+
python: ['3.9', '3.10', '3.11', '3.12', '3.13']
5454

5555
steps:
5656
- name: Checkout
5757
uses: actions/checkout@v3
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 wheel and nox
6868
run: python -m pip install -U pip wheel nox
@@ -73,7 +73,7 @@ jobs:
7373
run: python -m nox --session install_bundled_libs
7474
shell: bash
7575

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

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# Formatter extension for Visual Studio Code using the Black formatter
22

3-
A Visual Studio Code extension with support for the Black formatter. The extension ships with `black=24.8.0`.
3+
A Visual Studio Code extension with support for the Black formatter. The extension ships with `black=25.1.0`.
44

5-
> Note: The minimum version of Black this extension supports is `22.3.0`.
5+
> Note: The minimum version of Black this extension supports is `25.1.0`.
66
77
This extension includes support for all [actively supported versions](https://devguide.python.org/#status-of-python-branches) of the Python language.
88

build/azure-pipeline.pre-release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ extends:
3737

3838
- task: UsePythonVersion@0
3939
inputs:
40-
versionSpec: '3.8'
40+
versionSpec: '3.9'
4141
addToPath: true
4242
architecture: 'x64'
4343
displayName: Select Python version

build/azure-pipeline.stable.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ extends:
3434

3535
- task: UsePythonVersion@0
3636
inputs:
37-
versionSpec: '3.8'
37+
versionSpec: '3.9'
3838
addToPath: true
3939
architecture: 'x64'
4040
displayName: Select Python version

bundled/tool/lsp_server.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,7 @@ def on_shutdown(_params: Optional[Any] = None) -> None:
293293

294294

295295
def _update_workspace_settings_with_version_info(
296-
workspace_settings: dict[str, Any]
296+
workspace_settings: dict[str, Any],
297297
) -> None:
298298
for settings in workspace_settings.values():
299299
try:

noxfile.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,14 +106,14 @@ def _setup_template_environment(session: nox.Session) -> None:
106106
_install_bundle(session)
107107

108108

109-
@nox.session(python="3.8")
109+
@nox.session(python="3.9")
110110
def install_bundled_libs(session):
111111
"""Installs the libraries that will be bundled with the extension."""
112112
session.install("wheel")
113113
_install_bundle(session)
114114

115115

116-
@nox.session(python="3.8")
116+
@nox.session(python="3.9")
117117
def setup(session: nox.Session) -> None:
118118
"""Sets up the extension for development."""
119119
_setup_template_environment(session)

requirements.in

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
# This file is used to generate requirements.txt.
22
# To update requirements.txt, run the following commands.
3-
# Use Python 3.8 when creating the environment or using pip-tools
4-
# 1) python -m pip install pip-tools
5-
# 2) pip-compile --generate-hashes --upgrade --resolver=backtracking ./requirements.in
3+
# Use `uv` with Python 3.9 when creating the environment.
4+
#
5+
# Run following command:
6+
# uv pip compile --generate-hashes --upgrade -o ./requirements.txt ./requirements.in
67

78
pygls
89
packaging

0 commit comments

Comments
 (0)