Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .spellcheck-wordlist.txt
Original file line number Diff line number Diff line change
Expand Up @@ -369,3 +369,5 @@ JupyterHub
SSLProxyCACertificateFile
ANTISLOWLORIS
slowloris
PYTEST
pytest
10 changes: 7 additions & 3 deletions Dockerfile.rocky9
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ ARG ENABLE_JOBS=True
ARG ENABLE_RESOURCES=True
ARG ENABLE_EVENTS=True
ARG ENABLE_GRAVATARS=True
ARG ENABLE_PYTEST=False
ARG ENABLE_SITESTATUS=True
ARG STATUS_SYSTEM_MATCH="ANY"
ARG ENABLE_FREEZE=False
Expand Down Expand Up @@ -744,6 +745,7 @@ ARG WITH_PY3
ARG MODERN_WSGIDAV
ARG UPGRADE_PARAMIKO
ARG ENABLE_CLOUD
ARG ENABLE_PYTEST
ARG OPENSTACKSDK_VERSION_OVERRIDE
ARG TRAC_ADMIN_PATH

Expand Down Expand Up @@ -834,9 +836,11 @@ RUN if [ "${WITH_PY3}" = "True" ]; then \
pip3 install --no-cache-dir --prefix=$(python3-config --prefix) cracklib; \
fi;

# Module required to run pytests but conflicts with TracTags
RUN if [ "${WITH_PY3}" = "True" ]; then \
if [ -z "${TRAC_ADMIN_PATH}" ]; then \
# Module for pytests but unwanted in production and conflicts with TracTags
RUN if [ "${ENABLE_PYTEST}" = "True" ]; then \
if [ -n "${TRAC_ADMIN_PATH}" ]; then \
echo "*** TracTags is incompatible with pytest ***" ; exit 1; \
else \
pip3 install --no-cache-dir pytest; \
fi; \
fi;
Expand Down
2 changes: 2 additions & 0 deletions development.env
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,8 @@ ENABLE_EVENTS=True
ENABLE_QUOTA=False
ENABLE_ACCOUNTING=False
ENABLE_GRAVATARS=True
# Only enable pytest module in development
ENABLE_PYTEST=True
ENABLE_SITESTATUS=True
STATUS_SYSTEM_MATCH=ANY
ENABLE_FREEZE=True
Expand Down
2 changes: 2 additions & 0 deletions development_gdp.env
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,8 @@ ENABLE_EVENTS=False
ENABLE_QUOTA=False
ENABLE_ACCOUNTING=False
ENABLE_GRAVATARS=False
# Only enable pytest module in development
ENABLE_PYTEST=True
ENABLE_SITESTATUS=True
STATUS_SYSTEM_MATCH=ANY
ENABLE_FREEZE=False
Expand Down
3 changes: 3 additions & 0 deletions doc/source/sections/configuration/variables.rst
Original file line number Diff line number Diff line change
Expand Up @@ -368,6 +368,9 @@ Variables
* - ENABLE_GRAVATARS
- True
- Enables optional gravatar integration on user profiles of registered users
* - ENABLE_PYTEST
- False
- Enables optional pytest integration for self-test support e.g. during development
* - ENABLE_SITESTATUS
- True
- Enable the built-in site status through the pop-up in the bottom right corner based on events authored in state/wwwpublic/status-events.json .
Expand Down
2 changes: 2 additions & 0 deletions production.env
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,8 @@ ENABLE_EVENTS=True
ENABLE_QUOTA=False
ENABLE_ACCOUNTING=False
ENABLE_GRAVATARS=True
# Only enable pytest module in development
ENABLE_PYTEST=False
ENABLE_SITESTATUS=True
STATUS_SYSTEM_MATCH=ANY
ENABLE_FREEZE=True
Expand Down
Loading