Skip to content

Commit 73c0688

Browse files
ShahanaFarooquiendothermicdev
authored andcommitted
ci: Install poetry-plugin-export for poetry export command
Poetry will no longer include the `poetry-plugin-export` plugin by default, which is essential for exporting dependencies. So, we now need to install it explicitly.
1 parent 726f426 commit 73c0688

File tree

6 files changed

+13
-3
lines changed

6 files changed

+13
-3
lines changed

.github/workflows/ci.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ jobs:
7777
run: |
7878
bash -x .github/scripts/setup.sh
7979
pip install -U pip wheel poetry
80+
poetry self add poetry-plugin-export
8081
# Export and then use pip to install into the current env
8182
poetry export -o /tmp/requirements.txt --without-hashes --with dev
8283
pip install -r /tmp/requirements.txt
@@ -145,6 +146,7 @@ jobs:
145146
run: |
146147
set -e
147148
pip3 install --user pip wheel poetry
149+
poetry self add poetry-plugin-export
148150
poetry export -o requirements.txt --with dev --without-hashes
149151
python3 -m pip install -r requirements.txt
150152
./configure --enable-debugbuild CC="$COMPILER" ${{ matrix.COPTFLAGS_VAR }}
@@ -193,6 +195,7 @@ jobs:
193195
sudo apt-get update -qq
194196
sudo apt-get install -y -qq lowdown
195197
pip install -U pip wheel poetry
198+
poetry self add poetry-plugin-export
196199
# Export and then use pip to install into the current env
197200
poetry export -o /tmp/requirements.txt --without-hashes --with dev
198201
pip install -r /tmp/requirements.txt
@@ -227,6 +230,7 @@ jobs:
227230
run: |
228231
bash -x .github/scripts/setup.sh
229232
pip install -U pip wheel poetry
233+
poetry self add poetry-plugin-export
230234
# Export and then use pip to install into the current env
231235
poetry export -o /tmp/requirements.txt --without-hashes --with dev
232236
pip install -r /tmp/requirements.txt

Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@ ENV PYTHON_VERSION=3
9292
RUN curl -sSL https://install.python-poetry.org | python3 -
9393
RUN update-alternatives --install /usr/bin/python python /usr/bin/python3.9 1
9494
RUN pip3 install --upgrade pip setuptools wheel
95+
RUN poetry self add poetry-plugin-export
9596

9697
RUN wget -q https://zlib.net/fossils/zlib-1.2.13.tar.gz -O zlib.tar.gz && \
9798
wget -q https://www.sqlite.org/2019/sqlite-src-3290000.zip -O sqlite.zip
@@ -198,6 +199,7 @@ RUN ( ! [ "${target_host}" = "arm-linux-gnueabihf" ] ) || \
198199
# Ensure that the desired grpcio-tools & protobuf versions are installed
199200
# https://github.com/ElementsProject/lightning/pull/7376#issuecomment-2161102381
200201
RUN poetry lock --no-update && poetry install
202+
RUN poetry self add poetry-plugin-export
201203

202204
# Ensure that git differences are removed before making bineries, to avoid `-modded` suffix
203205
# poetry.lock changed due to pyln-client, pyln-proto and pyln-testing version updates

contrib/docker/Dockerfile.builder.fedora

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,3 +37,4 @@ ENV PATH=/opt/venv/bin:${PATH}
3737
RUN python3 -m pip install pip wheel && \
3838
python3 -m virtualenv /opt/venv && \
3939
/opt/venv/bin/python3 -m pip install --force-reinstall -U pip poetry wheel
40+
RUN poetry self add poetry-plugin-export

contrib/reprobuild/Dockerfile.focal

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,8 @@ RUN git clone https://github.com/pyenv/pyenv.git /root/.pyenv && \
4949

5050
RUN wget https://bootstrap.pypa.io/get-pip.py -O /tmp/get-pip.py && python3 /tmp/get-pip.py \
5151
&& rm /tmp/get-pip.py \
52-
&& pip install poetry mako grpcio-tools==1.62.2
52+
&& pip install poetry mako grpcio-tools==1.62.2 && \
53+
poetry self add poetry-plugin-export
5354

5455
RUN wget https://sh.rustup.rs -O rustup-install.sh && \
5556
bash rustup-install.sh --default-toolchain none --quiet -y && \

contrib/reprobuild/Dockerfile.jammy

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,8 @@ RUN git clone https://github.com/pyenv/pyenv.git /root/.pyenv && \
4747

4848
RUN wget https://bootstrap.pypa.io/get-pip.py -O /tmp/get-pip.py && python3 /tmp/get-pip.py \
4949
&& rm /tmp/get-pip.py \
50-
&& pip install poetry mako grpcio-tools
50+
&& pip install poetry mako grpcio-tools && \
51+
poetry self add poetry-plugin-export
5152

5253
RUN wget https://sh.rustup.rs -O rustup-install.sh && \
5354
bash rustup-install.sh --default-toolchain none --quiet -y && \

contrib/reprobuild/Dockerfile.noble

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,8 @@ RUN git clone https://github.com/pyenv/pyenv.git /root/.pyenv && \
4545

4646
RUN wget https://bootstrap.pypa.io/get-pip.py -O /tmp/get-pip.py && python3 /tmp/get-pip.py \
4747
&& rm /tmp/get-pip.py \
48-
&& pip install poetry mako grpcio-tools
48+
&& pip install poetry mako grpcio-tools && \
49+
poetry self add poetry-plugin-export
4950

5051
RUN wget https://sh.rustup.rs -O rustup-install.sh && \
5152
bash rustup-install.sh --default-toolchain none --quiet -y && \

0 commit comments

Comments
 (0)