Skip to content

Commit bfd1a7e

Browse files
committed
chore: update python minimum to 3.9
1 parent bb6ac63 commit bfd1a7e

14 files changed

+69
-69
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@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

+1-1
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

+7-7
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

+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', '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

+2-2
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

+1-1
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

+1-1
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

+1-1
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

+2-2
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

+4-3
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

requirements.txt

+29-29
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,34 @@
1-
#
2-
# This file is autogenerated by pip-compile with Python 3.8
3-
# by the following command:
4-
#
5-
# pip-compile --generate-hashes ./requirements.in
6-
#
1+
# This file was autogenerated by uv via the following command:
2+
# uv pip compile --generate-hashes -o ./requirements.txt ./requirements.in
73
attrs==25.1.0 \
84
--hash=sha256:1c97078a80c814273a76b2a298a932eb681c87415c11dee0a6921de7f1b02c3e \
95
--hash=sha256:c75a69e28a550a7e93789579c22aa26b0f5b83b75dc4e08fe092980051e1090a
106
# via
117
# cattrs
128
# lsprotocol
13-
black==24.8.0 \
14-
--hash=sha256:09cdeb74d494ec023ded657f7092ba518e8cf78fa8386155e4a03fdcc44679e6 \
15-
--hash=sha256:1f13f7f386f86f8121d76599114bb8c17b69d962137fc70efe56137727c7047e \
16-
--hash=sha256:2500945420b6784c38b9ee885af039f5e7471ef284ab03fa35ecdde4688cd83f \
17-
--hash=sha256:2b59b250fdba5f9a9cd9d0ece6e6d993d91ce877d121d161e4698af3eb9c1018 \
18-
--hash=sha256:3c4285573d4897a7610054af5a890bde7c65cb466040c5f0c8b732812d7f0e5e \
19-
--hash=sha256:505289f17ceda596658ae81b61ebbe2d9b25aa78067035184ed0a9d855d18afd \
20-
--hash=sha256:62e8730977f0b77998029da7971fa896ceefa2c4c4933fcd593fa599ecbf97a4 \
21-
--hash=sha256:649f6d84ccbae73ab767e206772cc2d7a393a001070a4c814a546afd0d423aed \
22-
--hash=sha256:6e55d30d44bed36593c3163b9bc63bf58b3b30e4611e4d88a0c3c239930ed5b2 \
23-
--hash=sha256:707a1ca89221bc8a1a64fb5e15ef39cd755633daa672a9db7498d1c19de66a42 \
24-
--hash=sha256:72901b4913cbac8972ad911dc4098d5753704d1f3c56e44ae8dce99eecb0e3af \
25-
--hash=sha256:73bbf84ed136e45d451a260c6b73ed674652f90a2b3211d6a35e78054563a9bb \
26-
--hash=sha256:7c046c1d1eeb7aea9335da62472481d3bbf3fd986e093cffd35f4385c94ae368 \
27-
--hash=sha256:81c6742da39f33b08e791da38410f32e27d632260e599df7245cccee2064afeb \
28-
--hash=sha256:837fd281f1908d0076844bc2b801ad2d369c78c45cf800cad7b61686051041af \
29-
--hash=sha256:972085c618ee94f402da1af548a4f218c754ea7e5dc70acb168bfaca4c2542ed \
30-
--hash=sha256:9e84e33b37be070ba135176c123ae52a51f82306def9f7d063ee302ecab2cf47 \
31-
--hash=sha256:b19c9ad992c7883ad84c9b22aaa73562a16b819c1d8db7a1a1a49fb7ec13c7d2 \
32-
--hash=sha256:d6417535d99c37cee4091a2f24eb2b6d5ec42b144d50f1f2e436d9fe1916fe1a \
33-
--hash=sha256:eab4dd44ce80dea27dc69db40dab62d4ca96112f87996bca68cd75639aeb2e4c \
34-
--hash=sha256:f490dbd59680d809ca31efdae20e634f3fae27fba3ce0ba3208333b713bc3920 \
35-
--hash=sha256:fb6e2c0b86bbd43dee042e48059c9ad7830abd5c94b0bc518c0eeec57c3eddc1
9+
black==25.1.0 \
10+
--hash=sha256:030b9759066a4ee5e5aca28c3c77f9c64789cdd4de8ac1df642c40b708be6171 \
11+
--hash=sha256:055e59b198df7ac0b7efca5ad7ff2516bca343276c466be72eb04a3bcc1f82d7 \
12+
--hash=sha256:0e519ecf93120f34243e6b0054db49c00a35f84f195d5bce7e9f5cfc578fc2da \
13+
--hash=sha256:172b1dbff09f86ce6f4eb8edf9dede08b1fce58ba194c87d7a4f1a5aa2f5b3c2 \
14+
--hash=sha256:1e2978f6df243b155ef5fa7e558a43037c3079093ed5d10fd84c43900f2d8ecc \
15+
--hash=sha256:33496d5cd1222ad73391352b4ae8da15253c5de89b93a80b3e2c8d9a19ec2666 \
16+
--hash=sha256:3b48735872ec535027d979e8dcb20bf4f70b5ac75a8ea99f127c106a7d7aba9f \
17+
--hash=sha256:4b60580e829091e6f9238c848ea6750efed72140b91b048770b64e74fe04908b \
18+
--hash=sha256:759e7ec1e050a15f89b770cefbf91ebee8917aac5c20483bc2d80a6c3a04df32 \
19+
--hash=sha256:8f0b18a02996a836cc9c9c78e5babec10930862827b1b724ddfe98ccf2f2fe4f \
20+
--hash=sha256:95e8176dae143ba9097f351d174fdaf0ccd29efb414b362ae3fd72bf0f710717 \
21+
--hash=sha256:96c1c7cd856bba8e20094e36e0f948718dc688dba4a9d78c3adde52b9e6c2299 \
22+
--hash=sha256:a1ee0a0c330f7b5130ce0caed9936a904793576ef4d2b98c40835d6a65afa6a0 \
23+
--hash=sha256:a22f402b410566e2d1c950708c77ebf5ebd5d0d88a6a2e87c86d9fb48afa0d18 \
24+
--hash=sha256:a39337598244de4bae26475f77dda852ea00a93bd4c728e09eacd827ec929df0 \
25+
--hash=sha256:afebb7098bfbc70037a053b91ae8437c3857482d3a690fefc03e9ff7aa9a5fd3 \
26+
--hash=sha256:bacabb307dca5ebaf9c118d2d2f6903da0d62c9faa82bd21a33eecc319559355 \
27+
--hash=sha256:bce2e264d59c91e52d8000d507eb20a9aca4a778731a08cfff7e5ac4a4bb7096 \
28+
--hash=sha256:d9e6827d563a2c820772b32ce8a42828dc6790f095f441beef18f96aa6f8294e \
29+
--hash=sha256:db8ea9917d6f8fc62abd90d944920d95e73c83a5ee3383493e35d271aca872e9 \
30+
--hash=sha256:ea0213189960bda9cf99be5b8c8ce66bb054af5e9e861249cd23471bd7b0b3ba \
31+
--hash=sha256:f3df5f1bf91d36002b0a75389ca8663510cf0531cca8aa5c1ef695b46d98655f
3632
# via -r ./requirements.in
3733
cattrs==24.1.2 \
3834
--hash=sha256:67c7495b760168d931a10233f979b28dc04daf853b30752246f4f8471c6d68d0 \
@@ -44,6 +40,10 @@ click==8.1.8 \
4440
--hash=sha256:63c132bbbed01578a06712a2d1f497bb62d9c1c0d329b7903a866228027263b2 \
4541
--hash=sha256:ed53c9d8990d83c2a27deae68e4ee337473f6330c040a31d4225c9574d16096a
4642
# via black
43+
colorama==0.4.6 \
44+
--hash=sha256:08695f5cb7ed6e0531a20572697297273c47b8cae5a63ffc6d6ed5c201be6e44 \
45+
--hash=sha256:4f1d9991f5acc0ca119f9d443620b77f9d6b33703e51011c16baf57afb285fc6
46+
# via click
4747
exceptiongroup==1.2.2 \
4848
--hash=sha256:3111b9d131c238bec2f8f516e123e14ba243563fb135d3fe885990585aa7795b \
4949
--hash=sha256:47c2edf7c6738fafb49fd34290706d1a1a2f4d1c6df275526b62cbb4aa5393cc

runtime.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
python-3.8.18
1+
python-3.9.13

src/test/python_tests/requirements.in

+4-3
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 ./src/test/python_tests/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 ./src/test/python_tests/requirements.txt ./src/test/python_tests/requirements.in
67

78
pygls
89
pytest

src/test/python_tests/requirements.txt

+8-10
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,5 @@
1-
#
2-
# This file is autogenerated by pip-compile with Python 3.8
3-
# by the following command:
4-
#
5-
# pip-compile --generate-hashes ./src/test/python_tests/requirements.in
6-
#
1+
# This file was autogenerated by uv via the following command:
2+
# uv pip compile --generate-hashes -o ./src/test/python_tests/requirements.txt ./src/test/python_tests/requirements.in
73
attrs==25.1.0 \
84
--hash=sha256:1c97078a80c814273a76b2a298a932eb681c87415c11dee0a6921de7f1b02c3e \
95
--hash=sha256:c75a69e28a550a7e93789579c22aa26b0f5b83b75dc4e08fe092980051e1090a
@@ -19,7 +15,9 @@ cattrs==24.1.2 \
1915
colorama==0.4.6 \
2016
--hash=sha256:08695f5cb7ed6e0531a20572697297273c47b8cae5a63ffc6d6ed5c201be6e44 \
2117
--hash=sha256:4f1d9991f5acc0ca119f9d443620b77f9d6b33703e51011c16baf57afb285fc6
22-
# via -r ./src/test/python_tests/requirements.in
18+
# via
19+
# -r ./src/test/python_tests/requirements.in
20+
# pytest
2321
exceptiongroup==1.2.2 \
2422
--hash=sha256:3111b9d131c238bec2f8f516e123e14ba243563fb135d3fe885990585aa7795b \
2523
--hash=sha256:47c2edf7c6738fafb49fd34290706d1a1a2f4d1c6df275526b62cbb4aa5393cc
@@ -50,9 +48,9 @@ pyhamcrest==2.1.0 \
5048
--hash=sha256:c6acbec0923d0cb7e72c22af1926f3e7c97b8e8d69fc7498eabacaf7c975bd9c \
5149
--hash=sha256:f6913d2f392e30e0375b3ecbd7aee79e5d1faa25d345c8f4ff597665dcac2587
5250
# via -r ./src/test/python_tests/requirements.in
53-
pytest==8.3.4 \
54-
--hash=sha256:50e16d954148559c9a74109af1eaf0c945ba2d8f30f0a3d3335edde19788b6f6 \
55-
--hash=sha256:965370d062bce11e73868e0335abac31b4d3de0e82f4007408d242b4f8610761
51+
pytest==8.3.5 \
52+
--hash=sha256:c69214aa47deac29fad6c2a4f590b9c4a9fdb16a403176fe154b79c0b4d4d820 \
53+
--hash=sha256:f4efe70cc14e511565ac476b57c279e12a855b11f48f212af1080ef2263d3845
5654
# via -r ./src/test/python_tests/requirements.in
5755
python-jsonrpc-server==0.4.0 \
5856
--hash=sha256:62c543e541f101ec5b57dc654efc212d2c2e3ea47ff6f54b2e7dcb36ecf20595 \

0 commit comments

Comments
 (0)