Skip to content

Commit 740d2f4

Browse files
committed
Split Python CI and Dev requirements
1 parent 1730ec9 commit 740d2f4

File tree

4 files changed

+10
-4
lines changed

4 files changed

+10
-4
lines changed

testsuite/drivers/pylsp.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
import attrs
1818
import lsprotocol.converters
1919
import lsprotocol.types
20-
import psutil
2120
from lsprotocol import types
2221
from pygls.client import JsonRPCClient
2322
from pygls.protocol import default_converter
@@ -684,6 +683,8 @@ def __init__(
684683

685684

686685
def debugHere(lsp: LanguageClient, msg: str | None = None):
686+
import psutil
687+
687688
if not args.debug:
688689
raise TestInfraError(
689690
"Test must be run with --debug to use debugHere()", print_backtrace=False

testsuite/requirements-ci.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# This file contains the strict minimum Python requirements for running the
2+
# testsuite in CI.
3+
e3-testsuite
4+
pytest-lsp

testsuite/requirements-dev.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# This file contains the Python requirements for a development environment.
2+
-r "requirements-ci.txt"
3+
psutil
4+
types-psutil

testsuite/requirements.txt

Lines changed: 0 additions & 3 deletions
This file was deleted.

0 commit comments

Comments
 (0)