Skip to content

Commit 3347aa5

Browse files
committed
updates packaging
1 parent e67ef6a commit 3347aa5

File tree

1 file changed

+18
-3
lines changed

1 file changed

+18
-3
lines changed

pyproject.toml

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,9 @@ requires = [
77

88
[project]
99
name = "django-concurrency"
10-
version = "2.6.0"
1110
description = "Optimistic lock implementation for Django. Prevents users from doing concurrent editing"
1211
readme = "README.md"
13-
license = { text = "MIT" }
12+
license.file = "LICENSE"
1413

1514
authors = [
1615
{ name = "sax", email = "[email protected]" },
@@ -30,7 +29,12 @@ classifiers = [
3029
"Programming Language :: Python :: 3.12",
3130
"Programming Language :: Python :: 3.13",
3231
]
32+
dynamic = [
33+
"version",
34+
]
3335
dependencies = [ ]
36+
urls.downloads = "https://github.com/saxix/django-concurrency"
37+
urls.homepage = "https://github.com/saxix/django-concurrency"
3438

3539
[dependency-groups]
3640
dev = [
@@ -52,6 +56,17 @@ dj = [
5256
"django",
5357
]
5458

59+
[tool.hatch]
60+
build.hooks.vcs.version-file = "src/concurrency/version.py"
61+
version.source = "vcs"
62+
raw-options = { root = "../.." }
63+
64+
[tool.hatch.build.targets.sdist]
65+
ignore-vcs = true
66+
include = [
67+
"src/concurrency/**/*.*",
68+
]
69+
5570
[tool.hatch.build.targets.wheel]
5671
packages = [ "src/concurrency" ]
5772

@@ -122,7 +137,7 @@ lint.per-file-ignores."tests/**/*.py" = [
122137
"TC",
123138
"UP",
124139
]
125-
lint.isort = { known-first-party = [ "admin_extra_buttons" ] }
140+
lint.isort = { known-first-party = [ "concurrency" ] }
126141
lint.pylint.max-args = 7
127142
lint.pylint.max-branches = 14
128143
lint.pylint.max-nested-blocks = 8

0 commit comments

Comments
 (0)