Skip to content

Commit d56749b

Browse files
authored
upgrade min python version 3.9 (#220)
* upgrade to min version 3.9 * specify colorama in requirements.in * added generate hashes
1 parent 8f474ec commit d56749b

File tree

6 files changed

+162
-116
lines changed

6 files changed

+162
-116
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ The TypeScript part handles working with VS Code and its UI. The extension templ
1313
## Requirements
1414

1515
1. VS Code 1.64.0 or greater
16-
1. Python 3.8 or greater
16+
1. Python 3.9 or greater
1717
1. node >= 18.17.0
1818
1. npm >= 8.19.0 (`npm` is installed with node, check npm version, use `npm install -g [email protected]` to update)
1919
1. Python extension for VS Code
@@ -24,7 +24,7 @@ You should know to create and work with python virtual environments.
2424

2525
1. Use this [template to create your repo](https://docs.github.com/en/repositories/creating-and-managing-repositories/creating-a-repository-from-a-template).
2626
1. Check-out your repo locally on your development machine.
27-
1. Create and activate a python virtual environment for this project in a terminal. Be sure to use the minimum version of python for your tool. This template was written to work with python 3.8 or greater.
27+
1. Create and activate a python virtual environment for this project in a terminal. Be sure to use the minimum version of python for your tool. This template was written to work with python 3.9 or greater.
2828
1. Install `nox` in the activated environment: `python -m pip install nox`.
2929
1. Add your favorite tool to `requirements.in`
3030
1. Run `nox --session setup`.

requirements.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# This file is used to generate requirements.txt.
22
# NOTE:
3-
# Use Python 3.8 or greater which ever is the minimum version of the python
3+
# Use Python 3.9 or greater which ever is the minimum version of the python
44
# you plan on supporting when creating the environment or using pip-tools.
55
# Only run the commands below to manully upgrade packages in requirements.txt:
66
# 1) python -m pip install pip-tools

requirements.txt

Lines changed: 28 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,38 @@
11
#
2-
# This file is autogenerated by pip-compile with Python 3.8
2+
# This file is autogenerated by pip-compile with Python 3.9
33
# by the following command:
44
#
5-
# pip-compile --generate-hashes ./requirements.in
5+
# pip-compile --generate-hashes --output-file=requirements.txt requirements.in
66
#
7-
attrs==23.2.0 \
8-
--hash=sha256:935dc3b529c262f6cf76e50877d35a4bd3c1de194fd41f47a2b7ae8f19971f30 \
9-
--hash=sha256:99b87a485a5820b23b879f04c2305b44b951b502fd64be915879d77a7e8fc6f1
7+
attrs==25.3.0 \
8+
--hash=sha256:427318ce031701fea540783410126f03899a97ffc6f61596ad581ac2e40e3bc3 \
9+
--hash=sha256:75d7cefc7fb576747b2c81b4442d4d4a1ce0900973527c011d1030fd3bf4af1b
1010
# via
1111
# cattrs
1212
# lsprotocol
13-
cattrs==23.2.3 \
14-
--hash=sha256:0341994d94971052e9ee70662542699a3162ea1e0c62f7ce1b4a57f563685108 \
15-
--hash=sha256:a934090d95abaa9e911dac357e3a8699e0b4b14f8529bcc7d2b1ad9d51672b9f
16-
# via lsprotocol
17-
exceptiongroup==1.2.0 \
18-
--hash=sha256:4bfd3996ac73b41e9b9628b04e079f193850720ea5945fc96a08633c66912f14 \
19-
--hash=sha256:91f5c769735f051a4290d52edd0858999b57e5876e9f85937691bd4c9fa3ed68
13+
cattrs==24.1.3 \
14+
--hash=sha256:981a6ef05875b5bb0c7fb68885546186d306f10f0f6718fe9b96c226e68821ff \
15+
--hash=sha256:adf957dddd26840f27ffbd060a6c4dd3b2192c5b7c2c0525ef1bd8131d8a83f5
16+
# via
17+
# lsprotocol
18+
# pygls
19+
exceptiongroup==1.2.2 \
20+
--hash=sha256:3111b9d131c238bec2f8f516e123e14ba243563fb135d3fe885990585aa7795b \
21+
--hash=sha256:47c2edf7c6738fafb49fd34290706d1a1a2f4d1c6df275526b62cbb4aa5393cc
2022
# via cattrs
21-
lsprotocol==2023.0.0 \
22-
--hash=sha256:c9d92e12a3f4ed9317d3068226592860aab5357d93cf5b2451dc244eee8f35f2 \
23-
--hash=sha256:e85fc87ee26c816adca9eb497bb3db1a7c79c477a11563626e712eaccf926a05
23+
lsprotocol==2023.0.1 \
24+
--hash=sha256:c75223c9e4af2f24272b14c6375787438279369236cd568f596d4951052a60f2 \
25+
--hash=sha256:cc5c15130d2403c18b734304339e51242d3018a05c4f7d0f198ad6e0cd21861d
2426
# via pygls
25-
packaging==23.2 \
26-
--hash=sha256:048fb0e9405036518eaaf48a55953c750c11e1a1b68e0dd1a9d62ed0c092cfc5 \
27-
--hash=sha256:8c491190033a9af7e1d931d0b5dacc2ef47509b34dd0de67ed209b5203fc88c7
28-
# via -r ./requirements.in
29-
pygls==1.2.1 \
30-
--hash=sha256:04f9b9c115b622dcc346fb390289066565343d60245a424eca77cb429b911ed8 \
31-
--hash=sha256:7dcfcf12b6f15beb606afa46de2ed348b65a279c340ef2242a9a35c22eeafe94
32-
# via -r ./requirements.in
33-
typing-extensions==4.9.0 \
34-
--hash=sha256:23478f88c37f27d76ac8aee6c905017a143b0b1b886c3c9f66bc2fd94f9f5783 \
35-
--hash=sha256:af72aea155e91adfc61c3ae9e0e342dbc0cba726d6cba4b6c72c1f34e47291cd
27+
packaging==24.2 \
28+
--hash=sha256:09abb1bccd265c01f4a3aa3f7a7db064b36514d2cba19a2f694fe6150451a759 \
29+
--hash=sha256:c228a6dc5e932d346bc5739379109d49e8853dd8223571c7c5b55260edc0b97f
30+
# via -r requirements.in
31+
pygls==1.3.1 \
32+
--hash=sha256:140edceefa0da0e9b3c533547c892a42a7d2fd9217ae848c330c53d266a55018 \
33+
--hash=sha256:6e00f11efc56321bdeb6eac04f6d86131f654c7d49124344a9ebb968da3dd91e
34+
# via -r requirements.in
35+
typing-extensions==4.13.1 \
36+
--hash=sha256:4b6cf02909eb5495cfbc3f6e8fd49217e6cc7944e145cdda8caa3734777f9e69 \
37+
--hash=sha256:98795af00fb9640edec5b8e31fc647597b4691f099ad75f469a2616be1a76dff
3638
# via cattrs

runtime.txt

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

src/test/python_tests/requirements.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,4 @@
1212
pytest
1313
PyHamcrest
1414
python-jsonrpc-server
15+
colorama

0 commit comments

Comments
 (0)