Skip to content

Commit e5a7269

Browse files
committed
Remove 3.6/3.7 references and change tests slightly
1 parent 4238198 commit e5a7269

File tree

8 files changed

+10
-12
lines changed

8 files changed

+10
-12
lines changed

README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ Features and Limitations
102102
Jedi's features are listed here:
103103
`Features <https://jedi.readthedocs.org/en/latest/docs/features.html>`_.
104104

105-
You can run Jedi on Python 3.6+ but it should also
105+
You can run Jedi on Python 3.8+ but it should also
106106
understand code that is older than those versions. Additionally you should be
107107
able to use `Virtualenvs <https://jedi.readthedocs.org/en/latest/docs/api.html#environments>`_
108108
very well.

docs/docs/features.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Jedi's main API calls and features are:
1616
Basic Features
1717
--------------
1818

19-
- Python 3.6+ support
19+
- Python 3.8+ support
2020
- Ignores syntax errors and wrong indentation
2121
- Can deal with complex module / function / class structures
2222
- Great ``virtualenv``/``venv`` support

jedi/api/environment.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222

2323
_VersionInfo = namedtuple('VersionInfo', 'major minor micro') # type: ignore[name-match]
2424

25-
_SUPPORTED_PYTHONS = ['3.13', '3.12', '3.11', '3.10', '3.9', '3.8', '3.7', '3.6']
25+
_SUPPORTED_PYTHONS = ['3.13', '3.12', '3.11', '3.10', '3.9', '3.8']
2626
_SAFE_PATHS = ['/usr/bin', '/usr/local/bin']
2727
_CONDA_VAR = 'CONDA_PREFIX'
2828
_CURRENT_VERSION = '%s.%s' % (sys.version_info.major, sys.version_info.minor)

jedi/inference/docstrings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ def _expand_typestr(type_str):
109109
yield type_str.split('of')[0]
110110
# Check if type has is a set of valid literal values eg: {'C', 'F', 'A'}
111111
elif type_str.startswith('{'):
112-
node = parse(type_str, version='3.7').children[0]
112+
node = parse(type_str, version='3.13').children[0]
113113
if node.type == 'atom':
114114
for leaf in getattr(node.children[1], "children", []):
115115
if leaf.type == 'number':

setup.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
keywords='python completion refactoring vim',
3535
long_description=readme,
3636
packages=find_packages(exclude=['test', 'test.*']),
37-
python_requires='>=3.6',
37+
python_requires='>=3.8',
3838
# Python 3.13 grammars are added to parso in 0.8.4
3939
install_requires=['parso>=0.8.4,<0.9.0'],
4040
extras_require={
@@ -94,8 +94,6 @@
9494
'License :: OSI Approved :: MIT License',
9595
'Operating System :: OS Independent',
9696
'Programming Language :: Python :: 3',
97-
'Programming Language :: Python :: 3.6',
98-
'Programming Language :: Python :: 3.7',
9997
'Programming Language :: Python :: 3.8',
10098
'Programming Language :: Python :: 3.9',
10199
'Programming Language :: Python :: 3.10',

test/run.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@
134134
TEST_REFERENCES = 3
135135

136136

137-
grammar36 = parso.load_grammar(version='3.6')
137+
grammar313 = parso.load_grammar(version='3.13')
138138

139139

140140
class BaseTestCase(object):
@@ -238,7 +238,7 @@ def definition(correct, correct_start, path):
238238
should_be = set()
239239
for match in re.finditer('(?:[^ ]+)', correct):
240240
string = match.group(0)
241-
parser = grammar36.parse(string, start_symbol='eval_input', error_recovery=False)
241+
parser = grammar313.parse(string, start_symbol='eval_input', error_recovery=False)
242242
parser_utils.move(parser.get_root_node(), self.line_nr)
243243
node = parser.get_root_node()
244244
module_context = script._get_module_context()
@@ -504,7 +504,7 @@ def report(case, actual, desired):
504504
if arguments['--env']:
505505
environment = get_system_environment(arguments['--env'])
506506
else:
507-
# Will be 3.6.
507+
# Will be 3.13.
508508
environment = get_default_environment()
509509

510510
import traceback

test/test_api/test_environment.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ def test_find_system_environments():
2626

2727
@pytest.mark.parametrize(
2828
'version',
29-
['3.6', '3.7', '3.8', '3.9']
29+
['3.8', '3.9', '3.10', '3.11', '3.12', '3.13']
3030
)
3131
def test_versions(version):
3232
try:

test/test_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ def test_import(self):
9191
}
9292
# There are quite a few differences, because both Windows and Linux
9393
# (posix and nt) libraries are included.
94-
assert len(difference) < 30
94+
assert len(difference) < 40
9595

9696
def test_local_import(self):
9797
s = 'import test.test_utils'

0 commit comments

Comments
 (0)