diff --git a/pyproject.toml b/pyproject.toml index 529a8f0..74fd354 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -32,12 +32,12 @@ dependencies = [ "dj-database-url", ] description = "A Django app for relaying email to an external service via a database." +dynamic = ["version"] keywords = [] license = "MIT" name = "django-email-relay" readme = "README.md" requires-python = ">=3.8" -version = "0.1.0" [project.optional-dependencies] dev = [ @@ -76,6 +76,9 @@ exclude = [ [tool.hatch.build.targets.wheel] packages = ["src/email_relay"] +[tool.hatch.version] +path = "src/email_relay/__init__.py" + [tool.black] exclude = ''' /( diff --git a/src/email_relay/__init__.py b/src/email_relay/__init__.py index e299119..f11ec6a 100644 --- a/src/email_relay/__init__.py +++ b/src/email_relay/__init__.py @@ -1,5 +1,3 @@ from __future__ import annotations -import importlib.metadata - -__version__ = importlib.metadata.version("email_relay") +__version__ = "0.1.0"