Skip to content

Commit 7b7fbe9

Browse files
authored
chore: Move to setuptools for build (#157)
1 parent d31ec19 commit 7b7fbe9

File tree

2 files changed

+14
-14
lines changed

2 files changed

+14
-14
lines changed

MANIFEST.in

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
recursive-include djangocms_text *.html *.txt *.mo *.js *.css *.svg *.png *.gif *.jpg *.woff *.woff2 *.ttf *.eot
2+
recursive-include djangocms_text_ckeditor *.html *.txt *.js *.css *.svg *.png *.gif *.jpg *.woff *.woff2 *.ttf *.eot

pyproject.toml

Lines changed: 12 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[build-system]
2-
build-backend = "hatchling.build"
3-
requires = [ "hatchling" ]
2+
build-backend = "setuptools.build_meta"
3+
requires = [ "setuptools>=64" ]
44

55
[project]
66
name = "djangocms-text"
@@ -55,20 +55,18 @@ dependencies = [
5555
urls.Homepage = "https://github.com/django-cms/djangocms-text"
5656

5757
[tool.setuptools]
58-
packages = [ "djangocms_text", "djangocms_text_ckeditor" ]
59-
60-
[tool.hatch]
61-
build.include = [
62-
"/djangocms_text",
63-
"/djangocms_text_ckeditor",
58+
packages.find.include = [ "djangocms_text*", "djangocms_text_ckeditor*" ]
59+
dynamic.version = { attr = "djangocms_text.__version__" }
60+
package-data."djangocms_text" = [
61+
"locale/**/*.mo",
62+
"static/**",
63+
"contrib/**/static/**",
64+
"templates/**",
65+
"THIRD_PARTY_LICENSES.txt",
6466
]
65-
build.artifacts = [
66-
"djangocms_text/static/**",
67-
"djangocms_text/contrib/**/static/**",
68-
"djangocms_text/locale/**/*.mo",
69-
"djangocms_text/THIRD_PARTY_LICENSES.txt",
67+
package-data."djangocms_text_ckeditor" = [
68+
"static/**",
7069
]
71-
version.path = "djangocms_text/__init__.py"
7270

7371
[tool.ruff]
7472
line-length = 120

0 commit comments

Comments
 (0)