Closed apyrgio closed 3 weeks ago
Debian Trixie has started failing as well with the same error: https://app.circleci.com/pipelines/github/freedomofpress/dangerzone/2781/workflows/3660952c-d4ca-4b5b-a2a6-e2b41d417d95/jobs/39053?invite=true#step-106-1987_107
I would suggest doing kinda what I outlined in https://github.com/freedomofpress/dangerzone/issues/323#issuecomment-1485548943, run python3 setup.py --command-packages=stdeb.command sdist_dsc
as a one-time thing, commit the generated debian/
, and then build the package using the standard dpkg-buildpackage
tools. From then on, changes can be made to the debian files instead of going through stdeb.
Now that we have a good reason to switch .deb builders, we should strongly consider pybuild, which is also used by SecureDrop.
SecureDrop doesn't really use pybuild in any important way, we build our own virtualenv and ship that. But using pybuild is probably the right thing for Dangerzone.
Dangerzone has been using stdeb since the very beginning (early 2020). At that time, stdeb was still maintained, but this is not the case anymore. It hasn't seen a new release since October 2020 (see the PyPI releases page). Also, it seems to not work with Python 3.12, since it throws this error:
The reason for the above error is that Python 3.12 has removed the long deprecated
SafeConfigParser
class: https://github.com/python/cpython/issues/89336.Now that we have a good reason to switch .deb builders, we should strongly consider
pybuild
, which is also used by SecureDrop.