From 13c10d83134c7cd401a0296e3a521c469821a7c8 Mon Sep 17 00:00:00 2001 From: Riccardo Coccioli Date: Mon, 5 Dec 2022 14:32:06 +0100 Subject: [PATCH] setup.py: temporary fix for test dependencies * Add python_requires metadata. The latest pyroma does check for its presence and it makes sense to add it to prevent from installing the package on the wrong Python version. * Set an upper limit for pylint and prospector. A change in pylint broke prospector, but we can't upgrade prospector because of an upstream bug, see: https://github.com/PyCQA/prospector/issues/545 Change-Id: I2cae1d503639ba35bb0f93515988aff8a207b4f6 --- setup.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 942fc12..d030920 100644 --- a/setup.py +++ b/setup.py @@ -44,7 +44,8 @@ 'types-requests', ], 'prospector': [ - 'prospector[with_everything]>=1.3.1', + 'prospector[with_everything]>=1.3.1,<=1.7.7', # Temporary upper limit for an upstream regression + 'pylint<2.15.7', # Temporary upper limit for a change that breaks prospector that can't be upgraded 'pytest>=3.10.1', 'requests-mock>=1.5.2', ], @@ -107,6 +108,7 @@ name='cumin', packages=find_packages(exclude=['*.tests', '*.tests.*']), platforms=['GNU/Linux', 'BSD', 'MacOSX'], + python_requires='>=3.7', setup_requires=setup_requires, url='https://github.com/wikimedia/cumin', use_scm_version=True,