diff --git a/requirements-dev.txt b/requirements-dev.txt index fdbc449..b522074 100644 --- a/requirements-dev.txt +++ b/requirements-dev.txt @@ -1,8 +1,6 @@ colorama docutils flake8 -click -lark-parser==0.11.1 # git+git://github.com/erezsh/lark.git#egg=lark pluggy py @@ -12,8 +10,6 @@ pytest pytest-cov tox virtualenv -jsonschema -jsonref==0.2 glob2 coveralls sphinx \ No newline at end of file diff --git a/setup.py b/setup.py index 7c14255..d65a036 100644 --- a/setup.py +++ b/setup.py @@ -38,7 +38,16 @@ def readme(): author_email='sethg@geographika.co.uk', license='MIT', packages=['mappyfile'], - install_requires=['lark-parser==0.11.1', 'jsonschema >=2.0', 'jsonref==0.2', 'click'], + install_requires=[ + 'lark-parser>=0.9.0', + # pyrsistent is a dependency of jsonschema but py2 is not + # supported beyond 0.16.0 + 'pyrsistent<0.17.0; python_version=="2.7"', + 'jsonschema>=2.0', + 'jsonref==0.2', + 'click; python_version>="3.0.0"', + 'click < 8.0.0; python_version=="2.7"' + ], zip_safe=False, entry_points = { 'console_scripts': ['mappyfile=mappyfile.cli:main'],