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: Thu Nov 21 06:04:33 UTC 2024
Modified Files:
pkgsrc/devel/py-pydantic: Makefile PLIST distinfo
Log Message:
py-pydantic: updted to 2.10.0
v2.10.0
Packaging
* Bump `pydantic-core` to `v2.27.0`
* Replaced pdm with uv
New Features
* Support `fractions.Fraction`
* Support `Hashable` for json validation
* Add a `SocketPath` type for `linux` systems
* Allow arbitrary refs in JSON schema `examples`
* Support `defer_build` for Pydantic dataclasses
* Adding v1 / v2 incompatibility warning for nested v1 model
* Add support for unpacked `TypedDict` to type hint variadic keyword arguments with `@validate_call`
* Support compiled patterns in `protected_namespaces`
* Add support for `propertyNames` in JSON schema
* Adding `__replace__` protocol for Python 3.13+ support
* Expose public `sort` method for JSON schema generation
* Add runtime validation of `@validate_call` callable argument
* Add `experimental_allow_partial` support
* Support default factories taking validated data as an argument
* Allow subclassing `ValidationError` and `PydanticCustomError`
* Add `trailing-strings` support to `experimental_allow_partial`
* Add `rebuild()` method for `TypeAdapter` and simplify `defer_build` patterns
* Improve `TypeAdapter` instance repr
Changes
* Don't allow customization of `SchemaGenerator` until interface is more stable
* Cleanly `defer_build` on `TypeAdapters`, removing experimental flag
* Fix `mro` of generic subclass
* Strip whitespaces on JSON Schema title generation
* Use `b64decode` and `b64encode` for `Base64Bytes` type
* Relax protected namespace config default
* Revalidate parametrized generics if instance's origin is subclass of OG class
* Warn if configuration is specified on the `@dataclass` decorator and with the `__pydantic_config__` attribute
* Recommend against using `Ellipsis` (...) with `Field`
* Migrate to subclassing instead of annotated approach for pydantic url types
* Change JSON schema generation of `Literal`s and `Enums`
* Simplify unions involving `Any` or `Never` when replacing type variables
* Do not require padding when decoding `base64` bytes
* Support dates all the way to 1BC
Performance
* Schema cleaning: skip unnecessary copies during schema walking
* Refactor namespace logic for annotations evaluation
* Improve email regexp on edge cases
* `CoreMetadata` refactor with an emphasis on documentation, schema build time performance, and reducing complexity
Fixes
* Remove guarding check on `computed_field` with `field_serializer`
* Fix `Predicate` issue in `v2.9.0`
* Fixing `annotated-types` bound
* Turn `tzdata` install requirement into optional `timezone` dependency
* Use correct types namespace when building `namedtuple` core schemas
* Fix evaluation of stringified annotations during namespace inspection
* Fix `IncEx` type alias definition
* Do not error when trying to evaluate annotations of private attributes
* Fix nested type statement
* Improve typing of `ModelMetaclass.mro`
* Fix class access of deprecated `computed_field`s
* Make sure `inspect.iscoroutinefunction` works on coroutines decorated with `@validate_call`
* Fix `NameError` when using `validate_call` with PEP 695 on a class
* Fix `ZoneInfo` with various invalid types
* Fix `PydanticUserError` on empty `model_config` with annotations
* Fix variance issue in `_IncEx` type alias, only allow `True`
* Fix serialization schema generation when using `PlainValidator`
* Fix schema generation error when serialization schema holds references
* Inline references if possible when generating schema for `json_schema_input_type`
* Fix recursive arguments in `Representation`
* Fix representation for builtin function types
* Add python validators for decimal constraints (`max_digits` and `decimal_places`)
* Only fetch `__pydantic_core_schema__` from the current class during schema generation
* Fix `stacklevel` on deprecation warnings for `BaseModel`
* Fix warning `stacklevel` in `BaseModel.__init__`
* Improve error handling for in-evaluable refs for discriminator application
* Change the signature of `ConfigWrapper.core_config` to take the title directly
* Do not use the previous config from the stack for dataclasses without config
* Fix serialization for IP types with `mode='python'`
* Support constraint application for `Base64Etc` types
* Fix `validate_call` ignoring `Field` in `Annotated`
* Raise an error when `Self` is invalid
* Using `core_schema.InvalidSchema` instead of metadata injection + checks
* Tweak type alias logic
* Support usage of `type` with `typing.Self` and type aliases
* Use overloads for `Field` and `PrivateAttr` functions
* Clean up the `mypy` plugin implementation
* Properly check for `typing_extensions` variant of `TypeAliasType`
* Allow any mapping in `BaseModel.model_copy()`
* Fix `isinstance` behavior for urls
* Ensure `cached_property` can be set on Pydantic models
* Fix equality checks for primitives in literals
* Properly enforce `host_required` for URLs
* Fix when `coerce_numbers_to_str` enabled and string has invalid Unicode character
* Fix serializing `complex` values in `Enum`s
* Refactor `_typing_extra` module
* Support intuitive equality for urls
* Add `bytearray` to `TypeAdapter.validate_json` signature
* Ensure class access of method descriptors is performed when used as a default with `Field`
* Fix circular import with `validate_call`
* Fix error when using type aliases referencing other type aliases
* Fix `IncEx` type alias to be compatible with mypy
* Make `__signature__` a lazy property, do not deepcopy defaults
* Make `__signature__` lazy for dataclasses, too
* Subclass all single host url classes from `AnyUrl` to preserve behavior from v2.9
To generate a diff of this commit:
cvs rdiff -u -r1.24 -r1.25 pkgsrc/devel/py-pydantic/Makefile
cvs rdiff -u -r1.7 -r1.8 pkgsrc/devel/py-pydantic/PLIST
cvs rdiff -u -r1.23 -r1.24 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.24 pkgsrc/devel/py-pydantic/Makefile:1.25
--- pkgsrc/devel/py-pydantic/Makefile:1.24 Thu Sep 19 15:05:53 2024
+++ pkgsrc/devel/py-pydantic/Makefile Thu Nov 21 06:04:33 2024
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.24 2024/09/19 15:05:53 adam Exp $
+# $NetBSD: Makefile,v 1.25 2024/11/21 06:04:33 adam Exp $
-DISTNAME= pydantic-2.9.2
+DISTNAME= pydantic-2.10.0
PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
CATEGORIES= devel python
MASTER_SITES= ${MASTER_SITE_PYPI:=p/pydantic/}
@@ -13,7 +13,7 @@ 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.6.0:../../lang/py-annotated-types
-DEPENDS+= ${PYPKGPREFIX}-pydantic-core>=2.23.3:../../devel/py-pydantic-core
+DEPENDS+= ${PYPKGPREFIX}-pydantic-core>=2.27.0:../../devel/py-pydantic-core
DEPENDS+= ${PYPKGPREFIX}-typing-extensions>=4.12.2:../../devel/py-typing-extensions
#TEST_DEPENDS+= ${PYPKGPREFIX}-cloudpickle-[0-9]*
TEST_DEPENDS+= ${PYPKGPREFIX}-dirty-equals-[0-9]*:../../devel/py-dirty-equals
Index: pkgsrc/devel/py-pydantic/PLIST
diff -u pkgsrc/devel/py-pydantic/PLIST:1.7 pkgsrc/devel/py-pydantic/PLIST:1.8
--- pkgsrc/devel/py-pydantic/PLIST:1.7 Sat Sep 7 05:34:24 2024
+++ pkgsrc/devel/py-pydantic/PLIST Thu Nov 21 06:04:33 2024
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.7 2024/09/07 05:34:24 adam Exp $
+@comment $NetBSD: PLIST,v 1.8 2024/11/21 06:04:33 adam Exp $
${PYSITELIB}/${WHEEL_INFODIR}/METADATA
${PYSITELIB}/${WHEEL_INFODIR}/RECORD
${PYSITELIB}/${WHEEL_INFODIR}/WHEEL
@@ -63,6 +63,9 @@ ${PYSITELIB}/pydantic/_internal/_mock_va
${PYSITELIB}/pydantic/_internal/_model_construction.py
${PYSITELIB}/pydantic/_internal/_model_construction.pyc
${PYSITELIB}/pydantic/_internal/_model_construction.pyo
+${PYSITELIB}/pydantic/_internal/_namespace_utils.py
+${PYSITELIB}/pydantic/_internal/_namespace_utils.pyc
+${PYSITELIB}/pydantic/_internal/_namespace_utils.pyo
${PYSITELIB}/pydantic/_internal/_repr.py
${PYSITELIB}/pydantic/_internal/_repr.pyc
${PYSITELIB}/pydantic/_internal/_repr.pyo
Index: pkgsrc/devel/py-pydantic/distinfo
diff -u pkgsrc/devel/py-pydantic/distinfo:1.23 pkgsrc/devel/py-pydantic/distinfo:1.24
--- pkgsrc/devel/py-pydantic/distinfo:1.23 Thu Sep 19 15:05:53 2024
+++ pkgsrc/devel/py-pydantic/distinfo Thu Nov 21 06:04:33 2024
@@ -1,5 +1,5 @@
-$NetBSD: distinfo,v 1.23 2024/09/19 15:05:53 adam Exp $
+$NetBSD: distinfo,v 1.24 2024/11/21 06:04:33 adam Exp $
-BLAKE2s (pydantic-2.9.2.tar.gz) = 355cda0c1e71922893ca0486e941808c9452244224652c4a1dfb8c536100cb1f
-SHA512 (pydantic-2.9.2.tar.gz) = 2aace9e79a98bd94e5dc626736a245051912a11fdce36013d2ad2f96b266052386a3e12b259dca30ddc38b63c6b00b5bcc9cd5e80f7805de4d8701064f0982aa
-Size (pydantic-2.9.2.tar.gz) = 769917 bytes
+BLAKE2s (pydantic-2.10.0.tar.gz) = d8f5e4c0948523a5238c0dc597db9d1895152c5a7bae564a9a26457f0fc81785
+SHA512 (pydantic-2.10.0.tar.gz) = a50d5dfd8c9dd565a432744ff2f31a697d9d0ea6d1d71a69f973f45e75156413937c302f24af34736fbd566f391fcb1e94ab7a06884465cbfa0659ba2f15f117
+Size (pydantic-2.10.0.tar.gz) = 781980 bytes
Home |
Main Index |
Thread Index |
Old Index