File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -33,5 +33,6 @@ handling [#]_. :pypi:`simplejson` is also required when using :mod:`github2`
3333with Python 2.4 or 2.5. If you install via :pypi: `pip ` or :pypi: `easy_install
3434<setuptools> ` the dependencies should be installed automatically for you.
3535
36- .. [# ] You must use :pypi: `python-dateutil ` 1.x when working with Python 2.x,
37- the latest 2.x releases are for Python 3.x installations only.
36+ .. [# ] You must use :pypi: `python-dateutil ` 1.x when working with Python 2.5 or
37+ earlier, the latest 2.x releases are for Python 2.6 and newer
38+ installations only.
Original file line number Diff line number Diff line change 1- -r requirements.txt
2- simplejson>=2.0.9
1+ httplib2 >= 0.7.0
2+ python-dateutil < 2.0, >= 2.1
3+ simplejson >= 2.0.9
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1- httplib2 >= 0.7.0
2- python-dateutil < 2.0
1+ httplib2 >= 0.7.0
2+ python-dateutil < 2.0
Original file line number Diff line number Diff line change 2323if sys .version_info [:2 ] < (2 , 6 ):
2424 install_requires .append ('simplejson >= 2.0.9' )
2525
26- if sys . version_info >= ( 3 ,):
27- install_requires . append ( 'python-dateutil >= 2.0' )
28- else :
26+ # dateutil supports python 2.x in dateutil-1, python 3.x in dateutil-2.0 and
27+ # python 2.6+ in dateutil-2.1. Exciting…
28+ if sys . version_info [: 2 ] <= ( 2 , 5 ) :
2929 install_requires .append ('python-dateutil < 2.0' )
30+ elif sys .version_info < (3 , ):
31+ install_requires .append ('python-dateutil < 2.0, >= 2.1' )
32+ else :
33+ install_requires .append ('python-dateutil > 2.0' )
3034
3135long_description = (codecs .open ('README.rst' , "r" , "utf-8" ).read ()
3236 + "\n " + codecs .open ('NEWS.rst' , "r" , "utf-8" ).read ())
You can’t perform that action at this time.
0 commit comments