Pillow 9.5 deprecated the getsize method for fonts in favor of its
new getbbox, and then getsize was removed in Pillow 10.. Adjust the
call we use for captcha generation so it will continue working, and
declare a requirement for the earliest forward-compatible release.
Change-Id: Ib35eea077d7f8c428493ef8e4cfe00e05e580a6f
SQLAlchemy 2.0 is a very large non backward compatible update. We should
probably take the time to update lodgeit to work with SQLAlchemy 2.0,
but for now lets just make the software buildable and pin the dep.
Change-Id: Ie4fcc6e8aae92b54adb30ac6028907217613165f
This changes switches the Docker image to use the uwsgi-base image which
have no changes in the consumption of the image.
Depends-On: https://review.opendev.org/713953
Change-Id: Ia04425ca7bf22f0e9cc2dbe35daefa466c92dd56
The python-builder base image was updated to no longer install
recommends. This is inline with the other Infra images and keeps
image sizes smaller. gcc recommended libc6-dev - but it turns out
we need that for stdio.h for one of our depends. Add it to fix
our image builds.
Pygments released a python3-only release. Pin back to before
that for python2.
Change-Id: I18a808748979b7167361d2e5ebce04bc8eaf1347
This is an initial go at building this Python package and uploading
an image for it. This will be followed up with some changes which
will make it easier to execute with an entrypoint and environment
variables later.
Change-Id: Ie2219fc96f32554bde1cac37faa0b961dc53b95e
This change fix python3 compatibility:
* replace except obj, name with except obj as name
* use print function
* replace iteritems by six.iteritems
* replace xrange by range
* convert items() result to list
Change-Id: I70364e47541274d446c4449f820dce3e0b331b27
- E722 do not use bare 'except'
Replace bare except clauses with explicit exception types.
- E741 ambiguous variable name 'l'
Rename 'l' to 'locale'
In addition this patch squashes 684782 to use older
werkzeug version to not face with exceptions.
Generally this patch fixes lodgeit CI.
Also, add tox jobs to in-tree zuul config
These were defined in project-config, but we don't need to manage
that centrally.
Change-Id: Id750715472f88fa5dba0a2414fb1667df4a6dc40
Signed-off-by: David Pursehouse <dpursehouse@collab.net>
This allows the dependency libraries to be installed with pip.
For users installing the dependencies off an internal package server
it's better to use pip rather than easy_install because easy_install
does not honour the PIP_INDEX_URL environment variable.
Change-Id: I144fcb98f43fc49055c5917e07b18bbffcb8e60f