>>> py3-pydantic-settings: Building community/py3-pydantic-settings 2.2.1-r0 (using abuild 3.14.1-r3) started Fri, 22 Nov 2024 08:15:05 +0000 >>> py3-pydantic-settings: Validating /home/buildozer/aports/community/py3-pydantic-settings/APKBUILD... >>> py3-pydantic-settings: Analyzing dependencies... >>> py3-pydantic-settings: Installing for build: build-base python3 py3-dotenv py3-pydantic py3-typing-extensions py3-gpep517 py3-hatchling py3-setuptools py3-wheel py3-pytest py3-pytest-mock (1/54) Installing libbz2 (1.0.8-r6) (2/54) Installing libffi (3.4.6-r0) (3/54) Installing gdbm (1.24-r0) (4/54) Installing xz-libs (5.6.3-r0) (5/54) Installing mpdecimal (4.0.0-r0) (6/54) Installing libpanelw (6.5_p20241006-r3) (7/54) Installing sqlite-libs (3.47.0-r0) (8/54) Installing python3 (3.12.7-r1) (9/54) Installing python3-pycache-pyc0 (3.12.7-r1) (10/54) Installing pyc (3.12.7-r1) (11/54) Installing python3-pyc (3.12.7-r1) (12/54) Installing py3-dotenv (1.0.1-r1) (13/54) Installing py3-dotenv-pyc (1.0.1-r1) (14/54) Installing py3-typing-extensions (4.12.2-r0) (15/54) Installing py3-typing-extensions-pyc (4.12.2-r0) (16/54) Installing py3-annotated-types (0.7.0-r0) (17/54) Installing py3-annotated-types-pyc (0.7.0-r0) (18/54) Installing py3-pydantic-core (2.24.2-r0) (19/54) Installing py3-pydantic-core-pyc (2.24.2-r0) (20/54) Installing py3-pydantic (2.8.2-r0) (21/54) Installing py3-pydantic-pyc (2.8.2-r0) (22/54) Installing py3-installer (0.7.0-r2) (23/54) Installing py3-installer-pyc (0.7.0-r2) (24/54) Installing py3-gpep517 (16-r0) (25/54) Installing py3-gpep517-pyc (16-r0) (26/54) Installing py3-editables (0.5-r2) (27/54) Installing py3-editables-pyc (0.5-r2) (28/54) Installing py3-parsing (3.1.4-r0) (29/54) Installing py3-parsing-pyc (3.1.4-r0) (30/54) Installing py3-packaging (24.2-r0) (31/54) Installing py3-packaging-pyc (24.2-r0) (32/54) Installing py3-pathspec (0.12.1-r2) (33/54) Installing py3-pathspec-pyc (0.12.1-r2) (34/54) Installing py3-pluggy (1.5.0-r0) (35/54) Installing py3-pluggy-pyc (1.5.0-r0) (36/54) Installing py3-trove-classifiers (2024.10.21.16-r0) (37/54) Installing py3-trove-classifiers-pyc (2024.10.21.16-r0) (38/54) Installing py3-hatchling (1.26.3-r0) (39/54) Installing py3-hatchling-pyc (1.26.3-r0) (40/54) Installing py3-setuptools (70.3.0-r0) (41/54) Installing py3-setuptools-pyc (70.3.0-r0) (42/54) Installing py3-wheel (0.43.0-r0) (43/54) Installing py3-wheel-pyc (0.43.0-r0) (44/54) Installing py3-iniconfig (2.0.0-r1) (45/54) Installing py3-iniconfig-pyc (2.0.0-r1) (46/54) Installing py3-py (1.11.0-r4) (47/54) Installing py3-py-pyc (1.11.0-r4) (48/54) Installing py3-pytest (8.3.3-r0) (49/54) Installing py3-pytest-pyc (8.3.3-r0) (50/54) Installing py3-mock (5.1.0-r3) (51/54) Installing py3-mock-pyc (5.1.0-r3) (52/54) Installing py3-pytest-mock (3.10.0-r3) (53/54) Installing py3-pytest-mock-pyc (3.10.0-r3) (54/54) Installing .makedepends-py3-pydantic-settings (20241122.081517) Executing busybox-1.37.0-r8.trigger OK: 451 MiB in 154 packages >>> py3-pydantic-settings: Cleaning up srcdir >>> py3-pydantic-settings: Cleaning up pkgdir >>> py3-pydantic-settings: Cleaning up tmpdir >>> py3-pydantic-settings: Fetching https://distfiles.alpinelinux.org/distfiles/v3.21/py3-pydantic-settings-2.2.1.tar.gz Connecting to distfiles.alpinelinux.org (172.105.82.32:443) saving to '/var/cache/distfiles/v3.21/py3-pydantic-settings-2.2.1.tar.gz.part' py3-pydantic-setting 100% |********************************| 35270 0:00:00 ETA '/var/cache/distfiles/v3.21/py3-pydantic-settings-2.2.1.tar.gz.part' saved >>> py3-pydantic-settings: Fetching https://distfiles.alpinelinux.org/distfiles/v3.21/py3-pydantic-settings-2.2.1.tar.gz >>> py3-pydantic-settings: Checking sha512sums... py3-pydantic-settings-2.2.1.tar.gz: OK >>> py3-pydantic-settings: Unpacking /var/cache/distfiles/v3.21/py3-pydantic-settings-2.2.1.tar.gz... 2024-11-22 08:15:18,308 gpep517 INFO Building wheel via backend hatchling.build 2024-11-22 08:15:18,390 gpep517 INFO The backend produced dist/pydantic_settings-2.2.1-py3-none-any.whl pydantic_settings-2.2.1-py3-none-any.whl ============================= test session starts ============================== platform linux -- Python 3.12.7, pytest-8.3.3, pluggy-1.5.0 rootdir: /home/buildozer/aports/community/py3-pydantic-settings/src/pydantic-settings-2.2.1 configfile: pyproject.toml testpaths: tests plugins: mock-3.10.0 collected 124 items tests/test_settings.py ................................................. [ 39%] ..........................................................F.....ss...s.. [ 97%] ... [100%] =================================== FAILURES =================================== ____________________ test_model_config_through_class_kwargs ____________________ self = def build_schema_type_to_method( self, ) -> dict[CoreSchemaOrFieldType, Callable[[CoreSchemaOrField], JsonSchemaValue]]: """Builds a dictionary mapping fields to methods for generating JSON schemas. Returns: A dictionary containing the mapping of `CoreSchemaOrFieldType` to a handler method. Raises: TypeError: If no method has been defined for generating a JSON schema for a given pydantic core schema type. """ mapping: dict[CoreSchemaOrFieldType, Callable[[CoreSchemaOrField], JsonSchemaValue]] = {} core_schema_types: list[CoreSchemaOrFieldType] = _typing_extra.all_literal_values( CoreSchemaOrFieldType # type: ignore ) for key in core_schema_types: method_name = f"{key.replace('-', '_')}_schema" try: > mapping[key] = getattr(self, method_name) E AttributeError: 'GenerateJsonSchema' object has no attribute 'invalid_schema' /usr/lib/python3.12/site-packages/pydantic/json_schema.py:336: AttributeError The above exception was the direct cause of the following exception: env = def test_model_config_through_class_kwargs(env): class Settings(BaseSettings, env_prefix='foobar_', title='Test Settings Model'): apple: str assert Settings.model_config['title'] == 'Test Settings Model' # pydantic config assert Settings.model_config['env_prefix'] == 'foobar_' # pydantic-settings config > assert Settings.model_json_schema()['title'] == 'Test Settings Model' tests/test_settings.py:1943: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.12/site-packages/pydantic/main.py:450: in model_json_schema return model_json_schema( /usr/lib/python3.12/site-packages/pydantic/json_schema.py:2255: in model_json_schema schema_generator_instance = schema_generator(by_alias=by_alias, ref_template=ref_template) /usr/lib/python3.12/site-packages/pydantic/json_schema.py:293: in __init__ self._schema_type_to_method = self.build_schema_type_to_method() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def build_schema_type_to_method( self, ) -> dict[CoreSchemaOrFieldType, Callable[[CoreSchemaOrField], JsonSchemaValue]]: """Builds a dictionary mapping fields to methods for generating JSON schemas. Returns: A dictionary containing the mapping of `CoreSchemaOrFieldType` to a handler method. Raises: TypeError: If no method has been defined for generating a JSON schema for a given pydantic core schema type. """ mapping: dict[CoreSchemaOrFieldType, Callable[[CoreSchemaOrField], JsonSchemaValue]] = {} core_schema_types: list[CoreSchemaOrFieldType] = _typing_extra.all_literal_values( CoreSchemaOrFieldType # type: ignore ) for key in core_schema_types: method_name = f"{key.replace('-', '_')}_schema" try: mapping[key] = getattr(self, method_name) except AttributeError as e: # pragma: no cover > raise TypeError( f'No method for generating JsonSchema for core_schema.type={key!r} ' f'(expected: {type(self).__name__}.{method_name})' ) from e E TypeError: No method for generating JsonSchema for core_schema.type='invalid' (expected: GenerateJsonSchema.invalid_schema) /usr/lib/python3.12/site-packages/pydantic/json_schema.py:338: TypeError =========================== short test summary info ============================ FAILED tests/test_settings.py::test_model_config_through_class_kwargs - TypeE... =================== 1 failed, 120 passed, 3 skipped in 0.79s =================== >>> ERROR: py3-pydantic-settings: check failed >>> py3-pydantic-settings: Uninstalling dependencies... (1/54) Purging .makedepends-py3-pydantic-settings (20241122.081517) (2/54) Purging py3-dotenv-pyc (1.0.1-r1) (3/54) Purging py3-dotenv (1.0.1-r1) (4/54) Purging py3-pydantic-pyc (2.8.2-r0) (5/54) Purging py3-pydantic (2.8.2-r0) (6/54) Purging py3-annotated-types-pyc (0.7.0-r0) (7/54) Purging py3-annotated-types (0.7.0-r0) (8/54) Purging py3-pydantic-core-pyc (2.24.2-r0) (9/54) Purging py3-pydantic-core (2.24.2-r0) (10/54) Purging py3-typing-extensions-pyc (4.12.2-r0) (11/54) Purging py3-typing-extensions (4.12.2-r0) (12/54) Purging py3-gpep517-pyc (16-r0) (13/54) Purging py3-gpep517 (16-r0) (14/54) Purging py3-installer-pyc (0.7.0-r2) (15/54) Purging py3-installer (0.7.0-r2) (16/54) Purging py3-hatchling-pyc (1.26.3-r0) (17/54) Purging py3-hatchling (1.26.3-r0) (18/54) Purging py3-editables-pyc (0.5-r2) (19/54) Purging py3-editables (0.5-r2) (20/54) Purging py3-pathspec-pyc (0.12.1-r2) (21/54) Purging py3-pathspec (0.12.1-r2) (22/54) Purging py3-trove-classifiers-pyc (2024.10.21.16-r0) (23/54) Purging py3-trove-classifiers (2024.10.21.16-r0) (24/54) Purging py3-setuptools-pyc (70.3.0-r0) (25/54) Purging py3-setuptools (70.3.0-r0) (26/54) Purging py3-wheel-pyc (0.43.0-r0) (27/54) Purging py3-wheel (0.43.0-r0) (28/54) Purging py3-pytest-mock-pyc (3.10.0-r3) (29/54) Purging py3-pytest-mock (3.10.0-r3) (30/54) Purging py3-mock-pyc (5.1.0-r3) (31/54) Purging py3-mock (5.1.0-r3) (32/54) Purging py3-pytest-pyc (8.3.3-r0) (33/54) Purging py3-pytest (8.3.3-r0) (34/54) Purging py3-iniconfig-pyc (2.0.0-r1) (35/54) Purging py3-iniconfig (2.0.0-r1) (36/54) Purging py3-packaging-pyc (24.2-r0) (37/54) Purging py3-packaging (24.2-r0) (38/54) Purging py3-parsing-pyc (3.1.4-r0) (39/54) Purging py3-parsing (3.1.4-r0) (40/54) Purging py3-pluggy-pyc (1.5.0-r0) (41/54) Purging py3-pluggy (1.5.0-r0) (42/54) Purging py3-py-pyc (1.11.0-r4) (43/54) Purging py3-py (1.11.0-r4) (44/54) Purging python3-pyc (3.12.7-r1) (45/54) Purging python3-pycache-pyc0 (3.12.7-r1) (46/54) Purging pyc (3.12.7-r1) (47/54) Purging python3 (3.12.7-r1) (48/54) Purging gdbm (1.24-r0) (49/54) Purging libbz2 (1.0.8-r6) (50/54) Purging libffi (3.4.6-r0) (51/54) Purging libpanelw (6.5_p20241006-r3) (52/54) Purging mpdecimal (4.0.0-r0) (53/54) Purging sqlite-libs (3.47.0-r0) (54/54) Purging xz-libs (5.6.3-r0) Executing busybox-1.37.0-r8.trigger OK: 396 MiB in 100 packages