Skip to content

Commit

Permalink
Merge pull request #6 from surface-security/fix-version_string
Browse files Browse the repository at this point in the history
misc: fix dynamic version in pyproject
  • Loading branch information
gsilvapt authored Mar 30, 2023
2 parents e81c8ca + 733424e commit 7069ecf
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"

[project]
name = "django-apitokens"
version = {attr = "apitokens.VERSION"}
dynamic = ["version"]
authors = [
{name = "InfoSec Engineering", email = "[email protected]"},
]
Expand All @@ -28,6 +28,9 @@ dependencies = [
"django-rest-knox == 4.2.0",
]

[tool.setuptools.dynamic]
version = {attr = "apitokens.VERSION"}

[tool.setuptools]
packages = ["apitokens"]

Expand Down Expand Up @@ -71,4 +74,4 @@ select = [
'W',
"I001",
]
src = ['apitokens']
src = ['apitokens']

0 comments on commit 7069ecf

Please sign in to comment.