Skip to content

Commit 875f96b

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 5262887 commit 875f96b

File tree

5 files changed

+48
-61
lines changed

5 files changed

+48
-61
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,4 @@
1515
/pypy3/
1616
/requirements-mxdev.txt
1717
/venv/
18+
/build

pyproject.toml

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
[build-system]
2+
requires = ["setuptools>=61.0"]
3+
build-backend = "setuptools.build_meta"
4+
5+
[project]
6+
name = "yafowil.widget.wysihtml5"
7+
version = "2.0.dev0"
8+
description = "wysihtml5 richtext widget for YAFOWIL with bootstrap integration"
9+
readme = "README.rst"
10+
license = {text = "Simplified BSD"}
11+
authors = [{name = "Yafowil Contributors", email = "[email protected]"}]
12+
classifiers = [
13+
"Environment :: Web Environment",
14+
"Operating System :: OS Independent",
15+
"Programming Language :: Python",
16+
"Topic :: Internet :: WWW/HTTP :: Dynamic Content",
17+
"License :: OSI Approved :: BSD License",
18+
"Programming Language :: Python :: 2.7",
19+
"Programming Language :: Python :: 3.5",
20+
"Programming Language :: Python :: 3.6",
21+
"Programming Language :: Python :: 3.7",
22+
]
23+
dependencies = [
24+
"yafowil>2.1.99",
25+
]
26+
27+
[project.optional-dependencies]
28+
test = [
29+
"lxml",
30+
"pytest",
31+
]
32+
33+
[project.entry-points."yafowil.plugin"]
34+
register = "yafowil.widget.wysihtml5:register"
35+
example = "yafowil.widget.wysihtml5.example:get_example"
36+
37+
[tool.setuptools.packages.find]
38+
where = ["src"]
39+
40+
[tool.setuptools]
41+
zip-safe = false
42+
43+
[tool.setuptools.package-dir]
44+
"" = "src"
45+
46+
[tool.zest-releaser]
47+
create-wheel = true

setup.py

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

src/yafowil/__init__.py

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

src/yafowil/widget/__init__.py

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

0 commit comments

Comments
 (0)