Add data files for themes and plugins using setuptools package-data

Use setuptools' `package-data` [1] to unconditionally add all files
below sigal's `themes/` dir and all data files below the
`plugins/encrypt/static/` dir to a wheel.
This works without any SCM integration and without `MANIFEST.in`.

Fixes https://github.com/saimn/sigal/issues/500

[1] https://setuptools.pypa.io/en/latest/userguide/datafiles.html#package-data

Signed-off-by: David Runge <dave@sleepmap.de>
This commit is contained in:
David Runge
2023-10-27 10:08:31 +02:00
parent 6bd9cd348a
commit ebedd9f0cc

View File

@@ -55,6 +55,12 @@ license-files = ["LICENSE"]
where = ["src"]
namespaces = true
[tool.setuptools.package-data]
sigal = [
"plugins/encrypt/static/*",
"themes/**",
]
[tool.setuptools_scm]
write_to = "src/sigal/version.py"