From 96b80ec4f4dbd4cbb19b98c7c7e8bacf59c78f47 Mon Sep 17 00:00:00 2001 From: Yurii Serhiichuk Date: Mon, 21 Nov 2022 21:18:30 +0200 Subject: [PATCH] hotfix: Hotfix Pydantic dependency constraints. docs: Add mention of the constraints fix Signed-off-by: Yurii Serhiichuk chore: bump version Signed-off-by: Yurii Serhiichuk fix: PyPi constraints for Pydantic Signed-off-by: Yurii Serhiichuk ci: add ability to release from tag branches. Signed-off-by: Yurii Serhiichuk --- .github/workflows/pypi-release.yml | 1 + CHANGELOG.md | 4 ++++ cloudevents/__init__.py | 2 +- setup.py | 4 ++-- 4 files changed, 8 insertions(+), 3 deletions(-) diff --git a/.github/workflows/pypi-release.yml b/.github/workflows/pypi-release.yml index 8a2bc61..81a50d2 100644 --- a/.github/workflows/pypi-release.yml +++ b/.github/workflows/pypi-release.yml @@ -4,6 +4,7 @@ on: push: branches: - main + - 'tag/v**' jobs: build-and-publish: diff --git a/CHANGELOG.md b/CHANGELOG.md index 7c7a85e..ad26248 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +## [1.6.3] — 2022-11-21 +### Fixed +- Fixed Pydantic extras dependency constraint. + ## [1.6.2] — 2022-10-18 ### Added - Added `get_attributes` API to the `CloudEvent` API. The method returns a read-only diff --git a/cloudevents/__init__.py b/cloudevents/__init__.py index e74d8c0..5582f31 100644 --- a/cloudevents/__init__.py +++ b/cloudevents/__init__.py @@ -12,4 +12,4 @@ # License for the specific language governing permissions and limitations # under the License. -__version__ = "1.6.2" +__version__ = "1.6.3" diff --git a/setup.py b/setup.py index 8a4ca87..54eebe8 100644 --- a/setup.py +++ b/setup.py @@ -71,8 +71,8 @@ if __name__ == "__main__": install_requires=["deprecation>=2.0,<3.0"], extras_require={ "pydantic": [ - "pydantic>=1.0.0<1.9.0; python_version <= '3.6'", - "pydantic>=1.0.0<2.0; python_version > '3.6'", + "pydantic>=1.0.0,<1.9.0;python_version<'3.7'", + "pydantic>=1.0.0,<2.0;python_version>='3.7'", ], }, )