Merge pull request #2245 from chenrui333/setup/add-ujson

setup: include ujson as required dependency
pull/2248/head
Nicolas Hennion 2023-01-16 13:39:04 +01:00 committed by GitHub
commit 4ee3c34384
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 10 additions and 1 deletions

View File

@ -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')