From 58e043da545e56b61a0bdc67b853c11e590d0325 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89rico=20Andrei?= Date: Thu, 9 Nov 2023 15:25:58 -0300 Subject: [PATCH] Only require plone.restapi if headless is enabled --- plone_addon/{{ cookiecutter.python_package_name }}/setup.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/plone_addon/{{ cookiecutter.python_package_name }}/setup.py b/plone_addon/{{ cookiecutter.python_package_name }}/setup.py index ec4bcde..5df698f 100644 --- a/plone_addon/{{ cookiecutter.python_package_name }}/setup.py +++ b/plone_addon/{{ cookiecutter.python_package_name }}/setup.py @@ -52,7 +52,9 @@ "setuptools", "Plone", "plone.api", - "plone.restapi" + {%- if cookiecutter.feature_headless == '1' %} + "plone.restapi", + {%- endif %} ], extras_require={ "test": [