Skip to content

Commit f85bc70

Browse files
committed
chore: Move from hatchling to setuptools
1 parent 239bdc7 commit f85bc70

File tree

3 files changed

+12
-12
lines changed

3 files changed

+12
-12
lines changed

djangocms_stories/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "0.5.0"
1+
__version__ = "0.5.1"

djangocms_stories/cms_config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ class StoriesCMSConfig(CMSAppConfig):
1212
cms_enabled = True
1313
cms_toolbar_enabled_models = [(PostContent, ToolbarDetailView.as_view(), "post")]
1414
djangocms_versioning_enabled = (
15-
getattr(settings, "VERSIONING_BLOG_MODELS_ENABLED", True) and djangocms_versioning_installed
15+
getattr(settings, "VERSIONING_BLOG_MODELS_ENABLED", djangocms_versioning_installed)
1616
)
1717
if djangocms_versioning_enabled:
1818
from packaging.version import Version as PackageVersion

pyproject.toml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[build-system]
2-
build-backend = "hatchling.build"
2+
build-backend = "setuptools.build_meta"
33

4-
requires = [ "hatchling" ]
4+
requires = [ "setuptools", "setuptools-scm" ]
55

66
[project]
77
name = "djangocms-stories"
@@ -21,7 +21,6 @@ classifiers = [
2121
"Framework :: Django :: 5.2",
2222
"Framework :: Django CMS :: 4.1",
2323
"Framework :: Django CMS :: 5.0",
24-
"License :: OSI Approved :: BSD License",
2524
"Programming Language :: Python :: 3 :: Only",
2625
"Programming Language :: Python :: 3.9",
2726
"Programming Language :: Python :: 3.10",
@@ -67,14 +66,15 @@ urls.Homepage = "https://github.com/django-cms/djangocms-stories"
6766

6867
urls.Issues = "https://github.com/fsbraun/djangocms-stories/issues"
6968

70-
[tool.hatch.version]
71-
path = "djangocms_stories/__init__.py"
69+
[tool.setuptools.dynamic]
70+
version = { attr = "djangocms_stories.__version__" }
7271

73-
[tool.hatch.build.targets.sdist]
74-
include = [
75-
"/djangocms_blog",
76-
"/djangocms_stories",
77-
]
72+
[tool.setuptools.package-data]
73+
djangocms_stories = [ "static/**/*", "templates/**/*", "locale/**/*", "LICENSE", "README.rst" ]
74+
exclude = [ "**/bundles/" ]
75+
76+
[tool.setuptools]
77+
packages = [ "djangocms_stories", "djangocms_blog" ]
7878

7979
[tool.black]
8080
line-length = 119

0 commit comments

Comments
 (0)