diff --git a/python-pydantic.changes b/python-pydantic.changes index 8b93fb1..398120a 100644 --- a/python-pydantic.changes +++ b/python-pydantic.changes @@ -1,3 +1,27 @@ +------------------------------------------------------------------- +Thu Mar 19 13:25:26 UTC 2020 - Marketa Calabkova + +- Update to version 1.4 + * rename Schema to Field, make it a function to placate mypy + * Implement root_validator and rename root errors from __obj__ to __root__ + * Added initvars support to post_init_post_parse + * complete rewrite of URL parsing logic + * BaseSettings now uses the special env settings to define which + environment variables to read, not aliases + * add support for assert statements inside validators + * Change the precedence of aliases so child model aliases override + parent aliases, including using alias_generator + * Add a mypy plugin for type checking BaseModel.__init__ and more + * Add support for typing.Literal for Python 3.8 + * Add a ByteSize type for converting byte string (1GB) to plain bytes + * Add support for required Optional with name: Optional[AnyType] = Field(...) + and refactor ModelField creation to preserve required parameter value + * Add __eq__ to SecretStr and SecretBytes to allow "value equals" + * Add support for nested generic models + * alias precedence logic changed so aliases on a field always take + priority over an alias from alias_generator + * many more fixes and improvements + ------------------------------------------------------------------- Fri Sep 20 09:56:55 UTC 2019 - Tomáš Chvátal diff --git a/python-pydantic.spec b/python-pydantic.spec index 70f1550..c9f792c 100644 --- a/python-pydantic.spec +++ b/python-pydantic.spec @@ -1,7 +1,7 @@ # # spec file for package python-pydantic # -# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2020 SUSE LLC # Copyright (c) 2019, Martin Hauke # # All modifications and additions to the file contributed by third parties @@ -20,7 +20,7 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} %define skip_python2 1 Name: python-pydantic -Version: 0.32.2 +Version: 1.4 Release: 0 Summary: Data validation and settings management using python type hinting License: MIT @@ -55,7 +55,7 @@ Data validation and settings management using Python type hinting. %files %{python_files} %license LICENSE -%doc README.rst HISTORY.rst +%doc README.md HISTORY.md %{python_sitelib}/* %changelog diff --git a/v0.32.2.tar.gz b/v0.32.2.tar.gz deleted file mode 100644 index e234a05..0000000 --- a/v0.32.2.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:734d84a2c141d454e6d350ede78b8da9cc4cdc84bf5f7a8dd066ebb899cd0480 -size 144564 diff --git a/v1.4.tar.gz b/v1.4.tar.gz new file mode 100644 index 0000000..6eac770 --- /dev/null +++ b/v1.4.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:49d8502e5c55d3bb14afa81931bb877baeb40c142e90f663b4c85383b7155be5 +size 217761