Skip to content

Commit 5dc1963

Browse files
rnixxclaude
andcommitted
Refactor package layout to modern Python packaging
- Convert setup.py/setup.cfg to pyproject.toml - Implement PEP 420 implicit namespaces (remove namespace declarations) - Delete namespace-only __init__.py files - Add /build to .gitignore 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
1 parent 8d10a61 commit 5dc1963

File tree

6 files changed

+62
-81
lines changed

6 files changed

+62
-81
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,4 @@
88
/openldap
99
/requirements-mxdev.txt
1010
/venv
11+
/build

pyproject.toml

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
[build-system]
2+
requires = ["setuptools>=61.0"]
3+
build-backend = "setuptools.build_meta"
4+
5+
[project]
6+
name = "node.ext.ldap"
7+
version = "1.3.dev0"
8+
description = "LDAP/AD convenience with Node-trees based on python-ldap"
9+
readme = "README.rst"
10+
license = {text = "Simplified BSD"}
11+
authors = [{name = "Node Contributors", email = "[email protected]"}]
12+
keywords = ["ldap", "authentication", "node", "tree", "access", "users", "groups"]
13+
classifiers = [
14+
"Development Status :: 5 - Production/Stable",
15+
"License :: OSI Approved :: BSD License",
16+
"Intended Audience :: Developers",
17+
"Operating System :: OS Independent",
18+
"Topic :: Software Development",
19+
"Topic :: System :: Systems Administration :: Authentication/Directory :: LDAP",
20+
"Programming Language :: Python",
21+
"Programming Language :: Python :: 2.7",
22+
"Programming Language :: Python :: 3.7",
23+
"Programming Language :: Python :: 3.8",
24+
"Programming Language :: Python :: 3.9",
25+
"Programming Language :: Python :: 3.10",
26+
]
27+
dependencies = [
28+
'argparse;python_version<"3.2"',
29+
"bda.cache",
30+
"node>=1.1",
31+
"node.ext.ugm>=1.0",
32+
"passlib",
33+
"python-ldap>=2.4.14",
34+
]
35+
36+
[project.optional-dependencies]
37+
test = [
38+
"coverage",
39+
"plone.testing",
40+
"zope.configuration",
41+
"zope.testing",
42+
"zope.testrunner",
43+
]
44+
45+
[project.urls]
46+
Homepage = "https://github.com/conestack/node.ext.ldap"
47+
48+
[project.scripts]
49+
testldap = "node.ext.ldap.main:slapd"
50+
51+
[tool.setuptools.packages.find]
52+
where = ["src"]
53+
54+
[tool.setuptools]
55+
zip-safe = false
56+
57+
[tool.setuptools.package-dir]
58+
"" = "src"
59+
60+
[tool.zest-releaser]
61+
create-wheel = true

setup.cfg

Lines changed: 0 additions & 2 deletions
This file was deleted.

setup.py

Lines changed: 0 additions & 77 deletions
This file was deleted.

src/node/__init__.py

Lines changed: 0 additions & 1 deletion
This file was deleted.

src/node/ext/__init__.py

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)