diff --git a/mailersend/__init__.py b/mailersend/__init__.py index 9a79ac3..41d209e 100644 --- a/mailersend/__init__.py +++ b/mailersend/__init__.py @@ -67,9 +67,11 @@ ValidationError, ) -__version__ = "2.0.0" +from .constants import __version__ __all__ = [ + # Package metadata + "__version__", # Core clients "MailerSendClient", "AsyncMailerSendClient", diff --git a/mailersend/constants.py b/mailersend/constants.py index d86dcfb..c81e5e9 100644 --- a/mailersend/constants.py +++ b/mailersend/constants.py @@ -7,7 +7,7 @@ # Package info for user agent PACKAGE_NAME = "mailersend-python" -__version__ = "2.0.3" +__version__ = "2.0.4" USER_AGENT = ( f"{PACKAGE_NAME}/{__version__} " diff --git a/pyproject.toml b/pyproject.toml index 046ce18..50d5b71 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "mailersend" -version = "2.0.3" +dynamic = ["version"] description = "The official MailerLite Python SDK" authors = [{name = "MailerLite", email = "tech@mailerlite.com"}] requires-python = ">=3.10" @@ -31,6 +31,9 @@ asyncio_default_fixture_loop_scope = "function" requires = ["hatchling"] build-backend = "hatchling.build" +[tool.hatch.version] +path = "mailersend/constants.py" + [tool.semantic_release] branch = "main" build_command = "pip install uv && uv build" diff --git a/uv.lock b/uv.lock index 55d4af7..a62ec04 100644 --- a/uv.lock +++ b/uv.lock @@ -516,7 +516,6 @@ wheels = [ [[package]] name = "mailersend" -version = "2.0.3" source = { editable = "." } dependencies = [ { name = "httpx" },