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 Apr 18 12:26:55 UTC 2024

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

Log Message:
py-pydantic: updated to 2.7.0

v2.7.0 (2024-04-11)

Packaging

* Reorganize `pyproject.toml` sections
* Bump `pydantic-core` to `v2.18.1`
* Adopt `jiter` `v0.2.0`

New Features

* Extract attribute docstrings from `FieldInfo.description`
* Add a `with_config` decorator to comply with typing spec
* Allow an optional separator splitting the value and unit of the result of `ByteSize.human_readable`
* Add generic `Secret` base type
* Make use of `Sphinx` inventories for cross references in docs
* Add environment variable to disable plugins
* Add support for `deprecated` fields
* Allow `field_serializer('*')`
* Handle a case when `model_config` is defined as a model property
* Update `create_model()` to support `typing.Annotated` as input
* Add `ClickhouseDsn` support
* Add support for `re.Pattern[str]` to `pattern` field
* Support for `serialize_as_any` runtime setting
* Add support for `typing.Self`
* Ability to pass `context` to serialization
* Add feedback widget to docs with flarelytics integration
* Support for parsing partial JSON strings in Python

**Finalized in v2.7.0, rather than v2.7.0b1:**
* Add support for field level number to str coercion option
* Update `warnings` parameter for serialization utilities to allow raising a warning

Changes

* Correct docs, logic for `model_construct` behavior with `extra`
* Improve error message for improper `RootModel` subclasses
* Use `PEP570` syntax
* Add `enum` and `type` to the JSON schema for single item literals
* Deprecate `update_json_schema` internal function
* Serialize duration to hour minute second, instead of just seconds
* Trimming str before parsing to int and float

Performance

* `enum` validator improvements
* Move `enum` validation and serialization to Rust
* Improve schema generation for nested dataclasses
* Fast path for ASCII python string creation in JSON
* SIMD integer and string JSON parsing on `aarch64`(**Note:** SIMD on x86 will be implemented in a future release)
* Support JSON `Cow<str>` from `jiter`
* MAJOR performance improvement: update to PyO3 0.21 final
* cache Python strings

Fixes

* Fix strict parsing for some `Sequence`s
* Add a check on the existence of `__qualname__`
* Handle `__pydantic_extra__` annotation being a string or inherited
* Fix json validation for `NameEmail`
* Fix type-safety of attribute access in `BaseModel`
* Fix bug with `mypy` plugin and `no_strict_optional = True`
* Fix `ByteSize` error `type` change
* Fix inheriting annotations in dataclasses
* Fix regression in core schema generation for indirect definition references
* Fix unsupported types bug with plain validator
* Reverting problematic fix from 2.6 release, fixing schema building bug
* fixes `__pydantic_config__` ignored for TypeDict
* Fix test failures with `pytest v8.0.0` due to `pytest.warns()` starting to work inside `pytest.raises()`
* Use `is_valid_field` from 1.x for `mypy` plugin
* Better-support `mypy` strict equality flag
* model_json_schema export with Annotated types misses 'required' parameters
* Fix default inclusion in `FieldInfo.__repr_args__`
* Fix resolution of forward refs in dataclass base classes that are not present in the subclass module namespace
* Fix `BaseModel` type annotations to be resolvable by `typing.get_type_hints`
* Fix: allow empty string aliases with `AliasGenerator`
* Fix test along with `date` -> `datetime` timezone assumption fix
* Fix deprecation warning with usage of `ast.Str`
* Add missing `deprecated` decorators
* Fix serialization of `NameEmail` if name includes an email address
* Add information about class in error message of schema generation
* Make `TypeAdapter`'s typing compatible with special forms
* Fix issue with config behavior being baked into the ref schema for `enum`s
* More helpful error re wrong `model_json_schema` usage
* Fix nested discriminated union schema gen, pt 2
* Fix schema build for nested dataclasses / TypedDicts with discriminators
* Remove unnecessary logic for definitions schema gen with discriminated unions
* Fix handling of optionals in `mypy` plugin
* Fix `PlainSerializer` usage with std type constructor
* Remove unnecessary warning for config in plugin
* Fix default value serializing
* Fix extra fields check in `Model.__getattr__()`
* Fix `ClassVar` forward ref inherited from parent class
* fix sequence like validator with strict `True`
* Improve warning message when a field name shadows a field in a parent model
* Do not warn about shadowed fields if they are not redefined in a child class
* Fix discriminated union bug with unsubstituted type var
* Support serialization of `deque` when passed to `Sequence[blah blah blah]`
* Init private attributes from super-types in `model_post_init`
* fix `model_construct` with `validation_alias`
* Ensure json-schema generator handles `Literal` `null` types
* **Fixed in v2.7.0**: Fix allow extra generic


To generate a diff of this commit:
cvs rdiff -u -r1.15 -r1.16 pkgsrc/devel/py-pydantic/Makefile
cvs rdiff -u -r1.3 -r1.4 pkgsrc/devel/py-pydantic/PLIST
cvs rdiff -u -r1.14 -r1.15 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.15 pkgsrc/devel/py-pydantic/Makefile:1.16
--- pkgsrc/devel/py-pydantic/Makefile:1.15      Sun Mar 17 12:53:53 2024
+++ pkgsrc/devel/py-pydantic/Makefile   Thu Apr 18 12:26:55 2024
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.15 2024/03/17 12:53:53 adam Exp $
+# $NetBSD: Makefile,v 1.16 2024/04/18 12:26:55 adam Exp $
 
-DISTNAME=      pydantic-2.6.4
+DISTNAME=      pydantic-2.7.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.4.0:../../lang/py-annotated-types
-DEPENDS+=      ${PYPKGPREFIX}-pydantic-core>=2.16.3:../../devel/py-pydantic-core
+DEPENDS+=      ${PYPKGPREFIX}-pydantic-core>=2.18.1:../../devel/py-pydantic-core
 DEPENDS+=      ${PYPKGPREFIX}-typing-extensions>=4.6.1:../../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.3 pkgsrc/devel/py-pydantic/PLIST:1.4
--- pkgsrc/devel/py-pydantic/PLIST:1.3  Wed Jan 31 00:03:49 2024
+++ pkgsrc/devel/py-pydantic/PLIST      Thu Apr 18 12:26:55 2024
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.3 2024/01/31 00:03:49 adam Exp $
+@comment $NetBSD: PLIST,v 1.4 2024/04/18 12:26:55 adam Exp $
 ${PYSITELIB}/${WHEEL_INFODIR}/METADATA
 ${PYSITELIB}/${WHEEL_INFODIR}/RECORD
 ${PYSITELIB}/${WHEEL_INFODIR}/WHEEL
@@ -30,6 +30,9 @@ ${PYSITELIB}/pydantic/_internal/_decorat
 ${PYSITELIB}/pydantic/_internal/_discriminated_union.py
 ${PYSITELIB}/pydantic/_internal/_discriminated_union.pyc
 ${PYSITELIB}/pydantic/_internal/_discriminated_union.pyo
+${PYSITELIB}/pydantic/_internal/_docs_extraction.py
+${PYSITELIB}/pydantic/_internal/_docs_extraction.pyc
+${PYSITELIB}/pydantic/_internal/_docs_extraction.pyo
 ${PYSITELIB}/pydantic/_internal/_fields.py
 ${PYSITELIB}/pydantic/_internal/_fields.pyc
 ${PYSITELIB}/pydantic/_internal/_fields.pyo
@@ -278,6 +281,9 @@ ${PYSITELIB}/pydantic/v1/typing.pyo
 ${PYSITELIB}/pydantic/v1/utils.py
 ${PYSITELIB}/pydantic/v1/utils.pyc
 ${PYSITELIB}/pydantic/v1/utils.pyo
+${PYSITELIB}/pydantic/v1/v1.py
+${PYSITELIB}/pydantic/v1/v1.pyc
+${PYSITELIB}/pydantic/v1/v1.pyo
 ${PYSITELIB}/pydantic/v1/validators.py
 ${PYSITELIB}/pydantic/v1/validators.pyc
 ${PYSITELIB}/pydantic/v1/validators.pyo

Index: pkgsrc/devel/py-pydantic/distinfo
diff -u pkgsrc/devel/py-pydantic/distinfo:1.14 pkgsrc/devel/py-pydantic/distinfo:1.15
--- pkgsrc/devel/py-pydantic/distinfo:1.14      Sun Mar 17 12:53:53 2024
+++ pkgsrc/devel/py-pydantic/distinfo   Thu Apr 18 12:26:55 2024
@@ -1,5 +1,5 @@
-$NetBSD: distinfo,v 1.14 2024/03/17 12:53:53 adam Exp $
+$NetBSD: distinfo,v 1.15 2024/04/18 12:26:55 adam Exp $
 
-BLAKE2s (pydantic-2.6.4.tar.gz) = 16a185a65f45e64cc2b1148a124279eedad535e8d9e2d1edb9c2e7d38cb4cc4b
-SHA512 (pydantic-2.6.4.tar.gz) = 9386c2e04ff71bc182be4892d1cdb910ca60ee68b7cc5c6e86a58529b51707094532dc5315bf152b147979bace3d2e4f6bb4fed546e16fe27b5ecd35c7d0541a
-Size (pydantic-2.6.4.tar.gz) = 680828 bytes
+BLAKE2s (pydantic-2.7.0.tar.gz) = 21401785160edc48225cec214dcd9aa2391ecf013a4be6c4f27fb7a6ee49d6ff
+SHA512 (pydantic-2.7.0.tar.gz) = 06254a99456a999dd5b165c032e3d5fb48a59d56beb51c1ff77d2dbf181bc2b535801307adf00f3547d5f60fd868ead8d6baf507564c52e09e1efe04c155aeb9
+Size (pydantic-2.7.0.tar.gz) = 710409 bytes



Home | Main Index | Thread Index | Old Index