diff options
author | Rui Chen <rui@chenrui.dev> | 2023-01-14 15:02:19 -0500 |
---|---|---|
committer | nicolargo <nicolas@nicolargo.com> | 2023-01-17 08:05:38 +0100 |
commit | 258cf59c7e54e318f4964db74f7d733043c6207f (patch) | |
tree | a241354dbd4550e50caa4843cb6d6e13fa82a851 | |
parent | 8e9f0795789b371a344e7ce90e303f57ad543dae (diff) |
setup: include ujson as required dependency
also update psutil version constraint
Signed-off-by: Rui Chen <rui@chenrui.dev>
-rwxr-xr-x | setup.py | 11 |
1 files changed, 10 insertions, 1 deletions
@@ -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') |