From db7842651567d9b344c7cd0d7911c610f2e56281 Mon Sep 17 00:00:00 2001 From: goztrk Date: Mon, 30 Oct 2023 17:30:33 +0300 Subject: [PATCH] Fix version definitions --- nanoid_field/__init__.py | 2 +- pyproject.toml | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/nanoid_field/__init__.py b/nanoid_field/__init__.py index 0937bd9..cb5f843 100644 --- a/nanoid_field/__init__.py +++ b/nanoid_field/__init__.py @@ -1,6 +1,6 @@ from nanoid_field.fields import NanoidField -__version__ = "0.1.0" +__version__ = "0.1.2" __all__ = [ "NanoidField", diff --git a/pyproject.toml b/pyproject.toml index 134567b..96ff530 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,5 @@ [project] name = "django-nanoid-field" -version = "0.1.0" license = { text = "MIT" } authors = [{ name = "Gokhan Ozturk", email = "me@gokhan.org.tr" }] description = "Next generation NanoID in Django Model IDs" @@ -15,6 +14,7 @@ classifiers = [ ] readme = "README.md" dependencies = ["nanoid", "django>=2"] +dynamic = ["version"] [project.urls] Homepage = "https://github.com/goztrk/django-nanoid-field" @@ -27,3 +27,6 @@ build-backend = "setuptools.build_meta" [tool.setuptools] packages = ["nanoid_field"] + +[tool.setuptools.dynamic] +version = { attr = "nanoid_field.__version__" }