pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/devel/py-pydantic



Module Name:    pkgsrc
Committed By:   adam
Date:           Sat Sep  7 05:34:25 UTC 2024

Modified Files:
        pkgsrc/devel/py-pydantic: Makefile PLIST distinfo

Log Message:
py-pydantic: updated to 2.9.0

v2.9.0 (2024-09-05)

Packaging

* Bump `ruff` to `v0.5.0` and `pyright` to `v1.1.369`
* Bump `pydantic-extra-types` to `v2.9.0`
* Support compatibility with `pdm v2.18.1`
* Bump `v1` version stub to `v1.10.18`
* Bump `pydantic-core` to `v2.23.2`

New Features

* Add support for `ZoneInfo`
* Add `Config.val_json_bytes`
* Add DSN for Snowflake
* Support `complex` number
* Add support for `annotated_types.Not`
* Allow `WithJsonSchema` to inject `$ref`s w/ `http` or `https` links
* Allow validators to customize validation JSON schema
* Support parametrized `PathLike` types
* Add tagged union serializer that attempts to use `str` or `callable` discriminators to select the correct serializer

Changes

* Breaking Change: Merge `dict` type `json_schema_extra`
 * For more info (how to replicate old behavior) on this change, see [here](https://docs.pydantic.dev/dev/concepts/json_schema/#merging-json_schema_extra)
* Refactor annotation injection for known (often generic) types
* Move annotation compatibility errors to validation phase
* Improve runtime errors for string constraints like `pattern` for incompatible types
* Remove `'allOf'` JSON schema workarounds
* Remove `typed_dict_cls` data from `CoreMetadata`
* Deprecate passing a dict to the `Examples` class
* Remove `initial_metadata` from internal metadata construct
* Use `re.Pattern.search` instead of `re.Pattern.match` for consistency with `rust` behavior
* Show value of wrongly typed data in `pydantic-core` serialization warning
* Breaking Change: in `pydantic-core`, change `metadata` type hint in core schemas from `Any` -> `Dict[str, Any] | None`
* Raise helpful warning when `self` isn't returned from model validator

Performance

* Initial start at improving import times for modules, using caching primarily
* Using cached internal import for `BaseModel`
* Simplify internal generics logic - remove generator overhead
* Remove default module globals from types namespace
* Performance boost: skip caching parent namespaces in most cases
* Update ns stack with already copied ns


To generate a diff of this commit:
cvs rdiff -u -r1.21 -r1.22 pkgsrc/devel/py-pydantic/Makefile
cvs rdiff -u -r1.6 -r1.7 pkgsrc/devel/py-pydantic/PLIST
cvs rdiff -u -r1.20 -r1.21 pkgsrc/devel/py-pydantic/distinfo

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/devel/py-pydantic/Makefile
diff -u pkgsrc/devel/py-pydantic/Makefile:1.21 pkgsrc/devel/py-pydantic/Makefile:1.22
--- pkgsrc/devel/py-pydantic/Makefile:1.21      Thu Jul  4 11:24:20 2024
+++ pkgsrc/devel/py-pydantic/Makefile   Sat Sep  7 05:34:24 2024
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.21 2024/07/04 11:24:20 adam Exp $
+# $NetBSD: Makefile,v 1.22 2024/09/07 05:34:24 adam Exp $
 
-DISTNAME=      pydantic-2.8.2
+DISTNAME=      pydantic-2.9.0
 PKGNAME=       ${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=    devel python
 MASTER_SITES=  ${MASTER_SITE_PYPI:=p/pydantic/}
@@ -13,20 +13,20 @@ LICENSE=    mit
 TOOL_DEPENDS+= ${PYPKGPREFIX}-hatch-fancy-pypi-readme>=22.5.0:../../devel/py-hatch-fancy-pypi-readme
 TOOL_DEPENDS+= ${PYPKGPREFIX}-hatchling-[0-9]*:../../devel/py-hatchling
 DEPENDS+=      ${PYPKGPREFIX}-annotated-types>=0.4.0:../../lang/py-annotated-types
-DEPENDS+=      ${PYPKGPREFIX}-pydantic-core>=2.20.1:../../devel/py-pydantic-core
+DEPENDS+=      ${PYPKGPREFIX}-pydantic-core>=2.23.2:../../devel/py-pydantic-core
 DEPENDS+=      ${PYPKGPREFIX}-typing-extensions>=4.12.2:../../devel/py-typing-extensions
+DEPENDS+=      ${PYPKGPREFIX}-tzdata-[0-9]*:../../time/py-tzdata
 #TEST_DEPENDS+=        ${PYPKGPREFIX}-cloudpickle-[0-9]*
 TEST_DEPENDS+= ${PYPKGPREFIX}-dirty-equals-[0-9]*:../../devel/py-dirty-equals
 TEST_DEPENDS+= ${PYPKGPREFIX}-email_validator>=2.0.0:../../mail/py-email_validator
 TEST_DEPENDS+= ${PYPKGPREFIX}-faker>=18.13.0:../../devel/py-faker
+TEST_DEPENDS+= ${PYPKGPREFIX}-rich-[0-9]*:../../comms/py-rich
 TEST_DEPENDS+= ${PYPKGPREFIX}-test-benchmark>=4.0.0:../../devel/py-test-benchmark
 #TEST_DEPENDS+=        ${PYPKGPREFIX}-test-examples-[0-9]*:../../devel/py-test-examples
 TEST_DEPENDS+= ${PYPKGPREFIX}-test-mock-[0-9]*:../../devel/py-test-mock
 
 USE_LANGUAGES= # none
 
-PYTHON_VERSIONS_INCOMPATIBLE=  27
-
 # TODO: import cloudpickle and test-examples
 pre-test:
        ${RM} -f ${WRKSRC}/tests/test_docs.py ${WRKSRC}/tests/test_pickle.py

Index: pkgsrc/devel/py-pydantic/PLIST
diff -u pkgsrc/devel/py-pydantic/PLIST:1.6 pkgsrc/devel/py-pydantic/PLIST:1.7
--- pkgsrc/devel/py-pydantic/PLIST:1.6  Thu Jul  4 11:24:20 2024
+++ pkgsrc/devel/py-pydantic/PLIST      Sat Sep  7 05:34:24 2024
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.6 2024/07/04 11:24:20 adam Exp $
+@comment $NetBSD: PLIST,v 1.7 2024/09/07 05:34:24 adam Exp $
 ${PYSITELIB}/${WHEEL_INFODIR}/METADATA
 ${PYSITELIB}/${WHEEL_INFODIR}/RECORD
 ${PYSITELIB}/${WHEEL_INFODIR}/WHEEL
@@ -48,6 +48,9 @@ ${PYSITELIB}/pydantic/_internal/_generic
 ${PYSITELIB}/pydantic/_internal/_git.py
 ${PYSITELIB}/pydantic/_internal/_git.pyc
 ${PYSITELIB}/pydantic/_internal/_git.pyo
+${PYSITELIB}/pydantic/_internal/_import_utils.py
+${PYSITELIB}/pydantic/_internal/_import_utils.pyc
+${PYSITELIB}/pydantic/_internal/_import_utils.pyo
 ${PYSITELIB}/pydantic/_internal/_internal_dataclass.py
 ${PYSITELIB}/pydantic/_internal/_internal_dataclass.pyc
 ${PYSITELIB}/pydantic/_internal/_internal_dataclass.pyo
@@ -66,6 +69,9 @@ ${PYSITELIB}/pydantic/_internal/_repr.py
 ${PYSITELIB}/pydantic/_internal/_schema_generation_shared.py
 ${PYSITELIB}/pydantic/_internal/_schema_generation_shared.pyc
 ${PYSITELIB}/pydantic/_internal/_schema_generation_shared.pyo
+${PYSITELIB}/pydantic/_internal/_serializers.py
+${PYSITELIB}/pydantic/_internal/_serializers.pyc
+${PYSITELIB}/pydantic/_internal/_serializers.pyo
 ${PYSITELIB}/pydantic/_internal/_signature.py
 ${PYSITELIB}/pydantic/_internal/_signature.pyc
 ${PYSITELIB}/pydantic/_internal/_signature.pyo

Index: pkgsrc/devel/py-pydantic/distinfo
diff -u pkgsrc/devel/py-pydantic/distinfo:1.20 pkgsrc/devel/py-pydantic/distinfo:1.21
--- pkgsrc/devel/py-pydantic/distinfo:1.20      Thu Jul  4 11:24:20 2024
+++ pkgsrc/devel/py-pydantic/distinfo   Sat Sep  7 05:34:24 2024
@@ -1,5 +1,5 @@
-$NetBSD: distinfo,v 1.20 2024/07/04 11:24:20 adam Exp $
+$NetBSD: distinfo,v 1.21 2024/09/07 05:34:24 adam Exp $
 
-BLAKE2s (pydantic-2.8.2.tar.gz) = a027d8fd0629027339649f37a59cd5b92b3ad8b4a197b6bfe1d040baa4c0b4c1
-SHA512 (pydantic-2.8.2.tar.gz) = 9d3b795ee43ccc4976a07c3770769758f023cc6763b8ef9ce4475d22c49d4dba80c8326d42106075b54a5d82c84722735e6017644755672b0f1cb0a4b624340a
-Size (pydantic-2.8.2.tar.gz) = 739834 bytes
+BLAKE2s (pydantic-2.9.0.tar.gz) = 2ccb1f07b03c09453f3a10e5131552697f9f2c2b078af9684a7f61c81a162597
+SHA512 (pydantic-2.9.0.tar.gz) = e4e2b961e831c1461446c1914176a5fca4b573ed5df7a4e5f1fe956b94568bf982e0ed0ee3ab8e08b518817b40dc76a24aaff95453a25e736890e5f0b30549d9
+Size (pydantic-2.9.0.tar.gz) = 768298 bytes



Home | Main Index | Thread Index | Old Index