Closed justdan6 closed 1 year ago
Ran bump-pydantic src/quart_schema
bump-pydantic src/quart_schema
Tox output
.pkg: _optional_hooks> python /opt/homebrew/lib/python3.10/site-packages/pyproject_api/_backend.py True poetry.core.masonry.api .pkg: get_requires_for_build_sdist> python /opt/homebrew/lib/python3.10/site-packages/pyproject_api/_backend.py True poetry.core.masonry.api .pkg: get_requires_for_build_wheel> python /opt/homebrew/lib/python3.10/site-packages/pyproject_api/_backend.py True poetry.core.masonry.api .pkg: prepare_metadata_for_build_wheel> python /opt/homebrew/lib/python3.10/site-packages/pyproject_api/_backend.py True poetry.core.masonry.api .pkg: build_sdist> python /opt/homebrew/lib/python3.10/site-packages/pyproject_api/_backend.py True poetry.core.masonry.api docs: install_package> python -I -m pip install --force-reinstall --no-deps /Users/justdan/Workplace/quart-schema/.tox/.tmp/package/49/quart_schema-0.17.0.tar.gz docs: commands[0]> sphinx-apidoc -e -f -o docs/reference/source/ src/quart_schema/ Creating file docs/reference/source/quart_schema.rst. Creating file docs/reference/source/quart_schema.documentation.rst. Creating file docs/reference/source/quart_schema.extension.rst. Creating file docs/reference/source/quart_schema.mixins.rst. Creating file docs/reference/source/quart_schema.openapi.rst. Creating file docs/reference/source/quart_schema.typing.rst. Creating file docs/reference/source/quart_schema.validation.rst. Creating file docs/reference/source/modules.rst. docs: commands[1]> sphinx-build -b html -d /Users/justdan/Workplace/quart-schema/.tox/docs/tmp/doctrees docs/ docs/_build/html/ Running Sphinx v7.0.1 building [mo]: targets for 0 po files that are out of date writing output... building [html]: targets for 32 source files that are out of date updating environment: [new config] 32 added, 0 changed, 0 removed reading sources... [ 34%] how_to_guides/index WARNING: autodoc: failed to import module 'quart_schema'; the following exception was raised: cannot import name 'model_schema' from 'pydantic.schema' (/Users/justdan/Workplace/quart-schema/.tox/docs/lib/python3.11/site-packages/pydantic/schema.py) reading sources... [ 65%] reference/index WARNING: autodoc: failed to import module 'documentation' from module 'quart_schema'; the following exception was raised: cannot import name 'model_schema' from 'pydantic.schema' (/Users/justdan/Workplace/quart-schema/.tox/docs/lib/python3.11/site-packages/pydantic/schema.py) WARNING: autodoc: failed to import module 'extension' from module 'quart_schema'; the following exception was raised: cannot import name 'model_schema' from 'pydantic.schema' (/Users/justdan/Workplace/quart-schema/.tox/docs/lib/python3.11/site-packages/pydantic/schema.py) WARNING: autodoc: failed to import module 'mixins' from module 'quart_schema'; the following exception was raised: cannot import name 'model_schema' from 'pydantic.schema' (/Users/justdan/Workplace/quart-schema/.tox/docs/lib/python3.11/site-packages/pydantic/schema.py) WARNING: autodoc: failed to import module 'openapi' from module 'quart_schema'; the following exception was raised: reading sources... [ 81%] reference/source/quart_schema.mixins cannot import name 'model_schema' from 'pydantic.schema' (/Users/justdan/Workplace/quart-schema/.tox/docs/lib/python3.11/site-packages/pydantic/schema.py) WARNING: autodoc: failed to import module 'typing' from module 'quart_schema'; the following exception was raised: cannot import name 'model_schema' from 'pydantic.schema' (/Users/justdan/Workplace/quart-schema/.tox/docs/lib/python3.11/site-packages/pydantic/schema.py) WARNING: autodoc: failed to import module 'validation' from module 'quart_schema'; the following exception was raised: cannot import name 'model_schema' from 'pydantic.schema' (/Users/justdan/Workplace/quart-schema/.tox/docs/lib/python3.11/site-packages/pydantic/schema.py) reading sources... [100%] tutorials/quickstart looking for now-outdated files... none found pickling environment... done checking consistency... done preparing documents... done writing output... [100%] tutorials/quickstart generating indices... genindex done writing additional pages... search done copying static files... done copying extra files... done dumping search index in English (code: en)... done dumping object inventory... done build succeeded, 7 warnings. The HTML pages are in docs/_build/html. docs: OK β in 2.19 seconds format: install_package> python -I -m pip install --force-reinstall --no-deps /Users/justdan/Workplace/quart-schema/.tox/.tmp/package/50/quart_schema-0.17.0.tar.gz format: commands[0]> black --check --diff src/quart_schema/ tests/ All done! β¨ π° β¨ 12 files would be left unchanged. format: commands[1]> isort --check --diff src/quart_schema/ tests ERROR: /Users/justdan/Workplace/quart-schema/src/quart_schema/openapi.py Imports are incorrectly sorted and/or formatted. --- /Users/justdan/Workplace/quart-schema/src/quart_schema/openapi.py:before 2023-07-10 16:41:25.323236 +++ /Users/justdan/Workplace/quart-schema/src/quart_schema/openapi.py:after 2023-07-10 16:47:47.542172 @@ -1,6 +1,6 @@ from typing import Any, Dict, Optional -from pydantic import ConfigDict, AnyHttpUrl, BaseModel, conlist, Field, root_validator +from pydantic import AnyHttpUrl, BaseModel, ConfigDict, conlist, Field, root_validator try: from typing import Literal format: exit 1 (0.08 seconds) /Users/justdan/Workplace/quart-schema> isort --check --diff src/quart_schema/ tests pid=25970 format: FAIL β in 1.48 seconds mypy: install_package> python -I -m pip install --force-reinstall --no-deps /Users/justdan/Workplace/quart-schema/.tox/.tmp/package/51/quart_schema-0.17.0.tar.gz mypy: commands[0]> mypy src/quart_schema/ tests/ src/quart_schema/openapi.py:44: error: No overload variant of "root_validator" matches argument type "Callable[[License, dict[str, Any]], dict[str, Any]]" [call-overload] src/quart_schema/openapi.py:44: note: Possible overload variants: src/quart_schema/openapi.py:44: note: def root_validator(*, skip_on_failure: Literal[True], allow_reuse: bool = ...) -> Callable[[_V1RootValidatorFunctionType], _V1RootValidatorFunctionType] src/quart_schema/openapi.py:44: note: def root_validator(*, pre: Literal[True], allow_reuse: bool = ...) -> Callable[[_V1RootValidatorFunctionType], _V1RootValidatorFunctionType] src/quart_schema/openapi.py:44: note: def root_validator(*, pre: Literal[False], skip_on_failure: Literal[True], allow_reuse: bool = ...) -> Callable[[_V1RootValidatorFunctionType], _V1RootValidatorFunctionType] src/quart_schema/validation.py:315: error: Unused "type: ignore" comment [unused-ignore] src/quart_schema/mixins.py:31: error: Overloaded function implementation does not accept all possible arguments of signature 1 [misc] src/quart_schema/extension.py:296: error: Argument 1 has incompatible type "Callable[[str | None], None]"; expected <nothing> [arg-type] tests/test_validation.py:64: error: Missing named argument "age" for "Details" [call-arg] tests/test_validation.py:65: error: Missing named argument "age" for "Details" [call-arg] Found 6 errors in 5 files (checked 12 source files) mypy: exit 1 (0.68 seconds) /Users/justdan/Workplace/quart-schema> mypy src/quart_schema/ tests/ pid=25979 mypy: FAIL β in 1.79 seconds py37: skipped because could not find python interpreter with spec(s): py37 py37: SKIP β in 0 seconds py38: skipped because could not find python interpreter with spec(s): py38 py38: SKIP β in 0 seconds py39: install_package> python -I -m pip install --force-reinstall --no-deps /Users/justdan/Workplace/quart-schema/.tox/.tmp/package/52/quart_schema-0.17.0.tar.gz py39: commands[0]> pytest --cov=quart_schema Test session starts (platform: darwin, Python 3.9.6, pytest 7.4.0, pytest-sugar 0.9.7) cachedir: .tox/py39/.pytest_cache rootdir: /Users/justdan/Workplace/quart-schema configfile: pyproject.toml testpaths: tests plugins: asyncio-0.21.0, hypothesis-6.81.0, cov-4.1.0, sugar-0.9.7 asyncio: mode=auto collecting ... ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ ERROR collecting tests/test_basic.py βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ ImportError while importing test module '/Users/justdan/Workplace/quart-schema/tests/test_basic.py'. Hint: make sure your test modules/packages have valid Python names. Traceback: /Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/importlib/__init__.py:127: in import_module return _bootstrap._gcd_import(name[level:], package, level) tests/test_basic.py:11: in <module> from quart_schema import QuartSchema, ResponseReturnValue .tox/py39/lib/python3.9/site-packages/quart_schema/__init__.py:1: in <module> from .documentation import ( .tox/py39/lib/python3.9/site-packages/quart_schema/documentation.py:3: in <module> from pydantic.schema import model_schema E ImportError: cannot import name 'model_schema' from 'pydantic.schema' (/Users/justdan/Workplace/quart-schema/.tox/py39/lib/python3.9/site-packages/pydantic/schema.py) ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ ERROR collecting tests/test_casing.py ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ ImportError while importing test module '/Users/justdan/Workplace/quart-schema/tests/test_casing.py'. Hint: make sure your test modules/packages have valid Python names. Traceback: /Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/importlib/__init__.py:127: in import_module return _bootstrap._gcd_import(name[level:], package, level) tests/test_casing.py:6: in <module> from quart_schema import ( .tox/py39/lib/python3.9/site-packages/quart_schema/__init__.py:1: in <module> from .documentation import ( .tox/py39/lib/python3.9/site-packages/quart_schema/documentation.py:3: in <module> from pydantic.schema import model_schema E ImportError: cannot import name 'model_schema' from 'pydantic.schema' (/Users/justdan/Workplace/quart-schema/.tox/py39/lib/python3.9/site-packages/pydantic/schema.py) βββββββββββββββββββββββββββββββββββββββββββββββββββββββββ ERROR collecting tests/test_openapi.py ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ ImportError while importing test module '/Users/justdan/Workplace/quart-schema/tests/test_openapi.py'. Hint: make sure your test modules/packages have valid Python names. Traceback: /Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/importlib/__init__.py:127: in import_module return _bootstrap._gcd_import(name[level:], package, level) tests/test_openapi.py:7: in <module> from quart_schema import ( .tox/py39/lib/python3.9/site-packages/quart_schema/__init__.py:1: in <module> from .documentation import ( .tox/py39/lib/python3.9/site-packages/quart_schema/documentation.py:3: in <module> from pydantic.schema import model_schema E ImportError: cannot import name 'model_schema' from 'pydantic.schema' (/Users/justdan/Workplace/quart-schema/.tox/py39/lib/python3.9/site-packages/pydantic/schema.py) βββββββββββββββββββββββββββββββββββββββββββββββββββββββββ ERROR collecting tests/test_testing.py ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ ImportError while importing test module '/Users/justdan/Workplace/quart-schema/tests/test_testing.py'. Hint: make sure your test modules/packages have valid Python names. Traceback: /Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/importlib/__init__.py:127: in import_module return _bootstrap._gcd_import(name[level:], package, level) tests/test_testing.py:9: in <module> from quart_schema import DataSource, QuartSchema, ResponseReturnValue, validate_request .tox/py39/lib/python3.9/site-packages/quart_schema/__init__.py:1: in <module> from .documentation import ( .tox/py39/lib/python3.9/site-packages/quart_schema/documentation.py:3: in <module> from pydantic.schema import model_schema E ImportError: cannot import name 'model_schema' from 'pydantic.schema' (/Users/justdan/Workplace/quart-schema/.tox/py39/lib/python3.9/site-packages/pydantic/schema.py) ββββββββββββββββββββββββββββββββββββββββββββββββββββββββ ERROR collecting tests/test_validation.py ββββββββββββββββββββββββββββββββββββββββββββββββββββββββ ImportError while importing test module '/Users/justdan/Workplace/quart-schema/tests/test_validation.py'. Hint: make sure your test modules/packages have valid Python names. Traceback: /Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/importlib/__init__.py:127: in import_module return _bootstrap._gcd_import(name[level:], package, level) tests/test_validation.py:10: in <module> from quart_schema import ( .tox/py39/lib/python3.9/site-packages/quart_schema/__init__.py:1: in <module> from .documentation import ( .tox/py39/lib/python3.9/site-packages/quart_schema/documentation.py:3: in <module> from pydantic.schema import model_schema E ImportError: cannot import name 'model_schema' from 'pydantic.schema' (/Users/justdan/Workplace/quart-schema/.tox/py39/lib/python3.9/site-packages/pydantic/schema.py) collected 0 items / 5 errors ================================================================= short test summary info ================================================================= FAILED tests/test_basic.py FAILED tests/test_casing.py FAILED tests/test_openapi.py FAILED tests/test_testing.py FAILED tests/test_validation.py !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Interrupted: 5 errors during collection !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Results (0.39s): py39: exit 2 (0.60 seconds) /Users/justdan/Workplace/quart-schema> pytest --cov=quart_schema pid=25989 py39: FAIL β in 2.33 seconds py310: install_package> python -I -m pip install --force-reinstall --no-deps /Users/justdan/Workplace/quart-schema/.tox/.tmp/package/53/quart_schema-0.17.0.tar.gz py310: commands[0]> pytest --cov=quart_schema Test session starts (platform: darwin, Python 3.10.12, pytest 7.4.0, pytest-sugar 0.9.7) cachedir: .tox/py310/.pytest_cache rootdir: /Users/justdan/Workplace/quart-schema configfile: pyproject.toml testpaths: tests plugins: asyncio-0.21.0, hypothesis-6.81.0, cov-4.1.0, sugar-0.9.7 asyncio: mode=auto collecting ... ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ ERROR collecting tests/test_basic.py βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ ImportError while importing test module '/Users/justdan/Workplace/quart-schema/tests/test_basic.py'. Hint: make sure your test modules/packages have valid Python names. Traceback: /opt/homebrew/Cellar/python@3.10/3.10.12_1/Frameworks/Python.framework/Versions/3.10/lib/python3.10/importlib/__init__.py:126: in import_module return _bootstrap._gcd_import(name[level:], package, level) tests/test_basic.py:11: in <module> from quart_schema import QuartSchema, ResponseReturnValue .tox/py310/lib/python3.10/site-packages/quart_schema/__init__.py:1: in <module> from .documentation import ( .tox/py310/lib/python3.10/site-packages/quart_schema/documentation.py:3: in <module> from pydantic.schema import model_schema E ImportError: cannot import name 'model_schema' from 'pydantic.schema' (/Users/justdan/Workplace/quart-schema/.tox/py310/lib/python3.10/site-packages/pydantic/schema.py) ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ ERROR collecting tests/test_casing.py ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ ImportError while importing test module '/Users/justdan/Workplace/quart-schema/tests/test_casing.py'. Hint: make sure your test modules/packages have valid Python names. Traceback: /opt/homebrew/Cellar/python@3.10/3.10.12_1/Frameworks/Python.framework/Versions/3.10/lib/python3.10/importlib/__init__.py:126: in import_module return _bootstrap._gcd_import(name[level:], package, level) tests/test_casing.py:6: in <module> from quart_schema import ( .tox/py310/lib/python3.10/site-packages/quart_schema/__init__.py:1: in <module> from .documentation import ( .tox/py310/lib/python3.10/site-packages/quart_schema/documentation.py:3: in <module> from pydantic.schema import model_schema E ImportError: cannot import name 'model_schema' from 'pydantic.schema' (/Users/justdan/Workplace/quart-schema/.tox/py310/lib/python3.10/site-packages/pydantic/schema.py) βββββββββββββββββββββββββββββββββββββββββββββββββββββββββ ERROR collecting tests/test_openapi.py ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ ImportError while importing test module '/Users/justdan/Workplace/quart-schema/tests/test_openapi.py'. Hint: make sure your test modules/packages have valid Python names. Traceback: /opt/homebrew/Cellar/python@3.10/3.10.12_1/Frameworks/Python.framework/Versions/3.10/lib/python3.10/importlib/__init__.py:126: in import_module return _bootstrap._gcd_import(name[level:], package, level) tests/test_openapi.py:7: in <module> from quart_schema import ( .tox/py310/lib/python3.10/site-packages/quart_schema/__init__.py:1: in <module> from .documentation import ( .tox/py310/lib/python3.10/site-packages/quart_schema/documentation.py:3: in <module> from pydantic.schema import model_schema E ImportError: cannot import name 'model_schema' from 'pydantic.schema' (/Users/justdan/Workplace/quart-schema/.tox/py310/lib/python3.10/site-packages/pydantic/schema.py) βββββββββββββββββββββββββββββββββββββββββββββββββββββββββ ERROR collecting tests/test_testing.py ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ ImportError while importing test module '/Users/justdan/Workplace/quart-schema/tests/test_testing.py'. Hint: make sure your test modules/packages have valid Python names. Traceback: /opt/homebrew/Cellar/python@3.10/3.10.12_1/Frameworks/Python.framework/Versions/3.10/lib/python3.10/importlib/__init__.py:126: in import_module return _bootstrap._gcd_import(name[level:], package, level) tests/test_testing.py:9: in <module> from quart_schema import DataSource, QuartSchema, ResponseReturnValue, validate_request .tox/py310/lib/python3.10/site-packages/quart_schema/__init__.py:1: in <module> from .documentation import ( .tox/py310/lib/python3.10/site-packages/quart_schema/documentation.py:3: in <module> from pydantic.schema import model_schema E ImportError: cannot import name 'model_schema' from 'pydantic.schema' (/Users/justdan/Workplace/quart-schema/.tox/py310/lib/python3.10/site-packages/pydantic/schema.py) ββββββββββββββββββββββββββββββββββββββββββββββββββββββββ ERROR collecting tests/test_validation.py ββββββββββββββββββββββββββββββββββββββββββββββββββββββββ ImportError while importing test module '/Users/justdan/Workplace/quart-schema/tests/test_validation.py'. Hint: make sure your test modules/packages have valid Python names. Traceback: /opt/homebrew/Cellar/python@3.10/3.10.12_1/Frameworks/Python.framework/Versions/3.10/lib/python3.10/importlib/__init__.py:126: in import_module return _bootstrap._gcd_import(name[level:], package, level) tests/test_validation.py:10: in <module> from quart_schema import ( .tox/py310/lib/python3.10/site-packages/quart_schema/__init__.py:1: in <module> from .documentation import ( .tox/py310/lib/python3.10/site-packages/quart_schema/documentation.py:3: in <module> from pydantic.schema import model_schema E ImportError: cannot import name 'model_schema' from 'pydantic.schema' (/Users/justdan/Workplace/quart-schema/.tox/py310/lib/python3.10/site-packages/pydantic/schema.py) collected 0 items / 5 errors ================================================================= short test summary info ================================================================= FAILED tests/test_basic.py FAILED tests/test_casing.py FAILED tests/test_openapi.py FAILED tests/test_testing.py FAILED tests/test_validation.py !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Interrupted: 5 errors during collection !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Results (0.32s): py310: exit 2 (0.51 seconds) /Users/justdan/Workplace/quart-schema> pytest --cov=quart_schema pid=25996 py310: FAIL β in 1.59 seconds py311: install_package> python -I -m pip install --force-reinstall --no-deps /Users/justdan/Workplace/quart-schema/.tox/.tmp/package/54/quart_schema-0.17.0.tar.gz py311: commands[0]> pytest --cov=quart_schema Test session starts (platform: darwin, Python 3.11.4, pytest 7.4.0, pytest-sugar 0.9.7) cachedir: .tox/py311/.pytest_cache rootdir: /Users/justdan/Workplace/quart-schema configfile: pyproject.toml testpaths: tests plugins: asyncio-0.21.0, hypothesis-6.81.0, cov-4.1.0, sugar-0.9.7 asyncio: mode=Mode.AUTO collecting ... ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ ERROR collecting tests/test_basic.py βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ ImportError while importing test module '/Users/justdan/Workplace/quart-schema/tests/test_basic.py'. Hint: make sure your test modules/packages have valid Python names. Traceback: /opt/homebrew/Cellar/python@3.11/3.11.4_1/Frameworks/Python.framework/Versions/3.11/lib/python3.11/importlib/__init__.py:126: in import_module return _bootstrap._gcd_import(name[level:], package, level) tests/test_basic.py:11: in <module> from quart_schema import QuartSchema, ResponseReturnValue .tox/py311/lib/python3.11/site-packages/quart_schema/__init__.py:1: in <module> from .documentation import ( .tox/py311/lib/python3.11/site-packages/quart_schema/documentation.py:3: in <module> from pydantic.schema import model_schema E ImportError: cannot import name 'model_schema' from 'pydantic.schema' (/Users/justdan/Workplace/quart-schema/.tox/py311/lib/python3.11/site-packages/pydantic/schema.py) ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ ERROR collecting tests/test_casing.py ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ ImportError while importing test module '/Users/justdan/Workplace/quart-schema/tests/test_casing.py'. Hint: make sure your test modules/packages have valid Python names. Traceback: /opt/homebrew/Cellar/python@3.11/3.11.4_1/Frameworks/Python.framework/Versions/3.11/lib/python3.11/importlib/__init__.py:126: in import_module return _bootstrap._gcd_import(name[level:], package, level) tests/test_casing.py:6: in <module> from quart_schema import ( .tox/py311/lib/python3.11/site-packages/quart_schema/__init__.py:1: in <module> from .documentation import ( .tox/py311/lib/python3.11/site-packages/quart_schema/documentation.py:3: in <module> from pydantic.schema import model_schema E ImportError: cannot import name 'model_schema' from 'pydantic.schema' (/Users/justdan/Workplace/quart-schema/.tox/py311/lib/python3.11/site-packages/pydantic/schema.py) βββββββββββββββββββββββββββββββββββββββββββββββββββββββββ ERROR collecting tests/test_openapi.py ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ ImportError while importing test module '/Users/justdan/Workplace/quart-schema/tests/test_openapi.py'. Hint: make sure your test modules/packages have valid Python names. Traceback: /opt/homebrew/Cellar/python@3.11/3.11.4_1/Frameworks/Python.framework/Versions/3.11/lib/python3.11/importlib/__init__.py:126: in import_module return _bootstrap._gcd_import(name[level:], package, level) tests/test_openapi.py:7: in <module> from quart_schema import ( .tox/py311/lib/python3.11/site-packages/quart_schema/__init__.py:1: in <module> from .documentation import ( .tox/py311/lib/python3.11/site-packages/quart_schema/documentation.py:3: in <module> from pydantic.schema import model_schema E ImportError: cannot import name 'model_schema' from 'pydantic.schema' (/Users/justdan/Workplace/quart-schema/.tox/py311/lib/python3.11/site-packages/pydantic/schema.py) βββββββββββββββββββββββββββββββββββββββββββββββββββββββββ ERROR collecting tests/test_testing.py ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ ImportError while importing test module '/Users/justdan/Workplace/quart-schema/tests/test_testing.py'. Hint: make sure your test modules/packages have valid Python names. Traceback: /opt/homebrew/Cellar/python@3.11/3.11.4_1/Frameworks/Python.framework/Versions/3.11/lib/python3.11/importlib/__init__.py:126: in import_module return _bootstrap._gcd_import(name[level:], package, level) tests/test_testing.py:9: in <module> from quart_schema import DataSource, QuartSchema, ResponseReturnValue, validate_request .tox/py311/lib/python3.11/site-packages/quart_schema/__init__.py:1: in <module> from .documentation import ( .tox/py311/lib/python3.11/site-packages/quart_schema/documentation.py:3: in <module> from pydantic.schema import model_schema E ImportError: cannot import name 'model_schema' from 'pydantic.schema' (/Users/justdan/Workplace/quart-schema/.tox/py311/lib/python3.11/site-packages/pydantic/schema.py) ββββββββββββββββββββββββββββββββββββββββββββββββββββββββ ERROR collecting tests/test_validation.py ββββββββββββββββββββββββββββββββββββββββββββββββββββββββ ImportError while importing test module '/Users/justdan/Workplace/quart-schema/tests/test_validation.py'. Hint: make sure your test modules/packages have valid Python names. Traceback: /opt/homebrew/Cellar/python@3.11/3.11.4_1/Frameworks/Python.framework/Versions/3.11/lib/python3.11/importlib/__init__.py:126: in import_module return _bootstrap._gcd_import(name[level:], package, level) tests/test_validation.py:10: in <module> from quart_schema import ( .tox/py311/lib/python3.11/site-packages/quart_schema/__init__.py:1: in <module> from .documentation import ( .tox/py311/lib/python3.11/site-packages/quart_schema/documentation.py:3: in <module> from pydantic.schema import model_schema E ImportError: cannot import name 'model_schema' from 'pydantic.schema' (/Users/justdan/Workplace/quart-schema/.tox/py311/lib/python3.11/site-packages/pydantic/schema.py) collected 0 items / 5 errors ================================================================= short test summary info ================================================================= FAILED tests/test_basic.py FAILED tests/test_casing.py FAILED tests/test_openapi.py FAILED tests/test_testing.py FAILED tests/test_validation.py !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Interrupted: 5 errors during collection !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Results (0.32s): py311: exit 2 (0.50 seconds) /Users/justdan/Workplace/quart-schema> pytest --cov=quart_schema pid=26005 py311: FAIL β in 1.58 seconds pep8: install_package> python -I -m pip install --force-reinstall --no-deps /Users/justdan/Workplace/quart-schema/.tox/.tmp/package/55/quart_schema-0.17.0.tar.gz pep8: commands[0]> flake8 src/quart_schema/ tests/ pep8: OK β in 1.31 seconds package: install_package> python -I -m pip install --force-reinstall --no-deps /Users/justdan/Workplace/quart-schema/.tox/.tmp/package/56/quart_schema-0.17.0.tar.gz package: commands[0]> poetry build Building quart-schema (0.17.0) - Building sdist - Built quart_schema-0.17.0.tar.gz - Building wheel - Built quart_schema-0.17.0-py3-none-any.whl package: commands[1]> twine check 'dist/*' Checking dist/quart_schema-0.16.1-py3-none-any.whl: PASSED Checking dist/quart_schema-0.16.0-py3-none-any.whl: PASSED Checking dist/quart_schema-0.17.0-py3-none-any.whl: PASSED Checking dist/quart_schema-0.17.0.tar.gz: PASSED Checking dist/quart_schema-0.16.0.tar.gz: PASSED Checking dist/quart_schema-0.16.1.tar.gz: PASSED .pkg: _exit> python /opt/homebrew/lib/python3.10/site-packages/pyproject_api/_backend.py True poetry.core.masonry.api docs: OK (2.19=setup[1.38]+cmd[0.14,0.67] seconds) format: FAIL code 1 (1.48=setup[1.04]+cmd[0.35,0.08] seconds) mypy: FAIL code 1 (1.79=setup[1.11]+cmd[0.68] seconds) py37: SKIP (0.00 seconds) py38: SKIP (0.00 seconds) py39: FAIL code 2 (2.33=setup[1.73]+cmd[0.60] seconds) py310: FAIL code 2 (1.59=setup[1.09]+cmd[0.51] seconds) py311: FAIL code 2 (1.58=setup[1.08]+cmd[0.50] seconds) pep8: OK (1.31=setup[1.07]+cmd[0.24] seconds) package: OK (2.04=setup[1.20]+cmd[0.54,0.30] seconds) evaluation failed :( (14.35 seconds)
See 50675398e347ee54046c1ce0a5dc2d5579ce63cf
48
Ran
bump-pydantic src/quart_schema
Tox output