[Buildroot] [PATCH 1/1] package/python-gunicorn: bump to version 20.1.0

Asaf Kahlon asafka7 at gmail.com
Mon Oct 4 17:13:40 UTC 2021


* The package doesn't support python2 anymore (so the POST_INSTALL
hook is not needed now).
* Indent with two spaces in the hash file.

Signed-off-by: Asaf Kahlon <asafka7 at gmail.com>
---
 package/python-gunicorn/Config.in            |  4 ++--
 package/python-gunicorn/python-gunicorn.hash |  6 +++---
 package/python-gunicorn/python-gunicorn.mk   | 16 ++--------------
 3 files changed, 7 insertions(+), 19 deletions(-)

diff --git a/package/python-gunicorn/Config.in b/package/python-gunicorn/Config.in
index b3d11cf199..4e7c0179a5 100644
--- a/package/python-gunicorn/Config.in
+++ b/package/python-gunicorn/Config.in
@@ -1,8 +1,8 @@
 config BR2_PACKAGE_PYTHON_GUNICORN
 	bool "python-gunicorn"
+	depends on BR2_PACKAGE_PYTHON3
 	select BR2_PACKAGE_PYTHON_SETUPTOOLS # runtime
-	select BR2_PACKAGE_PYTHON_SSL if BR2_PACKAGE_PYTHON # runtime
-	select BR2_PACKAGE_PYTHON3_SSL if BR2_PACKAGE_PYTHON3 # runtime
+	select BR2_PACKAGE_PYTHON3_SSL # runtime
 	help
 	  Gunicorn 'Green Unicorn' is a Python WSGI HTTP Server for
 	  UNIX. It's a pre-fork worker model ported from Ruby's
diff --git a/package/python-gunicorn/python-gunicorn.hash b/package/python-gunicorn/python-gunicorn.hash
index 402250ea78..cff4915b72 100644
--- a/package/python-gunicorn/python-gunicorn.hash
+++ b/package/python-gunicorn/python-gunicorn.hash
@@ -1,5 +1,5 @@
 # md5, sha256 from https://pypi.python.org/pypi/gunicorn/json
-md5	f581937e9d8569ebd3fd6af1f9ab809f  gunicorn-19.9.0.tar.gz
-sha256	fa2662097c66f920f53f70621c6c58ca4a3c4d3434205e608e121b5b3b71f4f3  gunicorn-19.9.0.tar.gz
+md5  db8a7c5c2064000af70286534803bf1d  gunicorn-20.1.0.tar.gz
+sha256  e0a968b5ba15f8a328fdfd7ab1fcb5af4470c28aaf7e55df02a99bc13138e6e8  gunicorn-20.1.0.tar.gz
 # Locally computed sha256
-sha256	789fe11b92e1cabfbcf744b5fcc392c9bd5c6798603a4e89f925b6337984d1df  LICENSE
+sha256  789fe11b92e1cabfbcf744b5fcc392c9bd5c6798603a4e89f925b6337984d1df  LICENSE
diff --git a/package/python-gunicorn/python-gunicorn.mk b/package/python-gunicorn/python-gunicorn.mk
index d113f75185..fb747bc00e 100644
--- a/package/python-gunicorn/python-gunicorn.mk
+++ b/package/python-gunicorn/python-gunicorn.mk
@@ -4,23 +4,11 @@
 #
 ################################################################################
 
-PYTHON_GUNICORN_VERSION = 19.9.0
+PYTHON_GUNICORN_VERSION = 20.1.0
 PYTHON_GUNICORN_SOURCE = gunicorn-$(PYTHON_GUNICORN_VERSION).tar.gz
-PYTHON_GUNICORN_SITE = https://files.pythonhosted.org/packages/47/52/68ba8e5e8ba251e54006a49441f7ccabca83b6bef5aedacb4890596c7911
+PYTHON_GUNICORN_SITE = https://files.pythonhosted.org/packages/28/5b/0d1f0296485a6af03366604142ea8f19f0833894db3512a40ed07b2a56dd
 PYTHON_GUNICORN_SETUP_TYPE = setuptools
 PYTHON_GUNICORN_LICENSE = MIT
 PYTHON_GUNICORN_LICENSE_FILES = LICENSE
 
-# At the end of the build, we try to compile all py files using the host python
-# that has been built.
-# The GAIO HTTP Worker is only compatible with Python3.4.2 and up. So don't try
-# to compile it with python 2.x
-ifeq ($(BR2_PACKAGE_PYTHON),y)
-define PYTHON_GUNICORN_REMOVE_GAIO_WORKER
-	find $(TARGET_DIR)/usr/lib/python$(PYTHON_VERSION_MAJOR)/site-packages/ \
-		-name "_gaiohttp.py" -exec rm -f {} \;
-endef
-PYTHON_GUNICORN_POST_INSTALL_TARGET_HOOKS += PYTHON_GUNICORN_REMOVE_GAIO_WORKER
-endif
-
 $(eval $(python-package))
-- 
2.30.2



More information about the buildroot mailing list