Move imports instead of disabling requirements check

This commit is contained in:
Adriane Boyd 2023-03-06 13:10:04 +01:00
parent fa04172830
commit b7c7fdfd3d
2 changed files with 1 additions and 6 deletions

View File

@ -330,11 +330,6 @@ def _check_requirements(requirements: List[str]) -> Tuple[bool, bool]:
RETURNS (Tuple[bool, bool]): Whether (1) any packages couldn't be imported, (2) any packages with version conflicts
exist.
"""
msg.warn("Requirements checks are being skipped.")
return False, False
def _check_requirements_pkg_resources(requirements: List[str]) -> Tuple[bool, bool]:
import pkg_resources
failed_pkgs_msgs: List[str] = []

View File

@ -2,7 +2,6 @@ import os
import math
from collections import Counter
from typing import Tuple, List, Dict, Any
import pkg_resources
import time
from pathlib import Path
@ -1159,6 +1158,7 @@ def test_cli_find_threshold(capsys):
],
)
def test_project_check_requirements(reqs, output):
import pkg_resources
# excessive guard against unlikely package name
try:
pkg_resources.require("spacyunknowndoesnotexist12345")