diff --git a/pydantic-1.6.1.tar.gz b/pydantic-1.6.1.tar.gz new file mode 100644 index 0000000..df3c03d --- /dev/null +++ b/pydantic-1.6.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:41f71147910f26944770cdcac90131241d36fd8212b34468d043e871da065e20 +size 244677 diff --git a/python-pydantic.changes b/python-pydantic.changes index 1821b21..231f27d 100644 --- a/python-pydantic.changes +++ b/python-pydantic.changes @@ -1,3 +1,69 @@ +------------------------------------------------------------------- +Sun Aug 2 15:14:47 UTC 2020 - John Vandenberg + +- Add optional test dependencies +- Recommend optional runtime dependency python-typing_extensions +- Remove unused runtime dependency ujson +- Update to v1.6.1 + * fix validation and parsing of nested models with default_factory +- from v1.6 + * Modify validators for conlist and conset to not have always=True + * Add port check to AnyUrl (can't exceed 65536) ports are 16 insigned + bits: 0 <= port <= 2**16-1 src: rfc793 header format + * Document default regex anchoring semantics + * Use chain.from_iterable in class_validators.py. This is a faster + and more idiomatic way of using itertools.chain. Instead of computing + all the items in the iterable and storing them in memory, they are + computed one-by-one and never stored as a huge list. + This can save on both runtime and memory space + * Add conset(), analogous to conlist() + * make pydantic errors (un)pickable + * Allow custom encoding for dotenv files + * Ensure SchemaExtraCallable is always defined to get type hints on BaseConfig + * Update datetime parser to support negative timestamps + * Update mypy, remove AnyType alias for Type[Any] + * Adjust handling of root validators so that errors are aggregated + from all failing root validators, instead of reporting on only + the first root validator to fail + * Make __modify_schema__ on Enums apply to the enum schema rather + than fields that use the enum + * Fix behavior of __all__ key when used in conjunction with index + keys in advanced include/exclude of fields that are sequences + * Subclass validators do not run when referencing a List field + defined in a parent class when each_item=True + * change schema.field_class_to_schema to support frozenset in schema + * Call __modify_schema__ only for the field schema + * Move the assignment of field.validate_always in fields.py so the + always parameter of validators work on inheritance + * Added support for UUID instantiation through 16 byte strings such + as b'\x12\x34\x56\x78' * 4. + This was done to support BINARY(16) columns in sqlalchemy + * Add a test assertion that default_factory can return a singleton + * Add NameEmail.__eq__ so duplicate NameEmail instances are + evaluated as equal + * Add datamodel-code-generator link in pydantic document site + * Added a "Discussion of Pydantic" section to the documentation, + with a link to "Pydantic Introduction" video + * Avoid some side effects of default_factory by calling it only + once if possible and by not setting a default value in the schema + * Added docs about dumping dataclasses to JSON + * Make BaseModel.__signature__ class-only, so getting __signature__ + from model instance will raise AttributeError + * include 'format': 'password' in the schema for secret types + * Modify schema constraints on ConstrainedFloat so that + exclusiveMinimum and minimum are not included in the schema if + they are equal to -math.inf and exclusiveMaximum and maximum are + not included if they are equal to math.inf + * Squash internal __root__ dicts in .dict() (and, by extension, in .json()) + * Move const validator to post-validators so it validates the parsed value + * Fix model validation to handle nested literals + * Remove user_required = True from RedisDsn, neither user nor + password are required + * Remove extra allOf from schema for fields with Union and custom Field + * Updates OpenAPI schema generation to output all enums as separate + models. Instead of inlining the enum values in the model schema, + models now use a $ref property to point to the enum definition + ------------------------------------------------------------------- Tue Jun 9 19:24:27 UTC 2020 - Dirk Mueller diff --git a/python-pydantic.spec b/python-pydantic.spec index 8516a67..eaf24f1 100644 --- a/python-pydantic.spec +++ b/python-pydantic.spec @@ -20,19 +20,24 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} %define skip_python2 1 Name: python-pydantic -Version: 1.5.1 +Version: 1.6.1 Release: 0 Summary: Data validation and settings management using python type hinting License: MIT Group: Development/Languages/Python URL: https://github.com/samuelcolvin/pydantic -Source: https://github.com/samuelcolvin/pydantic/archive/v%{version}.tar.gz -BuildRequires: %{python_module pytest < 5} +Source: https://github.com/samuelcolvin/pydantic/archive/v%{version}.tar.gz#/pydantic-%{version}.tar.gz +BuildRequires: %{python_module email_validator >= 1.0.3} +BuildRequires: %{python_module mypy} +BuildRequires: %{python_module pytest} +BuildRequires: %{python_module python-dotenv >= 0.10.4} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module typing_extensions >= 3.7.2} BuildRequires: fdupes BuildRequires: python-rpm-macros -Suggests: python-email-validator >= 1.0.3 -Suggests: python-ujson >= 1.35 +Recommends: python-typing_extensions >= 3.7.2 +Suggests: python-email_validator >= 1.0.3 +Suggests: python-python-dotenv >= 0.10.4 BuildArch: noarch %python_subpackages @@ -41,6 +46,7 @@ Data validation and settings management using Python type hinting. %prep %setup -q -n pydantic-%{version} +sed -i /dataclasses/d setup.py %build %python_build diff --git a/v1.5.1.tar.gz b/v1.5.1.tar.gz deleted file mode 100644 index b6c8017..0000000 --- a/v1.5.1.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:3cb8fa09fe301ffb19f1d35e41dde95ad72e7c7649b8cb6689aedea13c5dc41f -size 233727