mirror of https://github.com/scrapy/scrapy.git
Drop scrapy_components_versions().
This commit is contained in:
parent
f24bc749ea
commit
6cb2fe1fc3
|
|
@ -3,11 +3,9 @@ from __future__ import annotations
|
||||||
import platform
|
import platform
|
||||||
import sys
|
import sys
|
||||||
from importlib.metadata import version
|
from importlib.metadata import version
|
||||||
from warnings import warn
|
|
||||||
|
|
||||||
import lxml.etree
|
import lxml.etree
|
||||||
|
|
||||||
from scrapy.exceptions import ScrapyDeprecationWarning
|
|
||||||
from scrapy.settings.default_settings import LOG_VERSIONS
|
from scrapy.settings.default_settings import LOG_VERSIONS
|
||||||
from scrapy.utils.ssl import get_openssl_version
|
from scrapy.utils.ssl import get_openssl_version
|
||||||
|
|
||||||
|
|
@ -32,15 +30,3 @@ def get_versions(
|
||||||
) -> list[tuple[str, str]]:
|
) -> list[tuple[str, str]]:
|
||||||
software = software or _DEFAULT_SOFTWARE
|
software = software or _DEFAULT_SOFTWARE
|
||||||
return [(item, _version(item)) for item in software]
|
return [(item, _version(item)) for item in software]
|
||||||
|
|
||||||
|
|
||||||
def scrapy_components_versions() -> list[tuple[str, str]]: # pragma: no cover
|
|
||||||
warn(
|
|
||||||
(
|
|
||||||
"scrapy.utils.versions.scrapy_components_versions() is deprecated, "
|
|
||||||
"use scrapy.utils.versions.get_versions() instead."
|
|
||||||
),
|
|
||||||
ScrapyDeprecationWarning,
|
|
||||||
stacklevel=2,
|
|
||||||
)
|
|
||||||
return get_versions()
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue