Skip to content

Commit

Permalink
Release 1.0.0 馃殌
Browse files Browse the repository at this point in the history
  • Loading branch information
art049 committed Dec 13, 2023
1 parent 0046ca8 commit b26eaeb
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .github/release.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@


class BumpType(str, Enum):
major = "major"
minor = "minor"
patch = "patch"

Expand All @@ -19,6 +20,8 @@ def get_current_version() -> VersionInfo:


def get_new_version(current_version: VersionInfo, bump_type: BumpType) -> VersionInfo:
if bump_type == BumpType.major:
return current_version.bump_major()
if bump_type == BumpType.minor:
return current_version.bump_minor()
if bump_type == BumpType.patch:
Expand Down
5 changes: 4 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## [1.0.0] - 2023-12-13

I'm excited to announce ODMantic v1.0.0, with Pydantic v2 support! 馃帀

This release brings a range of changes that are aligned with the new Pydantic architecture.
Expand Down Expand Up @@ -411,4 +413,5 @@ _We comply with the new Pydantic method naming, prefixing them with `model_`_
[0.9.0]: https://github.com/art049/odmantic/compare/v0.8.0...v0.9.0
[0.9.1]: https://github.com/art049/odmantic/compare/v0.9.0...v0.9.1
[0.9.2]: https://github.com/art049/odmantic/compare/v0.9.1...v0.9.2
[unreleased]: https://github.com/art049/odmantic/compare/v0.9.2...HEAD
[1.0.0]: https://github.com/art049/odmantic/compare/v0.9.2...v1.0.0
[unreleased]: https://github.com/art049/odmantic/compare/v1.0.0...HEAD
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "odmantic"
version = "0.9.2"
version = "1.0.0"
description = "ODMantic, an AsyncIO MongoDB Object Document Mapper for Python using type hints "
authors = [{ name = "Arthur Pastel", email = "arthur.pastel@gmail.com" }]
license = { file = "LICENSE" }
Expand Down

0 comments on commit b26eaeb

Please sign in to comment.