From affbe2a7dc82dcd7ab2d7657477e1dbf21bf0ba0 Mon Sep 17 00:00:00 2001 From: Erik Cederstrand Date: Sat, 31 Dec 2022 02:50:51 +0100 Subject: [PATCH] Update pyparsing requirement from ~=2.0 to >=2,<4 Do so only for Python 3 since pyparsing 3 dropped support for Python 2 Replaces https://github.com/chimpler/pyhocon/pull/276 --- setup.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/setup.py b/setup.py index dad12e40..2d6b6315 100755 --- a/setup.py +++ b/setup.py @@ -52,7 +52,10 @@ def run_tests(self): packages=[ 'pyhocon', ], - install_requires=['pyparsing~=2.0'], + install_requires=[ + 'pyparsing~=2.0;python_version<"3.0"', + 'pyparsing>=2,<4;python_version>="3.0"', + ], extras_require={ 'Duration': ['python-dateutil>=2.8.0'] },