summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRui Chen <rui@chenrui.dev>2023-01-14 15:02:19 -0500
committernicolargo <nicolas@nicolargo.com>2023-01-17 08:05:38 +0100
commit258cf59c7e54e318f4964db74f7d733043c6207f (patch)
treea241354dbd4550e50caa4843cb6d6e13fa82a851
parent8e9f0795789b371a344e7ce90e303f57ad543dae (diff)
setup: include ujson as required dependency
also update psutil version constraint Signed-off-by: Rui Chen <rui@chenrui.dev>
-rwxr-xr-xsetup.py11
1 files changed, 10 insertions, 1 deletions
diff --git a/setup.py b/setup.py
index 9344d0b0..a818ade1 100755
--- a/setup.py
+++ b/setup.py
@@ -41,7 +41,16 @@ def get_data_files():
def get_install_requires():
- requires = ['psutil>=5.3.0', 'defusedxml', 'future', 'packaging']
+ requires = [
+ 'psutil>=5.6.7',
+ 'defusedxml',
+ 'packaging',
+ 'future; python_version < "3.0"',
+ 'ujson<3; python_version < "3.0"',
+ 'ujson<4; python_version >= "3.5" and python_version < "3.6"',
+ 'ujson<5; python_version >= "3.6" and python_version < "3.7"',
+ 'ujson>=5.4.0; python_version >= "3.7"',
+ ]
if sys.platform.startswith('win'):
requires.append('bottle')
requires.append('requests')