diff --git a/README.md b/README.md index ae32b0a..20d630e 100644 --- a/README.md +++ b/README.md @@ -15,7 +15,7 @@ Currently supported types are: * [`dict`](https://docs.python.org/3/library/stdtypes.html#dict) * [`dataclass`](https://docs.python.org/3/library/dataclasses.html)-based classes * [`attrs`](https://www.attrs.org)-based classes -* [`pydantic`](https://pydantic-docs.helpmanual.io/)-based classes +* [`pydantic`](https://pydantic-docs.helpmanual.io/)-based classes (`pydantic>=2` not yet supported) Additionally, interaction with arbitrary types is supported, by implementing a pre-defined interface (see [extending `itemadapter`](#extending-itemadapter)). @@ -27,7 +27,8 @@ a pre-defined interface (see [extending `itemadapter`](#extending-itemadapter)). * Python 3.7+ * [`scrapy`](https://scrapy.org/): optional, needed to interact with `scrapy` items * [`attrs`](https://pypi.org/project/attrs/): optional, needed to interact with `attrs`-based items -* [`pydantic`](https://pypi.org/project/pydantic/): optional, needed to interact with `pydantic`-based items +* [`pydantic`](https://pypi.org/project/pydantic/): optional, needed to interact with + `pydantic`-based items (`pydantic>=2` not yet supported) --- diff --git a/tests/requirements.txt b/tests/requirements.txt index 33334f1..4e41abe 100644 --- a/tests/requirements.txt +++ b/tests/requirements.txt @@ -1,5 +1,5 @@ attrs -pydantic +pydantic<2 pytest-cov>=2.8 pytest>=5.4 scrapy>=2.0 diff --git a/tests/test_adapter_pydantic.py b/tests/test_adapter_pydantic.py index 285f7cd..e51dea2 100644 --- a/tests/test_adapter_pydantic.py +++ b/tests/test_adapter_pydantic.py @@ -17,7 +17,7 @@ ) -class DataclassTestCase(unittest.TestCase): +class PydanticTestCase(unittest.TestCase): def test_false(self): from itemadapter.adapter import PydanticAdapter