Skip to content

Commit 5e44056

Browse files
committed
pyproject.toml fixes
1 parent ce8c6b0 commit 5e44056

File tree

3 files changed

+17
-4
lines changed

3 files changed

+17
-4
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,4 @@ pip-log.txt
1414
/venv
1515
.python-version
1616
.coverage
17+
__pycache__

MANIFEST.in

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
include LICENSE
2+
include README.md
3+
prune tests

pyproject.toml

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
1+
12
[build-system]
23
build-backend = "setuptools.build_meta"
34
requires = ["setuptools>=61.2"]
45

56
[project]
67
name = "django-xml"
78
description = "Provides an abstraction to lxml's XPath and XSLT functionality in a manner resembling django database models"
8-
license = { text = "BSD-2-Clause" }
9+
license = "BSD-2-Clause"
910
authors = [{ name = "The Atlantic", email = "programmers@theatlantic.com" }]
1011
requires-python = ">=3.7"
1112
classifiers = [
@@ -16,7 +17,6 @@ classifiers = [
1617
"Framework :: Django :: 5.0",
1718
"Framework :: Django :: 5.1",
1819
"Intended Audience :: Developers",
19-
"License :: OSI Approved :: BSD License",
2020
"Operating System :: OS Independent",
2121
"Programming Language :: Python",
2222
"Framework :: Django :: 2.2",
@@ -34,10 +34,19 @@ classifiers = [
3434
"Programming Language :: Python :: 3.12",
3535
"Programming Language :: Python :: 3.13",
3636
]
37-
dynamic = ["version"]
38-
readme = "README.md"
37+
dynamic = ["readme", "version"]
3938
dependencies = ["Django>=2.2", "python-dateutil", "lxml"]
4039

40+
[tool.setuptools]
41+
zip-safe = false
42+
platforms = ["any"]
43+
packages = ["djxml"]
44+
include-package-data = false
45+
46+
[tool.setuptools.dynamic]
47+
version = { attr = "djxml.__version__" }
48+
readme = { file = ["README.md"] }
49+
4150
[tool.flake8]
4251
max-line-length = 100
4352
line-length = 99

0 commit comments

Comments
 (0)