From 4810fa69828a1fb7ddf4606f929b52341c7f96e1 Mon Sep 17 00:00:00 2001 From: "Laurent Mignon (ACSONE)" Date: Thu, 20 Jul 2023 13:54:33 +0200 Subject: [PATCH] 1.0.0 --- .bumpversion.cfg | 2 +- HISTORY.rst | 13 +++++++++++++ README.md | 2 +- news/3.bugfix | 1 - news/pydanticv2.feature | 1 - pyproject.toml | 1 + src/extendable_pydantic/__init__.py | 1 + src/extendable_pydantic/version.py | 2 +- 8 files changed, 18 insertions(+), 5 deletions(-) create mode 100644 HISTORY.rst delete mode 100644 news/3.bugfix delete mode 100644 news/pydanticv2.feature diff --git a/.bumpversion.cfg b/.bumpversion.cfg index 8fc0dac..0e06aef 100644 --- a/.bumpversion.cfg +++ b/.bumpversion.cfg @@ -1,5 +1,5 @@ [bumpversion] -current_version = 0.0.5 +current_version = 1.0.0 [bumpversion:file:.bumpversion.cfg] diff --git a/HISTORY.rst b/HISTORY.rst new file mode 100644 index 0000000..a82eee9 --- /dev/null +++ b/HISTORY.rst @@ -0,0 +1,13 @@ +1.0.0 (2023-07-20) +================== + +Features +-------- + +- Makes the module working with pydantic V2. Therefore from version 1.0.0 extendable_pydantic no more support pydantic V1. (`#7 `_) + + +Bugfixes +-------- + +- Pervent 'ModuleNotFoundError' when used on Odoo.sh (`#3 `_) diff --git a/README.md b/README.md index aa5dcaf..a614c24 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ [![CI](https://github.com/lmignon/pydantic-ext/actions/workflows/ci.yml/badge.svg)](https://github.com/lmignon/pydantic-ext/actions/workflows/ci.yml) [![codecov](https://codecov.io/gh/lmignon/pydantic-ext/branch/master/graph/badge.svg?token=Z9FWM57T14)](https://codecov.io/gh/lmignon/pydantic-ext) -# pydantic-ext +# Extendable Pydantic This addons provides a new type used to declare [Pydantic](https://pypi.org/project/pydantic/) model as [Extendable](https://pypi.org/project/extendable/) class. diff --git a/news/3.bugfix b/news/3.bugfix deleted file mode 100644 index b20861b..0000000 --- a/news/3.bugfix +++ /dev/null @@ -1 +0,0 @@ -Pervent 'ModuleNotFoundError' when used on Odoo.sh diff --git a/news/pydanticv2.feature b/news/pydanticv2.feature deleted file mode 100644 index 748f971..0000000 --- a/news/pydanticv2.feature +++ /dev/null @@ -1 +0,0 @@ -Makes the module working with pydantic V2. Therefore from version 1.0.0 extendable_pydantic no more support pydantic V1. diff --git a/pyproject.toml b/pyproject.toml index 41a56b8..9165d6e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -91,6 +91,7 @@ module="pydantic._internal._generate_schema" implicit_reexport = true [tool.towncrier] +name = "Extendable Pydantic" package = "extendable_pydantic" package_dir = "src" filename = "HISTORY.rst" diff --git a/src/extendable_pydantic/__init__.py b/src/extendable_pydantic/__init__.py index d7d724f..b51e8cb 100644 --- a/src/extendable_pydantic/__init__.py +++ b/src/extendable_pydantic/__init__.py @@ -2,3 +2,4 @@ # shortcut to main used class from .main import ExtendableModelMeta +from .version import __version__ diff --git a/src/extendable_pydantic/version.py b/src/extendable_pydantic/version.py index b1a19e3..5becc17 100644 --- a/src/extendable_pydantic/version.py +++ b/src/extendable_pydantic/version.py @@ -1 +1 @@ -__version__ = "0.0.5" +__version__ = "1.0.0"