Skip to content

Commit 95b3296

Browse files
committed
Python 3.10 is now required
1 parent 0e13fec commit 95b3296

File tree

5 files changed

+14
-9
lines changed

5 files changed

+14
-9
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,10 +83,12 @@ jobs:
8383
with:
8484
java-version: 17
8585
distribution: 'adopt'
86+
8687
- name: Install Python
8788
uses: actions/setup-python@v2
8889
with:
89-
python-version: 3.6
90+
python-version: '3.10'
91+
9092
- name: Install Go
9193
if: matrix.benchmark == false
9294
uses: actions/setup-go@v2

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ tests][test-setup].**
3939

4040
This is all for Ubuntu Linux. Details on getting ycmd running on other OS's can
4141
be found in [YCM's instructions][ycm-install] (ignore the Vim-specific parts).
42-
Note that **ycmd runs on Python 3.6.0+.**
42+
Note that **ycmd runs on Python 3.10.0+.**
4343

4444
First, install the minimal dependencies:
4545
```

build.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@ def Exit( self ):
3939
IS_64BIT = sys.maxsize > 2**32
4040
PY_MAJOR, PY_MINOR = sys.version_info[ 0 : 2 ]
4141
PY_VERSION = sys.version_info[ 0 : 3 ]
42-
if PY_VERSION < ( 3, 6, 0 ):
43-
sys.exit( 'ycmd requires Python >= 3.6.0; '
42+
if PY_VERSION < ( 3, 10, 0 ):
43+
sys.exit( 'ycmd requires Python >= 3.10.0; '
4444
'your version of Python is ' + sys.version +
4545
'\nHint: Try running python3 ' + ' '.join( sys.argv ) )
4646

examples/example_client.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,12 @@
1515
# limitations under the License.
1616

1717
import sys
18-
import platform
19-
if sys.version_info[ 0 ] < 3:
20-
sys.exit( 'example_client.py requires Python 3.6+; detected Python ' +
21-
platform.python_version() )
18+
19+
PY_VERSION = sys.version_info[ 0 : 3 ]
20+
if PY_VERSION < ( 3, 10, 0 ):
21+
sys.exit( 'ycmd requires Python >= 3.10.0; '
22+
'your version of Python is ' + sys.version +
23+
'\nHint: Try running python3 ' + ' '.join( sys.argv ) )
2224

2325
from base64 import b64encode, b64decode
2426
from hmac import compare_digest, new

ycmd/__main__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@
1818
import sys
1919
import os
2020

21-
if sys.version_info[ 0 ] < 3:
21+
PY_VERSION = sys.version_info[ 0 : 3 ]
22+
if PY_VERSION < ( 3, 10, 0 ):
2223
sys.exit( 8 )
2324

2425
ROOT_DIR = os.path.abspath( os.path.join( os.path.dirname( __file__ ), '..' ) )

0 commit comments

Comments
 (0)