Commit Graph

9 Commits

Author SHA1 Message Date
Jeremy Stanley 1cee24ce0b Support Pillow v10
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
2024-02-20 21:49:07 +00:00
Clark Boylan 95fc241bc0 Pin SQLAlchemy less than 2.0.0
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
2023-05-08 09:26:45 -07:00
Mohammed Naser 7bca3dd30d docker: switch to using uwsgi-base
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
2020-04-22 17:56:08 -04:00
Monty Taylor 94fe4ad8e3 Add libc6-dev to bindep and pin Pygments for 2.7
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
2020-03-26 10:10:08 -05:00
Mohammed Naser 54727daa85 Upload container images
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
2020-03-09 08:19:55 -04:00
Tristan Cacqueray 9b854e7729 Fix python3 compatibility issue
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
2020-03-04 13:09:24 -06:00
David Pursehouse 2d4b0ebee6 Fix pep8 errors
- 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>
2020-03-04 13:09:04 -06:00
Takeshi Kanemoto d89ca4b7e4 Add pytz and MarkupSafe into requirements.txt
Change-Id: I82a28aa126fe09c8b96425db6daeb377353100db
2015-11-27 10:15:32 +01:00
David Pursehouse d266ff9743 Add a requirements.txt file
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
2015-04-20 14:14:54 +09:00