Skip to content

Commit 5b77c53

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 <noreply@anthropic.com>
1 parent b6a5a4e commit 5b77c53

5 files changed

Lines changed: 54 additions & 61 deletions

File tree

β€Ž.gitignoreβ€Ž

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,4 @@
77
/dist/
88
/htmlcov/
99
/requirements-mxdev.txt
10+
/build

β€Žpyproject.tomlβ€Ž

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
[build-system]
2+
requires = ["setuptools>=61.0"]
3+
build-backend = "setuptools.build_meta"
4+
5+
[project]
6+
name = "node"
7+
version = "1.2.3.dev0"
8+
description = "Building data structures as node trees"
9+
readme = "README.rst"
10+
license = {text = "Simplified BSD"}
11+
authors = [{name = "Node Contributors", email = "dev@conestack.org"}]
12+
keywords = ["node", "tree", "fullmapping", "dict"]
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+
"Programming Language :: Python",
20+
"Programming Language :: Python :: 2.7",
21+
"Programming Language :: Python :: 3.7",
22+
"Programming Language :: Python :: 3.8",
23+
"Programming Language :: Python :: 3.9",
24+
"Programming Language :: Python :: 3.10",
25+
]
26+
dependencies = [
27+
"odict>=1.9.0",
28+
"plumber>=1.5",
29+
"zope.component",
30+
"zope.deferredimport",
31+
"zope.deprecation",
32+
"zope.lifecycleevent",
33+
]
34+
35+
[project.optional-dependencies]
36+
test = [
37+
"pytest",
38+
]
39+
40+
[project.urls]
41+
Homepage = "http://github.com/conestack/node"
42+
43+
[tool.setuptools.packages.find]
44+
where = ["src"]
45+
46+
[tool.setuptools]
47+
zip-safe = true
48+
49+
[tool.setuptools.package-dir]
50+
"" = "src"
51+
52+
[tool.zest-releaser]
53+
create-wheel = true

β€Žsetup.cfgβ€Ž

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

β€Žsetup.pyβ€Ž

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

β€Žsrc/node/__init__.pyβ€Ž

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

0 commit comments

Comments
Β (0)