Skip to content

Commit 68a8a6c

Browse files
authored
Update pipelines and requirements to min python 3.9 (#337)
1 parent df2fbf6 commit 68a8a6c

12 files changed

Lines changed: 30 additions & 32 deletions

File tree

.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@v2
2121
with:
22-
python-version: '3.8'
22+
python-version: '3.9'
2323

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

.github/workflows/pr-check.yml

Lines changed: 5 additions & 5 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-dev']
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

.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-dev']
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
@@ -2,13 +2,13 @@
22

33
A Visual Studio Code extension with support for the Flake8 linter. The extension ships with `flake8==7.1.1`.
44

5-
> **Note**: The minimum version of Flake8 this extension supports is 5.0.0. If you are having issues with Flake8, please report it to [this issue tracker](https://github.com/PyCQA/flake8/issues) as this extension is just a wrapper around Flake8.
5+
> **Note**: The minimum version of Flake8 this extension supports is 7.0.0. If you are having issues with Flake8, please report it to [this issue tracker](https://github.com/PyCQA/flake8/issues) as this extension is just a wrapper around Flake8.
66
77
This extension supports all [actively supported versions](https://devguide.python.org/versions/#status-of-python-versions) of the Python language.
88

99
For more information on Flake8, see https://flake8.pycqa.org/
1010

11-
- Minimum supported version of `flake8` is `5.0.0`.
11+
- Minimum supported version of `flake8` is `7.0.0`.
1212

1313
## Usage and Features
1414

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
@@ -33,7 +33,7 @@ extends:
3333

3434
- task: UsePythonVersion@0
3535
inputs:
36-
versionSpec: '3.8'
36+
versionSpec: '3.9'
3737
addToPath: true
3838
architecture: 'x64'
3939
displayName: Select Python version

noxfile.py

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

105105

106-
@nox.session(python="3.8")
106+
@nox.session(python="3.9")
107107
def install_bundled_libs(session):
108108
"""Installs the libraries that will be bundled with the extension."""
109109
session.install("wheel")
110110
_install_bundle(session)
111111

112112

113-
@nox.session(python="3.8")
113+
@nox.session(python="3.9")
114114
def setup(session: nox.Session) -> None:
115115
"""Sets up the extension for development."""
116116
_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) pip install pip-tools
5-
# 2) pip-compile --generate-hashes --resolver=backtracking --upgrade ./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 ./requirements.in > .\requirements.txt
67

78
pygls
89
packaging

requirements.txt

Lines changed: 2 additions & 6 deletions
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 ./requirements.in
6-
#
1+
# This file was autogenerated by uv via the following command:
2+
# uv pip compile --generate-hashes ./requirements.in
73
attrs==25.1.0 \
84
--hash=sha256:1c97078a80c814273a76b2a298a932eb681c87415c11dee0a6921de7f1b02c3e \
95
--hash=sha256:c75a69e28a550a7e93789579c22aa26b0f5b83b75dc4e08fe092980051e1090a

runtime.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
python-3.8.18
1+
python-3.9.13

0 commit comments

Comments
 (0)