From 733424eceb2eebc38b7cdcdd18b667675071c603 Mon Sep 17 00:00:00 2001 From: Gustavo Silva Date: Thu, 30 Mar 2023 11:54:15 +0100 Subject: [PATCH] misc: fix dynamic version in pyproject --- pyproject.toml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 31594c1..1fc15a0 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta" [project] name = "django-apitokens" -version = {attr = "apitokens.VERSION"} +dynamic = ["version"] authors = [ {name = "InfoSec Engineering", email = "surface@paddypowerbetfair.com"}, ] @@ -28,6 +28,9 @@ dependencies = [ "django-rest-knox == 4.2.0", ] +[tool.setuptools.dynamic] +version = {attr = "apitokens.VERSION"} + [tool.setuptools] packages = ["apitokens"] @@ -71,4 +74,4 @@ select = [ 'W', "I001", ] -src = ['apitokens'] \ No newline at end of file +src = ['apitokens']