[Gruppo-web] [Git][ubuntu-it-web/www][develop] 2 commits: update the latest LTS release data

Mattia Rizzolo gitlab a code.ubuntu-it.org
Mer 25 Mar 2020 09:52:09 GMT



Mattia Rizzolo pushed to branch develop at Gruppo Web / Nuovo sito


Commits:
8266ccb8 by Mattia Rizzolo at 2020-03-25T10:48:34+01:00
update the latest LTS release data

Signed-off-by: Mattia Rizzolo <mapreri a ubuntu.com>

- - - - -
73e60439 by Mattia Rizzolo at 2020-03-25T10:48:51+01:00
Use the 'htmlmin' python module, instead of 'django-htmlmin'

Signed-off-by: Mattia Rizzolo <mapreri a ubuntu.com>

- - - - -


3 changed files:

- setup.py
- uitwww/data/downloads.toml
- uitwww/utils.py


Changes:

=====================================
setup.py
=====================================
@@ -39,7 +39,7 @@ setuptools.setup(
         "pyyaml",
         "requests",
         "toml",
-        "django-htmlmin",
+        "htmlmin",
     ],
 
     packages = [


=====================================
uitwww/data/downloads.toml
=====================================
@@ -3,7 +3,7 @@
 # necessario aggiornare questa sezione.
 
 [releases.latest]
-version = "18.04.3"
+version = "18.04.4"
 codename = "bionic"
 lts = true
 


=====================================
uitwww/utils.py
=====================================
@@ -22,6 +22,14 @@ from htmlmin import minify as html_minify
 import gunicorn.app.base as baseapp
 
 
+# check that the html_minify we imported is a real function
+# (i.e., no the html_minify that comes from django-htmlmin)
+try:
+    assert callable(html_minify)
+except AssertionError:
+    raise ImportError("html_minify is not callable")
+
+
 def random_key(length):
     """Generate a random key of a given length"""
     rng = random.SystemRandom()  # Use /dev/urandom



View it on GitLab: http://code.ubuntu-it.org/ubuntu-it-web/www/compare/297ac3874507b23f3d16a06ad0524eebec1ead10...73e60439e468a0c06d1086233b1105ae7a1738ac

-- 
View it on GitLab: http://code.ubuntu-it.org/ubuntu-it-web/www/compare/297ac3874507b23f3d16a06ad0524eebec1ead10...73e60439e468a0c06d1086233b1105ae7a1738ac
You're receiving this email because of your account on code.ubuntu-it.org.


-------------- parte successiva --------------
Un allegato HTML è stato rimosso...
URL: <http://liste.ubuntu-it.org/pipermail/gruppo-web/attachments/20200325/6906aae9/attachment-0001.htm>


Maggiori informazioni sulla lista Gruppo-web