From 86826c0c03389c4563d22cc816999a9b907b8d05 Mon Sep 17 00:00:00 2001 From: Bastian Venthur Date: Sat, 24 Jun 2023 13:27:11 +0200 Subject: [PATCH] list default template as package explicitily --- CHANGELOG.md | 3 +++ pyproject.toml | 10 +++------- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index e4e849a..271acd5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,9 @@ * default theme: `img` have now `max-width: 100%` by default to avoid very large images overflowing +* packaging: explicitly list `templates`, `static` and `content` as packages + instead of using package-data for setuptools + ## [2.0.0] - 2023-06-16 diff --git a/pyproject.toml b/pyproject.toml index e6b5dda..141b900 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -47,16 +47,12 @@ version = {attr = "blag.__VERSION__" } [tool.setuptools] packages = [ "blag", + "blag.templates", + "blag.static", + "blag.content", "tests", ] -[tool.setuptools.package-data] -blag = [ - "templates/*", - "static/*", - "content/*", -] - [tool.pytest.ini_options] addopts = """ --cov=blag