Skip to content

Commit 91a8214

Browse files
committed
build(pyproject): modernize PEP 621 metadata and packaging config
* replace legacy license.text usage, see PEP 639 * add explicit README content type * require modern setuptools version * add Python 3 only classifier * add project issues URLs * clean up classifiers and dependency formatting
1 parent 8fcf468 commit 91a8214

1 file changed

Lines changed: 22 additions & 12 deletions

File tree

pyproject.toml

Lines changed: 22 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,45 +1,57 @@
11
[build-system]
22
requires = [
3-
"setuptools",
3+
"setuptools>=69",
44
]
55
build-backend = "setuptools.build_meta"
66

77
[project]
88
name = "python-ldap"
9-
license.text = "python-ldap" # Replace with 'license' once Python 3.8 is dropped
109
dynamic = ["version"]
1110
description = "Python modules for implementing LDAP clients"
11+
12+
license = "MIT AND LicenseRef-python-ldap"
13+
license-files = [
14+
"LICENCE",
15+
"LICENCE.MIT",
16+
]
17+
1218
authors = [
13-
{name = "python-ldap project", email = "python-ldap@python.org"},
19+
{ name = "python-ldap project", email = "python-ldap@python.org" },
1420
]
15-
readme = "README"
21+
readme = { file = "README.rst", content-type = "text/x-rst" }
22+
1623
requires-python = ">=3.9"
1724
keywords = ["ldap", "directory", "authentication"]
25+
1826
classifiers = [
1927
"Development Status :: 5 - Production/Stable",
2028
"Intended Audience :: Developers",
2129
"Intended Audience :: System Administrators",
22-
"Operating System :: OS Independent",
30+
31+
# "License :: OSI Approved :: Python Software Foundation License",
32+
2333
"Operating System :: MacOS :: MacOS X",
2434
"Operating System :: Microsoft :: Windows",
2535
"Operating System :: POSIX",
36+
2637
"Programming Language :: C",
27-
"Programming Language :: Python",
2838
"Programming Language :: Python :: 3",
39+
"Programming Language :: Python :: 3 :: Only",
2940
"Programming Language :: Python :: 3.9",
3041
"Programming Language :: Python :: 3.10",
3142
"Programming Language :: Python :: 3.11",
3243
"Programming Language :: Python :: 3.12",
3344
"Programming Language :: Python :: 3.13",
45+
3446
"Topic :: Database",
3547
"Topic :: Internet",
3648
"Topic :: Software Development :: Libraries :: Python Modules",
3749
"Topic :: System :: Systems Administration :: Authentication/Directory :: LDAP",
38-
"License :: OSI Approved :: Python Software Foundation License",
3950
]
51+
4052
dependencies = [
41-
"pyasn1 >= 0.3.7",
42-
"pyasn1_modules >= 0.1.5",
53+
"pyasn1>=0.3.7",
54+
"pyasn1_modules>=0.1.5",
4355
]
4456

4557
[project.urls]
@@ -48,13 +60,11 @@ Documentation = "https://python-ldap.readthedocs.io/"
4860
Repository = "https://github.com/python-ldap/python-ldap"
4961
Download = "https://pypi.org/project/python-ldap/"
5062
Changelog = "https://github.com/python-ldap/python-ldap/blob/main/CHANGES"
51-
52-
63+
Issues = "https://github.com/python-ldap/python-ldap/issues"
5364

5465
[tool.setuptools]
5566
zip-safe = false
5667
include-package-data = true
57-
license-files = ["LICENCE", "LICENCE.MIT"]
5868
# Explicitly list all Python modules
5969
py-modules = ["ldapurl", "ldif"]
6070

0 commit comments

Comments
 (0)