This repository was archived by the owner on Apr 26, 2024. It is now read-only.
File tree 3 files changed +14
-1
lines changed
3 files changed +14
-1
lines changed Original file line number Diff line number Diff line change @@ -43,7 +43,8 @@ dh_virtualenv \
43
43
--preinstall=" wheel" \
44
44
--extra-pip-arg=" --no-cache-dir" \
45
45
--extra-pip-arg=" --compile" \
46
- --extras=" all,systemd,test"
46
+ --extras=" all,systemd,test" \
47
+ --requirements=" requirements.txt"
47
48
48
49
PACKAGE_BUILD_DIR=" debian/matrix-synapse-py3"
49
50
VIRTUALENV_DIR=" ${PACKAGE_BUILD_DIR}${DH_VIRTUALENV_INSTALL_ROOT} /matrix-synapse"
Original file line number Diff line number Diff line change @@ -85,6 +85,15 @@ RUN apt-get update -qq -o Acquire::Languages=none \
85
85
libpq-dev \
86
86
xmlsec1
87
87
88
+ RUN pip3 install -U \
89
+ pip \
90
+ setuptools \
91
+ wheel
92
+
93
+ # We normally use poetry 1.1.12. However we need to use a prerelease of 1.2 here,
94
+ # which fixes a bug in poetry export that stops us from exporting for Python 3.8 builds.
95
+ RUN pip3 install poetry==1.2.0b1
96
+
88
97
COPY --from=builder /dh-virtualenv_1.2.2-1_all.deb /
89
98
90
99
# install dhvirtualenv. Update the apt cache again first, in case we got a
Original file line number Diff line number Diff line change @@ -11,6 +11,9 @@ DIST=$(cut -d ':' -f2 <<< "${distro:?}")
11
11
cp -aT /synapse/source /synapse/build
12
12
cd /synapse/build
13
13
14
+ # Export a requirements.txt file for the dh-virtualenv to use
15
+ poetry export --extras " all test" -o requirements.txt
16
+
14
17
# if this is a prerelease, set the Section accordingly.
15
18
#
16
19
# When the package is later added to the package repo, reprepro will use the
You can’t perform that action at this time.
0 commit comments