Commit 32d38c81 authored by Yuanle Song's avatar Yuanle Song
Browse files

fix requirements-dev.txt for python2.7 env.

restrict some pkg to versions that does support python2.7, latest
version only support for python3.4+.
parent 88cfc690
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
(defproject python/lein-template "1.5.5"
(defproject python/lein-template "1.5.6"
  :description "lein template for a python project"
  :url "https://gitlab.emacsos.com/sylecn/python-project-template"
  :license {:name "Apache License 2.0"
+9 −1
Original line number Diff line number Diff line
# requirements file format
# https://pip.pypa.io/en/stable/reference/pip_install/#requirements-file-format
# https://www.python.org/dev/peps/pep-0440/#version-specifiers
pytest==4.2.0
pylint==1.9.4
pycodestyle==2.5.0
pylint ~= 1.9.4; python_version < '3.4'
pylint ~= 2.3.0; python_version >= '3.4'

# some pkg latest version no longer support python 2 or python3.4
more-itertools<6.0.0; python_version < '3.4'    # dependency for pytest
astroid <2.0.0; python_version < '3.4'          # dependency for pylint
+3 −1
Original line number Diff line number Diff line
@@ -37,13 +37,15 @@ if first_existing_file \
        /opt/python3.7/bin/python \
        /opt/python3.6/bin/python \
        /opt/python3.5/bin/python \
	/usr/local/bin/python3.7 \
	/usr/local/bin/python3.6 \
	/usr/local/bin/python3.5 \
	/usr/local/bin/python3 \
        /usr/bin/python3 \
        ~/bin/python2.7 \
        ~/bin/python \
        ~/opt/bin/python2.7 \
        /opt/python2.7/bin/python \
        /usr/bin/python2.7 \
	/usr/bin/local/python2.7 \
	/usr/bin/local/python \
	/usr/bin/python2.7 \