From 198488ee86735f0f37310913e8dbe69d01371241 Mon Sep 17 00:00:00 2001 From: Adriane Boyd Date: Wed, 16 Aug 2023 17:36:53 +0200 Subject: [PATCH] Extend to weasel v0.3 (#12908) * Extend to weasel v0.3 * Clean up unused imports in test_cli --- requirements.txt | 2 +- setup.cfg | 2 +- spacy/tests/test_cli.py | 8 ++------ 3 files changed, 4 insertions(+), 8 deletions(-) diff --git a/requirements.txt b/requirements.txt index 237c790b4..b6cc542a5 100644 --- a/requirements.txt +++ b/requirements.txt @@ -12,7 +12,7 @@ catalogue>=2.0.6,<2.1.0 typer>=0.3.0,<0.10.0 pathy>=0.10.0 smart-open>=5.2.1,<7.0.0 -weasel>=0.1.0,<0.3.0 +weasel>=0.1.0,<0.4.0 # Third party dependencies numpy>=1.15.0; python_version < "3.9" numpy>=1.19.0; python_version >= "3.9" diff --git a/setup.cfg b/setup.cfg index b01298a72..9a5388c80 100644 --- a/setup.cfg +++ b/setup.cfg @@ -56,7 +56,7 @@ install_requires = wasabi>=0.9.1,<1.2.0 srsly>=2.4.3,<3.0.0 catalogue>=2.0.6,<2.1.0 - weasel>=0.1.0,<0.3.0 + weasel>=0.1.0,<0.4.0 # Third-party dependencies typer>=0.3.0,<0.10.0 pathy>=0.10.0 diff --git a/spacy/tests/test_cli.py b/spacy/tests/test_cli.py index 9b4f6851e..c107992ed 100644 --- a/spacy/tests/test_cli.py +++ b/spacy/tests/test_cli.py @@ -1,18 +1,14 @@ import math import os -import time from collections import Counter from pathlib import Path from typing import Any, Dict, List, Tuple -import numpy import pytest import srsly from click import NoSuchOption from packaging.specifiers import SpecifierSet -from thinc.api import Config, ConfigValidationError -from weasel.cli.remote_storage import RemoteStorage -from weasel.cli.run import _check_requirements +from thinc.api import Config import spacy from spacy import about @@ -39,7 +35,7 @@ from spacy.cli.validate import get_model_pkgs from spacy.lang.en import English from spacy.lang.nl import Dutch from spacy.language import Language -from spacy.schemas import RecommendationSchema, validate +from spacy.schemas import RecommendationSchema from spacy.tokens import Doc, DocBin from spacy.tokens.span import Span from spacy.training import Example, docs_to_json, offsets_to_biluo_tags