From b8dbcf8c8fa8e532b2d73525f5b7e826022ccc3c Mon Sep 17 00:00:00 2001 From: James Hilliard Date: Tue, 17 May 2022 15:59:33 -0600 Subject: [PATCH] package/python-flask-jsonrpc: bump to version 2.2.1 Add new python-typeguard and python-typing-inspect runtime dependencies. Add a patch to remove invalid setup_requires. Signed-off-by: James Hilliard Signed-off-by: Thomas Petazzoni --- ...-Move-pytest-runner-to-tests_require.patch | 32 +++++++++++++++++++ package/python-flask-jsonrpc/Config.in | 5 +-- .../python-flask-jsonrpc.hash | 11 ++++--- .../python-flask-jsonrpc.mk | 6 ++-- 4 files changed, 44 insertions(+), 10 deletions(-) create mode 100644 package/python-flask-jsonrpc/0001-Move-pytest-runner-to-tests_require.patch diff --git a/package/python-flask-jsonrpc/0001-Move-pytest-runner-to-tests_require.patch b/package/python-flask-jsonrpc/0001-Move-pytest-runner-to-tests_require.patch new file mode 100644 index 0000000000..8b6712e601 --- /dev/null +++ b/package/python-flask-jsonrpc/0001-Move-pytest-runner-to-tests_require.patch @@ -0,0 +1,32 @@ +From 8f07768085fa4c8d21dbe27805b7238e67d3aea5 Mon Sep 17 00:00:00 2001 +From: James Hilliard +Date: Tue, 17 May 2022 15:52:58 -0600 +Subject: [PATCH] Move pytest-runner to tests_require + +This isn't a build requirement so it shouldn't be under +setup_requires. + +Signed-off-by: James Hilliard +[Upstream status: +https://github.com/cenobites/flask-jsonrpc/pull/227] +--- + setup.py | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/setup.py b/setup.py +index 197d6c9..f23c472 100755 +--- a/setup.py ++++ b/setup.py +@@ -42,8 +42,8 @@ setuptools.setup( + 'async': ['Flask[async]>=1.0.0,<3.0'], + 'dotenv': ['Flask[dotenv]>=1.0.0,<3.0'], + }, +- setup_requires=['pytest-runner'], + tests_require=[ ++ 'pytest-runner', + 'mock==4.0.3', + 'coverage==6.3.2;python_version>"3.6"', + 'coverage<6.2;python_version<="3.6"', +-- +2.36.0 + diff --git a/package/python-flask-jsonrpc/Config.in b/package/python-flask-jsonrpc/Config.in index c8ecd854b3..024fbc4b85 100644 --- a/package/python-flask-jsonrpc/Config.in +++ b/package/python-flask-jsonrpc/Config.in @@ -1,7 +1,8 @@ config BR2_PACKAGE_PYTHON_FLASK_JSONRPC bool "python-flask-jsonrpc" - # runtime dependency - select BR2_PACKAGE_PYTHON_FLASK + select BR2_PACKAGE_PYTHON_FLASK # runtime + select BR2_PACKAGE_PYTHON_TYPEGUARD # runtime + select BR2_PACKAGE_PYTHON_TYPING_INSPECT # runtime help A basic JSON-RPC implementation for your Flask-powered sites. diff --git a/package/python-flask-jsonrpc/python-flask-jsonrpc.hash b/package/python-flask-jsonrpc/python-flask-jsonrpc.hash index 4204f59dd5..ee407dbd7a 100644 --- a/package/python-flask-jsonrpc/python-flask-jsonrpc.hash +++ b/package/python-flask-jsonrpc/python-flask-jsonrpc.hash @@ -1,5 +1,6 @@ -# md5 from https://pypi.python.org/pypi/flask-jsonrpc/json -md5 5c0592f53b2f18e34d5be435acee8842 Flask-JSONRPC-0.3.1.tar.gz -# Locally computed -sha256 4d0cc9c20874093306af91f5a48009fb8659a041428dcdb11703598ffbbc97d0 Flask-JSONRPC-0.3.1.tar.gz -sha256 f613b06cbe766fd514b1b619a71a12c353cccaa55fa4f547be55563d9829be6f setup.py +# md5, sha256 from https://pypi.org/pypi/flask-jsonrpc/json +md5 f2b7bf5222f3aaf050f396522d7f692d Flask-JSONRPC-2.2.1.tar.gz +sha256 f994f8dd80bf31cf7272eb1a3030c6caf30fef3ced5866e66b56871d4047be68 Flask-JSONRPC-2.2.1.tar.gz +# Locally computed sha256 checksums +sha256 5e6175926ba7dde28c7d292a8b0350aa82c40a8c5691a878fe02b0c9c6b43b39 LICENSE +sha256 5e6175926ba7dde28c7d292a8b0350aa82c40a8c5691a878fe02b0c9c6b43b39 COPYING diff --git a/package/python-flask-jsonrpc/python-flask-jsonrpc.mk b/package/python-flask-jsonrpc/python-flask-jsonrpc.mk index dbb37c373c..542b9e73f5 100644 --- a/package/python-flask-jsonrpc/python-flask-jsonrpc.mk +++ b/package/python-flask-jsonrpc/python-flask-jsonrpc.mk @@ -4,11 +4,11 @@ # ################################################################################ -PYTHON_FLASK_JSONRPC_VERSION = 0.3.1 +PYTHON_FLASK_JSONRPC_VERSION = 2.2.1 PYTHON_FLASK_JSONRPC_SOURCE = Flask-JSONRPC-$(PYTHON_FLASK_JSONRPC_VERSION).tar.gz -PYTHON_FLASK_JSONRPC_SITE = https://pypi.python.org/packages/cb/1f/e6d66e8498609ba04bac76155b2ea884df95531e93501bf4ef009d40a83c +PYTHON_FLASK_JSONRPC_SITE = https://files.pythonhosted.org/packages/ca/2a/3f2bd79840d9643fc909cf27f730b2c5006351746ba09c4dab1b898ddee9 PYTHON_FLASK_JSONRPC_LICENSE = BSD-3-Clause -PYTHON_FLASK_JSONRPC_LICENSE_FILES = setup.py +PYTHON_FLASK_JSONRPC_LICENSE_FILES = LICENSE COPYING PYTHON_FLASK_JSONRPC_SETUP_TYPE = setuptools $(eval $(python-package))