File tree Expand file tree Collapse file tree 5 files changed +14
-9
lines changed
Expand file tree Collapse file tree 5 files changed +14
-9
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ tests][test-setup].**
3939
4040This is all for Ubuntu Linux. Details on getting ycmd running on other OS's can
4141be 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
4444First, install the minimal dependencies:
4545```
Original file line number Diff line number Diff line change @@ -39,8 +39,8 @@ def Exit( self ):
3939IS_64BIT = sys .maxsize > 2 ** 32
4040PY_MAJOR , PY_MINOR = sys .version_info [ 0 : 2 ]
4141PY_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 '\n Hint: Try running python3 ' + ' ' .join ( sys .argv ) )
4646
Original file line number Diff line number Diff line change 1515# limitations under the License.
1616
1717import 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+ '\n Hint: Try running python3 ' + ' ' .join ( sys .argv ) )
2224
2325from base64 import b64encode , b64decode
2426from hmac import compare_digest , new
Original file line number Diff line number Diff line change 1818import sys
1919import 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
2425ROOT_DIR = os .path .abspath ( os .path .join ( os .path .dirname ( __file__ ), '..' ) )
You can’t perform that action at this time.
0 commit comments