Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix tests and add builddeps of python3-apt to Dockerfile #392

Merged
merged 2 commits into from
Nov 8, 2023

Conversation

bbhtt
Copy link
Contributor

@bbhtt bbhtt commented Nov 5, 2023

The tests broke a bit after #391

Trying to fix the installation part of all pip modules at least.

@bbhtt bbhtt force-pushed the fix-tests branch 3 times, most recently from f29c02d to e9e5cc1 Compare November 5, 2023 10:29
@bbhtt bbhtt changed the title Add gcc to apt dependencies Add builddeps of python3-apt to Dockerfile Nov 5, 2023
@bbhtt
Copy link
Contributor Author

bbhtt commented Nov 5, 2023

Ok it should be back to the state before #391

@bbhtt bbhtt changed the title Add builddeps of python3-apt to Dockerfile Fix tests and add builddeps of python3-apt to Dockerfile Nov 5, 2023
@bbhtt
Copy link
Contributor Author

bbhtt commented Nov 5, 2023

Ok, all tests should be fixed now.

@bbhtt
Copy link
Contributor Author

bbhtt commented Nov 5, 2023

The issue with httpbin-go is now fixed mccutchen/go-httpbin#153, I think I can drop the last commit.

Copy link
Contributor

@wjt wjt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for looking into this!

RUN apt-get update && \
xargs apt-get install --no-install-recommends -y < dependencies.apt.txt && \
apt-get --no-install-recommends -y build-dep python3-apt && \
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It feels a bit weird to install the build-deps from apt, but then install the package via pip. I guess that's fine because it makes the requirements.txt usable on non-Debian distros.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I noticed it too, that pip modules are getting installed twice one by apt then by pip.

Not sure what to do there.

@@ -4,8 +4,11 @@ ENV DEBIAN_FRONTEND=noninteractive

ADD dependencies.apt.txt ./

RUN printf "deb-src http://deb.debian.org/debian bullseye main\ndeb-src http://deb.debian.org/debian-security/ bullseye-security main\ndeb-src http://deb.debian.org/debian bullseye-updates main" >> /etc/apt/sources.list
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I might try a patch to generate this based on the existing lines of /etc/apt/sources.list but this will work!

@wjt wjt merged commit 0f5999b into flathub-infra:master Nov 8, 2023
3 checks passed
@bbhtt bbhtt deleted the fix-tests branch April 18, 2024 03:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants