Hello community,
here is the log from the commit of package python-pydantic for openSUSE:Factory
checked in at 2020-08-04 20:21:50
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-pydantic (Old)
and /work/SRC/openSUSE:Factory/.python-pydantic.new.3592 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-pydantic"
Tue Aug 4 20:21:50 2020 rev:5 rq:824184 version:1.6.1
Changes:
--------
--- /work/SRC/openSUSE:Factory/python-pydantic/python-pydantic.changes
2020-06-10 00:54:08.699840276 +0200
+++
/work/SRC/openSUSE:Factory/.python-pydantic.new.3592/python-pydantic.changes
2020-08-04 20:22:02.156998709 +0200
@@ -1,0 +2,66 @@
+Sun Aug 2 15:14:47 UTC 2020 - John Vandenberg <[email protected]>
+
+- 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
+
+-------------------------------------------------------------------
Old:
----
v1.5.1.tar.gz
New:
----
pydantic-1.6.1.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-pydantic.spec ++++++
--- /var/tmp/diff_new_pack.VDLEVt/_old 2020-08-04 20:22:03.356998862 +0200
+++ /var/tmp/diff_new_pack.VDLEVt/_new 2020-08-04 20:22:03.360998862 +0200
@@ -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 @@
%prep
%setup -q -n pydantic-%{version}
+sed -i /dataclasses/d setup.py
%build
%python_build