All of lore.kernel.org
 help / color / mirror / Atom feed
* [layerindex-web 1/3] build(deps): bump pillow from 9.3.0 to 10.0.1
@ 2023-10-06  2:44 Tim Orling
  2023-10-06  2:44 ` [layerindex-web 2/3] dockersetup.py: databasefile zstd compression Tim Orling
  2023-10-06  2:44 ` [layerindex-web 3/3] requirements: bump django-simple-captcha to 0.5.20 Tim Orling
  0 siblings, 2 replies; 3+ messages in thread
From: Tim Orling @ 2023-10-06  2:44 UTC (permalink / raw)
  To: yocto; +Cc: dependabot [bot], Tim Orling

From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com>

Bumps [pillow](https://github.com/python-pillow/Pillow) from 9.3.0 to 10.0.1.
- [Release notes](https://github.com/python-pillow/Pillow/releases)
- [Changelog](https://github.com/python-pillow/Pillow/blob/main/CHANGES.rst)
- [Commits](https://github.com/python-pillow/Pillow/compare/9.3.0...10.0.1)

---
updated-dependencies:
- dependency-name: pillow
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: Tim Orling <tim.orling@konsulko.com>
---
 requirements.txt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/requirements.txt b/requirements.txt
index 5bc4659..5cc07a4 100644
--- a/requirements.txt
+++ b/requirements.txt
@@ -19,7 +19,7 @@ gitdb==4.0.9
 GitPython==3.1.37
 kombu==5.2.3
 mysqlclient==2.1.0
-Pillow==9.3.0
+Pillow==10.0.1
 pytz==2021.3
 six==1.16.0
 smmap==5.0.0
-- 
2.34.1



^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [layerindex-web 2/3] dockersetup.py: databasefile zstd compression
  2023-10-06  2:44 [layerindex-web 1/3] build(deps): bump pillow from 9.3.0 to 10.0.1 Tim Orling
@ 2023-10-06  2:44 ` Tim Orling
  2023-10-06  2:44 ` [layerindex-web 3/3] requirements: bump django-simple-captcha to 0.5.20 Tim Orling
  1 sibling, 0 replies; 3+ messages in thread
From: Tim Orling @ 2023-10-06  2:44 UTC (permalink / raw)
  To: yocto; +Cc: Tim Orling

zstd compression and decompression are significantly faster than gzip.
zstd is also "splittable" and is streaming/real-time friendly.

Signed-off-by: Tim Orling <tim.orling@konsulko.com>
---
 dockersetup.py | 16 ++++++++++++----
 1 file changed, 12 insertions(+), 4 deletions(-)

diff --git a/dockersetup.py b/dockersetup.py
index 6a0ab67..d6e8f33 100755
--- a/dockersetup.py
+++ b/dockersetup.py
@@ -4,6 +4,8 @@
 #
 # Copyright (C) 2018 Intel Corporation
 # Author: Amber Elliot <amber.n.elliot@intel.com>
+# Copyright (C) 2023 Konsulko Group
+# Author: Tim Orling <tim.orling@konsulko.com>
 #
 # Licensed under the MIT license, see COPYING.MIT for details
 #
@@ -52,7 +54,7 @@ def get_args():
     parser.add_argument('-s', '--https-proxy', type=str, help='https proxy in the format http://<myproxy:port>', default=default_https_proxy, required=False)
     parser.add_argument('-S', '--socks-proxy', type=str, help='socks proxy in the format socks://myproxy:port>', default=default_socks_proxy, required=False)
     parser.add_argument('-N', '--no-proxy', type=str, help='Comma-separated list of hosts that should not be connected to via the proxy', default=default_no_proxy, required=False)
-    parser.add_argument('-d', '--databasefile', type=str, help='Location of your database file to import. Must be a .sql or .sql.gz file.', required=False)
+    parser.add_argument('-d', '--databasefile', type=str, help='Location of your database file to import. Must be a .sql, .sql.gz or .sql.zstd file.', required=False)
     parser.add_argument('-e', '--email-host', type=str, help='Email host for sending messages (optionally with :port if not 25)', required=False)
     parser.add_argument('--email-user', type=str, help='User name to use when connecting to email host', required=False)
     parser.add_argument('--email-password', type=str, help='Password to use when connecting to email host', required=False)
@@ -804,9 +806,15 @@ while True:
 if not args.update:
     # Import the user's supplied data
     if args.databasefile:
-        return_code = subprocess.call("gunzip -t %s > /dev/null 2>&1" % quote(args.databasefile), shell=True)
-        if return_code == 0:
-            catcmd = 'zcat'
+        filename, file_extension = os.path.splitext(args.databasefile)
+        if file_extension == ".zstd":
+            return_code = subprocess.call("zstd -t %s > /dev/null 2>&1" % quote(args.databasefile), shell=True)
+            if return_code == 0:
+                catcmd = 'zstdcat'
+        elif file_extension == ".gz":
+            return_code = subprocess.call("gunzip -t %s > /dev/null 2>&1" % quote(args.databasefile), shell=True)
+            if return_code == 0:
+                catcmd = 'zcat'
         else:
             catcmd = 'cat'
         env = os.environ.copy()
-- 
2.34.1



^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [layerindex-web 3/3] requirements: bump django-simple-captcha to 0.5.20
  2023-10-06  2:44 [layerindex-web 1/3] build(deps): bump pillow from 9.3.0 to 10.0.1 Tim Orling
  2023-10-06  2:44 ` [layerindex-web 2/3] dockersetup.py: databasefile zstd compression Tim Orling
@ 2023-10-06  2:44 ` Tim Orling
  1 sibling, 0 replies; 3+ messages in thread
From: Tim Orling @ 2023-10-06  2:44 UTC (permalink / raw)
  To: yocto; +Cc: Tim Orling

https://raw.githubusercontent.com/mbi/django-simple-captcha/master/CHANGES

Version 0.5.20
--------------
* Still support Django 3.2 (#222, thanks @petrklus)

Version 0.5.19
--------------
* SECURITY ISSUE: reset the random seed after an image was generated (#221, thanks @ibuler)

Version 0.5.18
--------------
* Fix some typos in documentation (#210, thanks @stweil)
* Test against Django 4.2
* Stopped testing Django < 3.2
* BaseCaptchaTextInput should set autocomplete=off on the hashkey HiddenInput (#201, thanks @eerotal)
* Test against Django 4.2a
* Fix some deprecation warnings in Pillow 9.2+
* Removed old unused conditional imports
* Format code with pre-commit and black

Version 0.5.17
--------------
* English translation created from Spanish ones (#209, thanks @tpazderka)

Version 0.5.16
--------------
* Adds a migration missing from 0.5.15 (#208, thanks @atodorov)

Version 0.5.15
--------------
* Updated test matrix, drop tests against Python3.6, test against Python3.9
* Remove dependency on six
* Test against Django 4.0a1
* Test with Python 3.10 (Django 3.2 and Django 4.0)
* Remove warning for django 3.2 (#206, thanks @MiStErLu)

Signed-off-by: Tim Orling <tim.orling@konsulko.com>
---
 requirements.txt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/requirements.txt b/requirements.txt
index 5cc07a4..18835b7 100644
--- a/requirements.txt
+++ b/requirements.txt
@@ -13,7 +13,7 @@ django-ranged-response==0.2.0
 django-registration==3.2
 django-reversion==4.0.1
 django-reversion-compare==0.14.1
-django-simple-captcha==0.5.14
+django-simple-captcha==0.5.20
 djangorestframework==3.13.1
 gitdb==4.0.9
 GitPython==3.1.37
-- 
2.34.1



^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2023-10-06  2:44 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-10-06  2:44 [layerindex-web 1/3] build(deps): bump pillow from 9.3.0 to 10.0.1 Tim Orling
2023-10-06  2:44 ` [layerindex-web 2/3] dockersetup.py: databasefile zstd compression Tim Orling
2023-10-06  2:44 ` [layerindex-web 3/3] requirements: bump django-simple-captcha to 0.5.20 Tim Orling

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.