firefox: update to 135.0
[oi-userland.git] / components / python / pydantic_core / Makefile
blob0ab0399d9a4867e0c3940b9dca022a36fffbbb02
2 # This file and its contents are supplied under the terms of the
3 # Common Development and Distribution License ("CDDL"), version 1.0.
4 # You may only use this file in accordance with the terms of version
5 # 1.0 of the CDDL.
7 # A full copy of the text of the CDDL should have accompanied this
8 # source. A copy of the CDDL is also available via the Internet at
9 # http://www.illumos.org/license/CDDL.
13 # This file was automatically generated using the following command:
14 # $WS_TOOLS/python-integrate-project pydantic_core
17 BUILD_STYLE = pyproject
19 include ../../../make-rules/shared-macros.mk
21 COMPONENT_NAME = pydantic_core
22 HUMAN_VERSION = 2.28.0
23 COMPONENT_SUMMARY = Core functionality for Pydantic validation and serialization
24 COMPONENT_PROJECT_URL = https://github.com/pydantic/pydantic-core
25 COMPONENT_ARCHIVE_HASH = \
26 sha256:4aea61530f9fdc8f128a4772c0fdbce9159ecea03201c16fe2e4ba7ebd11b173
27 COMPONENT_LICENSE = MIT
28 COMPONENT_LICENSE_FILE = LICENSE
30 TEST_STYLE = pytest
32 include $(WS_MAKE_RULES)/common.mk
34 # https://www.illumos.org/issues/15767
35 LD_Z_IGNORE=
37 # This project does not support tox so we need to provide test requirements
38 # manually.
39 TEST_REQUIREMENTS_PEP735 += testing
40 # https://github.com/pydantic/pydantic-core/issues/1554
41 TEST_REQUIRED_PACKAGES.python += library/python/pytest-benchmark
43 # Normalize pointers
44 COMPONENT_TEST_TRANSFORMS += "-e 's/0x[0-9a-f]\{16\}/\$$(POINTER)/g'"
45 COMPONENT_TEST_TRANSFORMS += "-e 's/0x[0-9a-f]\{12\}/\$$(POINTER)/g'"
46 # Normalize random uuids
47 COMPONENT_TEST_TRANSFORMS += "-e 's/\(core_schema_right11-\)[0-9a-f]\{8\}-[0-9a-f]\{4\}-[0-9a-f]\{4\}-[0-9a-f]\{4\}-[0-9a-f]\{12\}/\1\$$(UUID)/g'"
48 COMPONENT_TEST_TRANSFORMS += "-e 's/\(core_schema_right11-.*\)[0-9a-f]\{8\}-[0-9a-f]\{4\}-[0-9a-f]\{4\}-[0-9a-f]\{4\}-[0-9a-f]\{12\}/\1\$$(UUID)/g'"
49 # Normalize order of items in lists
50 COMPONENT_TEST_TRANSFORMS += "-e \"s/{'\([bc]\)', 'a'}/{'a', '\1'}/g\""
51 COMPONENT_TEST_TRANSFORMS += "-e \"s/{'[abc]', '[abc]', '[abc]'}/{'a', 'b', 'c'}/g\""
52 COMPONENT_TEST_TRANSFORMS += "-e 's/\"b\(\": SerField.*\"\)a\(\": SerField\)/\"a\1b\2/g'"
53 COMPONENT_TEST_TRANSFORMS += "-e \"s/\({[12', ]*\)b'3'\([12', ]*}\)/b\1'3'\2/g\""
54 COMPONENT_TEST_TRANSFORMS += "-e \"s/\({[13', ]*\)'2'\([13', ]*}\)/'\12\2/g\""
55 COMPONENT_TEST_TRANSFORMS += "-e \"s/\({[12, ]*\)'3'\([12, ]*}\)/\13\2'/g\""
56 COMPONENT_TEST_TRANSFORMS += "-e 's/{[123], [123], [123]}/{1, 2, 3}/g'"
57 COMPONENT_TEST_TRANSFORMS += "-e \"s/\({[12, ]*\)3\([12, ]*}\)'/\1'3'\2/g\""
58 COMPONENT_TEST_TRANSFORMS += "-e \"s/'\({[13', ]*\)2\([13', ]*}\)/\1'2'\2/g\""
59 COMPONENT_TEST_TRANSFORMS += "-e \"s/b\({[12', ]*\)'3'\([12', ]*}\)/\1b'3'\2/g\""
61 # Auto-generated dependencies
62 PYTHON_REQUIRED_PACKAGES += library/python/maturin
63 PYTHON_REQUIRED_PACKAGES += library/python/typing-extensions
64 PYTHON_REQUIRED_PACKAGES += runtime/python
65 REQUIRED_PACKAGES += $(GCC_RUNTIME_PKG)
66 REQUIRED_PACKAGES += system/library
67 REQUIRED_PACKAGES += system/library/math
68 TEST_REQUIRED_PACKAGES.python += library/python/coverage
69 TEST_REQUIRED_PACKAGES.python += library/python/dirty-equals
70 TEST_REQUIRED_PACKAGES.python += library/python/exceptiongroup
71 TEST_REQUIRED_PACKAGES.python += library/python/hypothesis
72 TEST_REQUIRED_PACKAGES.python += library/python/inline-snapshot
73 TEST_REQUIRED_PACKAGES.python += library/python/pytest
74 TEST_REQUIRED_PACKAGES.python += library/python/pytest-mock
75 TEST_REQUIRED_PACKAGES.python += library/python/pytest-timeout
76 TEST_REQUIRED_PACKAGES.python += library/python/python-dateutil
77 TEST_REQUIRED_PACKAGES.python += library/python/typing-extensions
78 TEST_REQUIRED_PACKAGES.python += library/python/tzdata