Skip to content

Commit 0c14204

Browse files
jsbautistadalthviz
andauthored
PR: Remove Kite completion provider code (#21249)
Co-authored-by: Daniel Althviz Moré <[email protected]>
1 parent dbe7eed commit 0c14204

35 files changed

+5
-2653
lines changed

.github/scripts/modules_test.sh

-3
Original file line numberDiff line numberDiff line change
@@ -115,9 +115,6 @@ for f in spyder/*/*/*/*.py; do
115115
if [[ $f == spyder/plugins/editor/panels/__init__.py ]]; then
116116
continue
117117
fi
118-
if [[ $f == spyder/utils/external/pybloom_pyqt/*.py ]]; then
119-
continue
120-
fi
121118
python "$f"
122119
if [ $? -ne 0 ]; then
123120
exit 1

NOTICE.txt

-74
Original file line numberDiff line numberDiff line change
@@ -1479,37 +1479,6 @@ spyder/images/light/file_type_tex.svg
14791479
-------------------------------------------------------------------------------
14801480

14811481

1482-
Icons for Kite Completions Plugin
1483-
---------------------------------
1484-
1485-
1486-
Copyright (c) 2019 Kite
1487-
1488-
1489-
Author: Kite | https://kite.com
1490-
Site: https://kite.com
1491-
Source: https://kite.com
1492-
License: Creative Commons Attribution 4.0 International
1493-
https://creativecommons.org/licenses/by/4.0/
1494-
1495-
1496-
Licensed under the terms of the Creative Commons Attribution International 4.0.
1497-
1498-
1499-
See below for the full text of the Creative Commons Attribution International 4.0 License.
1500-
1501-
1502-
Files covered:
1503-
1504-
spyder/images/dark/kite.svg
1505-
spyder/images/kite/kite_copilot.png
1506-
spyder/images/light/kite.svg
1507-
1508-
1509-
===============================================================================
1510-
1511-
1512-
15131482
Plugin Assets
15141483
=============
15151484

@@ -1550,49 +1519,6 @@ spyder/plugins/help/utils/static/images/up_arrow_disabled.png
15501519

15511520

15521521

1553-
pyqt-bloomfilter 3.0.0
1554-
-------------------------------------------------------------------------
1555-
1556-
1557-
Copyright (c) 2011 Jay Baird and Bob Ippolito
1558-
Copyright (c) 2019 - Spyder Project Contributors (see AUTHORS.txt)
1559-
1560-
1561-
Author: Jay Baird and Bob Ippolito
1562-
Source: https://github.com/kiteco/pyqt-bloomfilter
1563-
License: MIT (expat)
1564-
https://opensource.org/licenses/MIT
1565-
1566-
No modifications made.
1567-
1568-
1569-
pyqt-bloomfilter is used in Spyder under the terms of the MIT.
1570-
See below for the full text of the MIT.
1571-
1572-
spyder/utils/external/pybloom_pyqt is used in Spyder
1573-
to implement fast lookup of the availability of Kite completions.
1574-
1575-
See below for the full text of the MIT (expat) license.
1576-
1577-
The current pyqt-bloomfilter license can be viewed at:
1578-
https://github.com/kiteco/pyqt-bloomfilter/blob/master/LICENSE.txt
1579-
1580-
The current version of the original file[s] can be viewed at:
1581-
https://github.com/kiteco/pyqt-bloomfilter
1582-
1583-
1584-
Files covered:
1585-
1586-
spyder/utils/external/pybloom_pyqt/__init__.py
1587-
spyder/utils/external/pybloom_pyqt/pybloom.py
1588-
spyder/utils/external/pybloom_pyqt/utils.py
1589-
1590-
1591-
-------------------------------------------------------------------------------
1592-
1593-
1594-
1595-
15961522
Full License Text
15971523
=================
15981524

spyder/app/tests/conftest.py

-3
Original file line numberDiff line numberDiff line change
@@ -298,9 +298,6 @@ def main_window(request, tmpdir, qtbot):
298298
# fails
299299
super_processEvents = QApplication.processEvents
300300

301-
# Disable Kite provider
302-
CONF.set('completions', 'enabled_providers', {'kite': False})
303-
304301
# Don't show tours message
305302
CONF.set('tours', 'show_tour_message', False)
306303

spyder/images/dark/kite.svg

-1
This file was deleted.
-20.1 KB
Binary file not shown.

spyder/images/kite/kite_copilot.png

-158 KB
Binary file not shown.

spyder/images/light/kite.svg

-1
This file was deleted.

spyder/plugins/completion/plugin.py

+2-8
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ class CompletionPlugin(SpyderPluginV2):
6464
set of :class:`SpyderCompletionProvider` instances that are discovered
6565
and registered via entrypoints.
6666
67-
This plugin can assume that `fallback`, `snippets`, `lsp` and `kite`
67+
This plugin can assume that `fallback`, `snippets` and `lsp`
6868
completion providers are available, since they are included as part of
6969
Spyder.
7070
"""
@@ -236,12 +236,6 @@ def __init__(self, parent, configuration=None):
236236
# entrypoints
237237
for entry_point in iter_entry_points(COMPLETION_ENTRYPOINT):
238238
try:
239-
# This absolutely ensures that the Kite provider won't be
240-
# loaded. For instance, it can happen when you have an older
241-
# Spyder version installed, but you're running it with
242-
# bootstrap.
243-
if 'kite' in entry_point.name:
244-
continue
245239
logger.debug(f'Loading entry point: {entry_point}')
246240
Provider = entry_point.resolve()
247241
self._instantiate_and_register_provider(Provider)
@@ -1231,7 +1225,7 @@ def match_and_reply(self, req_id: int):
12311225
else:
12321226
# Any empty response will be discarded and the completion
12331227
# loop will wait for the next non-empty response.
1234-
# This should fix the scenario where Kite does not have a
1228+
# This should fix the scenario where a provider does not have a
12351229
# response for a non-aggregated request but the LSP does.
12361230
any_nonempty = any(request_responses['sources'].get(source)
12371231
for source in sorted_providers)

spyder/plugins/completion/providers/kite/__init__.py

-53
This file was deleted.

spyder/plugins/completion/providers/kite/bloomfilter/__init__.py

-29
This file was deleted.
Binary file not shown.

0 commit comments

Comments
 (0)