Next | Query returned 17 messages, browsing 11 to 20 | previous

History of commit frequency

CVS Commit History:


   2023-03-09 06:33:49 by Adam Ciarcinski | Files touched by this commit (2) | Package updated
Log message:
py-pydantic: updated to 1.10.6

v1.10.6 (2023-03-08)

* Implement logic to support creating validators from non standard callables by \ 
using defaults to identify them and unwrapping `functools.partial` and \ 
`functools.partialmethod` when checking the signature
* Fix mypy plugin for v1.1.1, and fix `dataclass_transform` decorator for \ 
pydantic dataclasses
* Raise `ValidationError`, not `ConfigError`, when a discriminator value is \ 
unhashable
   2023-02-18 22:02:41 by Adam Ciarcinski | Files touched by this commit (2) | Package updated
Log message:
py-pydantic: updated to 1.10.5

v1.10.5

* Fix broken parametrized bases handling with `GenericModel`s with complex sets \ 
of models
* Invalidate mypy cache if plugin config changes
* Fix `RecursionError` when deep-copying dataclass types wrapped by pydantic
* Fix `X | Y` union syntax breaking `GenericModel`
* Switch coverage badge to show coverage for this branch/release
   2023-01-02 14:15:56 by Adam Ciarcinski | Files touched by this commit (2) | Package updated
Log message:
py-pydantic: updated to 1.10.4

v1.10.4 (2022-12-30)

* Change dependency to `typing-extensions>=4.2.0`,

v1.10.3 (2022-12-29)

**NOTE: v1.10.3 was ["yanked"](https://pypi.org/help/#yanked) from \ 
PyPI due to

* fix parsing of custom root models,
* fix: use dataclass proxy for frozen or empty dataclasses,
* Fix `schema` and `schema_json` on models where a model instance is a one of \ 
default values,
* Add Jina AI to sponsors on docs index page,
* fix: support assignment on `DataclassProxy`,
* Add `postgresql+psycopg` as allowed scheme for `PostgreDsn` to make it usable \ 
with SQLAlchemy 2,
* Allow dict schemas to have both `patternProperties` and `additionalProperties`,
* Fixes error passing None for optional lists with `unique_items`,
* Fix `GenericModel` with `Callable` param raising a `TypeError`,
* Fix field regex with `StrictStr` type annotation,
* Correct `dataclass_transform` keyword argument name from `field_descriptors` \ 
to `field_specifiers`,
* fix: avoid multiple calls of `__post_init__` when dataclasses are inherited,
* Reduce the size of binary wheels
   2022-10-25 11:15:04 by Adam Ciarcinski | Files touched by this commit (2) | Package updated
Log message:
py-pydantic: updated to 1.10.2

v1.10.2 (2022-09-05)

* **Revert Change:** Revert percent encoding of URL parts which was originally \ 
added in
* Prevent long (length > `4_300`) strings/bytes as input to int fields, see
  [CVE-2020-10735](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2020-10735),
* fix: dataclass wrapper was not always called,
* Use `tomllib` on Python 3.11 when parsing `mypy` configuration,
* Basic fix of `GenericModel` cache to detect order of arguments in `Union` models,
* Fix mypy plugin when using bare types like `list` and `dict` as `default_factory`,

v1.10.1 (2022-08-31)

* Add `__hash__` method to `pydancic.color.Color` class,

v1.10.0 (2022-08-30)

* Refactor the whole _pydantic_ `dataclass` decorator to really act like its \ 
standard lib equivalent.
  It hence keeps `__eq__`, `__hash__`, ... and makes comparison with its \ 
non-validated version possible.
  It also fixes usage of `frozen` dataclasses in fields and usage of \ 
`default_factory` in nested dataclasses.
  The support of `Config.extra` has been added.
  Finally, config customization directly via a `dict` is now possible,
  <br/><br/>
  **BREAKING CHANGES:**
  - The `compiled` boolean (whether _pydantic_ is compiled with cython) has been \ 
moved from `main.py` to `version.py`
  - Now that `Config.extra` is supported, `dataclass` ignores by default extra \ 
arguments (like `BaseModel`)
* Fix PEP487 `__set_name__` protocol in `BaseModel` for PrivateAttrs,
* Allow for custom parsing of environment variables via `parse_env_var` in `Config`,
* Rename `master` to `main`,
* Fix `StrictStr` does not raise `ValidationError` when `max_length` is present \ 
in `Field`,
* Make `SecretStr` and `SecretBytes` hashable,
* Fix `StrictBytes` does not raise `ValidationError` when `max_length` is \ 
present in `Field`,
* Add support for bare `type`,
* Support Python 3.11, including binaries for 3.11 in PyPI,
* Add support for `re.Pattern`,
* Fix `__post_init_post_parse__` is incorrectly passed keyword arguments when no \ 
`__post_init__` is defined,
* Fix implicitly importing `ForwardRef` and `Callable` from `pydantic.typing` \ 
instead of `typing` and also expose `MappingIntStrAny`,
* remove `Any` types from the `dataclass` decorator so it can be used with the \ 
`disallow_any_expr` mypy option,
* moved repo to `pydantic/pydantic`,
* fix "extra fields not permitted" error when dataclass with \ 
`Extra.forbid` is validated multiple times,
* Add Python 3.9 and 3.10 examples to docs,
* Discriminated union models now use `oneOf` instead of `anyOf` when generating \ 
OpenAPI schema definitions,
* Allow type checkers to infer inner type of `Json` type. `Json[list[str]]` will \ 
be now inferred as `list[str]`,
  `Json[Any]` should be used instead of plain `Json`.
  Runtime behaviour is not changed,
* Allow empty string aliases by using a `alias is not None` check, rather than \ 
`bool(alias)`,
* Update `ForwardRef`s in `Field.outer_type_`,
* The use of `__dataclass_transform__` has been replaced by \ 
`typing_extensions.dataclass_transform`, which is the preferred way to mark \ 
pydantic models as a dataclass under [PEP \ 
681](https://peps.python.org/pep-0681/),
* Use parent model's `Config` when validating nested `NamedTuple` fields,
* Update `BaseModel.construct` to work with aliased Fields,
* Catch certain raised errors in `smart_deepcopy` and revert to `deepcopy` if so,
* Add `Config.anystr_upper` and `to_upper` kwarg to constr and conbytes,
* Fix JSON schema for `set` and `frozenset` when they include default values,
* Teach the mypy plugin that methods decorated by `@validator` are classmethods,
* Improve mypy plugin's ability to detect required fields,
* Support fields of type `Type[]` in schema,
* Add `default` value in JSON Schema when `const=True`,
* Adds reserved word check to signature generation logic,
* Fix Json strategy failure for the complex nested field,
* Add JSON-compatible float constraint `allow_inf_nan`,
* Remove undefined behaviour when `env_prefix` had characters in common with \ 
`env_nested_delimiter`,
* Support generics model with `create_model`,
* allow submodels to overwrite extra field info,
* Document and test structural pattern matching ([PEP \ 
636](https://peps.python.org/pep-0636/)) on `BaseModel`,
* Fix incorrect deserialization of python timedelta object to ISO 8601 for \ 
negative time deltas.
  Minus was serialized in incorrect place ("P-1DT23H59M59.888735S" \ 
instead of correct "-P1DT23H59M59.888735S"),
* Fix validation of discriminated union fields with an alias when passing a \ 
model instance,
* Add a CockroachDsn type to validate CockroachDB connection strings. The type
  supports the following schemes: `cockroachdb`, `cockroachdb+psycopg2` and \ 
`cockroachdb+asyncpg`,
* Fix MyPy plugin to not override pre-existing `__init__` method in models,
* Fix mypy version checking,
* support overwriting dunder attributes of `BaseModel` instances,
* Added `ConstrainedDate` and `condate`,
* Support `kw_only` in dataclasses,
* Add comparison method for `Color` class,
* Drop support for python3.6, associated cleanup,
* created new function `to_lower_camel()` for "non pascal case" camel case,
* Add checks to `default` and `default_factory` arguments in Mypy plugin,
* fix mangling of `inspect.signature` for `BaseModel`,
* Adds the `SecretField` abstract class so that all the current and future \ 
secret fields like `SecretStr` and `SecretBytes` will derive from it,
* Support multi hosts validation in `PostgresDsn`,
* Fix parsing of very small numeric timedelta values,
* Update `SecretsSettingsSource` to respect `config.case_sensitive`,
* Add MongoDB network data source name (DSN) schema,
* Add support for multiple dotenv files,
* Raise an explicit `ConfigError` when multiple fields are incorrectly set for a \ 
single validator,
* Allow ellipsis on `Field`s inside `Annotated` for `TypedDicts` required,
* Catch overflow errors in `int_validator`,
* Adds a `__rich_repr__` method to `Representation` class which enables pretty \ 
printing with [Rich](https://github.com/willmcgugan/rich),
* Add percent encoding in `AnyUrl` and descendent types,
* `validate_arguments` decorator now supports `alias`,
* Avoid `__dict__` and `__weakref__` attributes in `AnyUrl` and IP address fields,
* Add ability to use `Final` in a field type annotation,
* Update requirement to `typing_extensions>=4.1.0` to guarantee \ 
`dataclass_transform` is available,
* Add Explosion and AWS to main sponsors,
* Update documentation for `copy_on_model_validation` to reflect recent changes,
* Runtime warning if `__slots__` is passed to `create_model`, `__slots__` is \ 
then ignored,
* Add type hints to `BaseSettings.Config` to avoid mypy errors, also correct \ 
mypy version compatibility notice in docs
   2022-08-23 13:20:40 by Adam Ciarcinski | Files touched by this commit (2) | Package updated
Log message:
py-pydantic: updated to 1.9.2

v1.9.2 (2022-08-11)

**Revert Breaking Change**: _v1.9.1_ introduced a breaking change where model \ 
fields were
deep copied by default, this release reverts the default behaviour to match \ 
_v1.9.0_ and before,
while also allow deep-copy behaviour via `copy_on_model_validation = 'deep'`.

* Allow for shallow copies of model fields, `Config.copy_on_model_validation` is \ 
now a str which must be
  `'none'`, `'deep'`, or `'shallow'` corresponding to not copying, deep copy \ 
& shallow copy; default `'shallow'`
   2022-08-01 20:47:40 by Thomas Klausner | Files touched by this commit (2) | Package updated
Log message:
py-pydantic: fix

This was packaged with py-cython installed, which caused various .so
files to be generated. However, the dependency is not noted in the package,
making it fail in bulk builds.

Set SKIP_CYTHON to ignore cython even if installed and update PLIST.
   2022-07-24 12:48:25 by Greg Troxel | Files touched by this commit (4)
Log message:
Add py-pydantic 1.9.1

Data validation and settings management using Python type hints.

Fast and extensible, *pydantic* plays nicely with your
linters/IDE/brain.  Define how data should be in pure, canonical
Python 3.6+; validate it with *pydantic*.

Next | Query returned 17 messages, browsing 11 to 20 | previous