Skip to content

Commit 4126e11

Browse files
committed
- Move all package metadata to pyproject.toml
1 parent a186bd7 commit 4126e11

File tree

3 files changed

+55
-66
lines changed

3 files changed

+55
-66
lines changed

CHANGES.rst

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,12 @@ This change log covers releases starting with version 3.0. For earlier
55
releases, see the file `HISTORY.txt` in this folder.
66

77

8-
6.1 (unreleased)
8+
6.1 (2025-11-19)
99
----------------
10+
- Move all package metadata to ``pyproject.toml``.
1011

1112

12-
6.0 (unreleased)
13+
6.0 (2025-11-19)
1314
----------------
1415
- Convert to PEP 420-style namespace package.
1516

pyproject.toml

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,57 @@ requires = [
88
]
99
build-backend = "setuptools.build_meta"
1010

11+
[project]
12+
name = "Products.LDAPUserFolder"
13+
version = "6.1"
14+
description = "LDAP-enabled Zope user folder"
15+
keywords = ["zope", "authorization", "authentication", "ldap"]
16+
readme = "README.rst"
17+
requires-python = ">=3.10"
18+
license = "ZPL-2.1"
19+
license-files = ["LICENSE.txt"]
20+
authors = [
21+
{ name = "Jens Vagelpohl and contributors", email = "jens@dataflake.org" },
22+
]
23+
classifiers = [
24+
"Development Status :: 6 - Mature",
25+
"Environment :: Web Environment",
26+
"Framework :: Zope",
27+
"Framework :: Zope :: 5",
28+
"Intended Audience :: Developers",
29+
"Operating System :: OS Independent",
30+
"Programming Language :: Python",
31+
"Programming Language :: Python :: 3",
32+
"Programming Language :: Python :: 3 :: Only",
33+
"Programming Language :: Python :: 3.10",
34+
"Programming Language :: Python :: 3.11",
35+
"Programming Language :: Python :: 3.12",
36+
"Programming Language :: Python :: 3.13",
37+
"Programming Language :: Python :: 3.14",
38+
"Topic :: Internet :: WWW/HTTP :: Site Management",
39+
"Topic :: System :: Systems Administration :: Authentication/Directory :: LDAP",
40+
]
41+
dependencies = [
42+
"Zope >= 5",
43+
"dataflake.cache",
44+
"dataflake.fakeldap",
45+
"python-ldap",
46+
]
47+
48+
[project.optional-dependencies]
49+
docs = [
50+
"Sphinx",
51+
"repoze.sphinx.autointerface",
52+
"furo",
53+
]
54+
exportimport = ["Products.GenericSetup"]
55+
56+
[project.urls]
57+
Documentation = "https://productsldapuserfolder.readthedocs.io"
58+
Issues = "https://github.com/dataflake/Products.LDAPUserFolder/issues"
59+
Source = "https://github.com/dataflake/Products.LDAPUserFolder"
60+
Changelog = "https://productsldapmultiplugins.readthedocs.io/en/latest/changes.html"
61+
1162
[tool.coverage.run]
1263
branch = true
1364
source = ["Products.LDAPUserFolder"]

setup.py

Lines changed: 1 addition & 64 deletions
Original file line numberDiff line numberDiff line change
@@ -11,70 +11,7 @@
1111
#
1212
##############################################################################
1313

14-
import os
15-
1614
from setuptools import setup
1715

1816

19-
NAME = 'Products.LDAPUserFolder'
20-
21-
22-
def read(name):
23-
with open(os.path.join(os.path.dirname(__file__), name)) as fp:
24-
return fp.read()
25-
26-
27-
setup(
28-
name='Products.LDAPUserFolder',
29-
version='6.1.dev0',
30-
description='A LDAP-enabled Zope user folder',
31-
long_description=read('README.rst'),
32-
long_description_content_type='text/x-rst',
33-
classifiers=[
34-
"Development Status :: 6 - Mature",
35-
"Environment :: Web Environment",
36-
"Framework :: Zope",
37-
"Framework :: Zope :: 5",
38-
"Intended Audience :: Developers",
39-
"License :: OSI Approved :: Zope Public License",
40-
"Operating System :: OS Independent",
41-
"Programming Language :: Python :: 3",
42-
"Programming Language :: Python :: 3.10",
43-
"Programming Language :: Python :: 3.11",
44-
"Programming Language :: Python :: 3.12",
45-
"Programming Language :: Python :: 3.13",
46-
"Programming Language :: Python :: 3.14",
47-
"Programming Language :: Python :: Implementation :: CPython",
48-
"Topic :: Internet :: WWW/HTTP :: Site Management",
49-
"Topic :: Software Development",
50-
"Topic :: System :: Systems Administration ::"
51-
"Authentication/Directory :: LDAP",
52-
],
53-
keywords='web application server zope authentication ldap',
54-
author="Jens Vagelpohl and contributors",
55-
author_email="jens@dataflake.org",
56-
url="https://github.com/dataflake/Products.LDAPUserFolder",
57-
project_urls={
58-
'Documentation': 'https://productsldapuserfolder.readthedocs.io/',
59-
'Issue Tracker': (
60-
'https://github.com/dataflake/'
61-
'Products.LDAPUserFolder/issues'),
62-
'Sources': 'https://github.com/dataflake/Products.LDAPUserFolder',
63-
},
64-
license="ZPL-2.1",
65-
python_requires='>=3.10',
66-
install_requires=[
67-
'Zope >= 5',
68-
'dataflake.cache',
69-
'dataflake.fakeldap',
70-
'python-ldap >= 3.3',
71-
],
72-
extras_require={
73-
'exportimport': ['Products.GenericSetup >= 2.0b1'],
74-
'docs': [
75-
'Sphinx',
76-
'furo',
77-
'repoze.sphinx.autointerface',
78-
],
79-
},
80-
)
17+
setup()

0 commit comments

Comments
 (0)