Skip to content

Commit b0f5a52

Browse files
committed
switch from poetry to uv
1 parent b2b38c1 commit b0f5a52

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

.github/scripts/build_rhel.sh

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,26 +24,27 @@ sudo -E XDG_RUNTIME_DIR= podman build --progress=plain \
2424
autoconf automake binutils cmake gcc gcc-c++ git glibc-devel glibc-headers glibc-static kernel-devel libtool libstdc++-devel make ninja-build pkgconfig zlib-devel \
2525
python3.11 python3.11-pip python3.11-devel \
2626
libjpeg-turbo-devel libpng-devel qpdf-devel json-devel utf8cpp-devel loguru-devel cxxopts-devel \
27+
uv pybind11 wheel \
2728
&& dnf clean all
2829
2930
WORKDIR /src
3031
31-
COPY ./dist/*.tar.gz .
32+
COPY ./ /src
33+
34+
RUN python3.11 build.py
35+
RUN uv build
3236
3337
ENV USE_SYSTEM_DEPS=on
3438
3539
# pre-install build requirements + wheel for "--no-build-isolation"
3640
# build docling-parse wheel in an isolated network namespace (unshare -rn)
3741
# install the wheel and its dependencies
38-
RUN pip3.11 install uv pybind11 wheel \
39-
&& unshare -rn pip3.11 wheel \
42+
RUN unshare -rn pip3.11 wheel \
4043
--no-deps --no-build-isolation -w /dist/ \
4144
/src/docling_parse*.tar.gz \
4245
&& pip3.11 install /dist/docling_parse*.whl \
4346
&& python3.11 -c 'from docling_parse.pdf_parsers import pdf_parser_v1, pdf_parser_v2'
4447
45-
COPY ./tests /src/tests
46-
4748
RUN pip3.11 install pytest \
4849
&& pytest
4950
EOF

0 commit comments

Comments
 (0)