diff options
author | Yegor Yefremov <yegorslists@googlemail.com> | 2017-09-08 10:38:16 +0200 |
---|---|---|
committer | Peter Korsgaard <peter@korsgaard.com> | 2017-09-08 11:18:32 +0200 |
commit | 30f667b7047ec46911a48d3745d4ae9c7b361909 (patch) | |
tree | 7472c5cf30a348d96867dbbc46851297ed8b8c58 /package/python-paho-mqtt/0001-Make-pytest-runner-a-conditional-requirement.patch | |
parent | 95389fe98c882f70cbbd25dc1c7ea1480991acef (diff) | |
download | buildroot-30f667b7047ec46911a48d3745d4ae9c7b361909.tar.gz buildroot-30f667b7047ec46911a48d3745d4ae9c7b361909.zip |
python-paho-mqtt: bump to version 1.3.0
Change setup type to setuptools.
Add a patch removing the pytest-runner dependency. The patch was sent
upstream.
Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Diffstat (limited to 'package/python-paho-mqtt/0001-Make-pytest-runner-a-conditional-requirement.patch')
-rw-r--r-- | package/python-paho-mqtt/0001-Make-pytest-runner-a-conditional-requirement.patch | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/package/python-paho-mqtt/0001-Make-pytest-runner-a-conditional-requirement.patch b/package/python-paho-mqtt/0001-Make-pytest-runner-a-conditional-requirement.patch new file mode 100644 index 0000000000..b2fbe246cb --- /dev/null +++ b/package/python-paho-mqtt/0001-Make-pytest-runner-a-conditional-requirement.patch @@ -0,0 +1,30 @@ +From 38373d36094b5a708c595f8c560d14e8ab61aac6 Mon Sep 17 00:00:00 2001 +From: Yegor Yefremov <yegorslists@googlemail.com> +Date: Fri, 8 Sep 2017 08:58:31 +0200 +Subject: [PATCH] Make pytest-runner a conditional requirement + +Check for pytest-runner only if setup.py was invoked with 'test' +argument. + +Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com> +--- + setup.py | 3 ++- + 1 file changed, 2 insertions(+), 1 deletion(-) + +diff --git a/setup.py b/setup.py +index 85d9c5f..10fb6df 100644 +--- a/setup.py ++++ b/setup.py +@@ -12,7 +12,8 @@ with open('README.rst', 'rb') as readme_file: + + requirements = [] + test_requirements = ['pytest', 'pylama'] +-setup_requirements = ['pytest-runner'] ++needs_pytest = set(['pytest', 'test', 'ptr']).intersection(sys.argv) ++setup_requirements = ['pytest-runner'] if needs_pytest else [] + + if sys.version_info < (3, 0): + test_requirements += ['mock'] +-- +2.11.0 + |