Skip to content
This repository was archived by the owner on Aug 14, 2023. It is now read-only.

Commit f9b8925

Browse files
committed
Add version constraint on markupsafe
1 parent fc5933e commit f9b8925

File tree

2 files changed

+15
-1
lines changed

2 files changed

+15
-1
lines changed

Dockerfile.cli

+2-1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ COPY web /pgadmin4/web
2020

2121
# Install dependencies
2222
COPY requirements.txt /pgadmin4
23+
COPY constraints.txt /pgadmin4
2324
RUN rm -rf /pgadmin4/web/*.log \
2425
/pgadmin4/web/config_*.py \
2526
/pgadmin4/web/node_modules \
@@ -43,7 +44,7 @@ RUN apk add --no-cache \
4344
cargo \
4445
python3-dev && \
4546
python3 -m venv --system-site-packages --without-pip /venv && \
46-
/venv/bin/python3 -m pip install --no-cache-dir -r requirements.txt && \
47+
/venv/bin/python3 -m pip install --no-cache-dir -r requirements.txt -c constraints.txt && \
4748
apk del --no-cache build-deps
4849

4950
#########################################################################

constraints.txt

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
###############################################################################
2+
#
3+
# IMPORTANT:
4+
#
5+
# If runtime or build time dependencies are changed in this file, the committer
6+
# *must* ensure the DEB and RPM package maintainers are informed as soon as
7+
# possible.
8+
#
9+
###############################################################################
10+
11+
# markupsafe removed soft_unicode in 2.1.0 which resulted in import error
12+
# https://markupsafe.palletsprojects.com/en/2.1.x/changes/#version-2-1-0
13+
markupsafe==2.0.1

0 commit comments

Comments
 (0)