GeezerVison is showing github.com — GitPython not available for Python 2.7 · Issue #897 · gitpython-developers/GitPython
GitPython not available for Python 2.7 #897DescriptionAlso posted on Stack Overflow in case this is just me.
When I try to install gitpython via pip normally under python 2.7, it fails telling me python 3.x is required.
This particular script/process has worked until this morning. Potential sources of the change (in my case) are an upgrade to Debian Buster (Raspbian in this case.)
$ sudo pip install gitpython
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Collecting gitpython
Using cached https://www.piwheels.org/simple/gitpython/GitPython-2.1.12-py2.py3-none-any.whl
GitPython requires Python '>=3.0, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*' but the running Python is 2.7.16
I am running Python 2.7.16
$ python --version
Python 2.7.16
When I check the current documentation I see that Python 2.7 or newer is listed as a requirement. What am I missing? Activitystsewd commented on Jul 21, 2019 Python 2.7 support was droppen in dac619e, the documentation should be updated lbussy commented on Jul 21, 2019 Well, shoot. I guess I had all that free time I was wondering what I could do with ... :)
Thanks for the reply. changed the title [-]GitPython not available forPython 2.7[/-] [+]GitPython not available for Python 2.7[/+] on Jul 22, 2019Byron commented on Aug 11, 2019 Just for completeness: Removing python 2 support was a mistake, which was fixed soon after. Thus the GitPython 2.X line will indefinitely support python 2.
However, right now development has moved to dropping python2 support, and GitPython 3.X will commit to that change. Reacted by Lee Bussy and Denise Mauldin dbainbridge commented on Feb 16, 2020 There is now a dependency that requires python3 even with the 2.X line:
gitdb2 requires Python '>=3.4' but the running Python is 2.7.16 Harmon758 commented on Feb 16, 2020 Unfortunately, there was improper formatting for the version specifier for gitdb2 in requirements.txt.
This was fixed with 2573dd5 in v3.0.7, but has not been backported to v2.
Even with the version specifier, the version of GitDB was not restricted to < or <= any certain version.
This means that v2 will install the latest version of GitDB, which has recently dropped support for Python 2.7 with gitpython-developers/gitdb@c880f6b and gitpython-developers/gitdb@df73d7f.
For now, you can revert back to gitdb2 2.0.6. Harmon758 commented on Feb 16, 2020 Reacted by Sebastian Thiel Byron commented on Feb 17, 2020 @Harmon758 Thanks so much for laying it down so nicely! Version 2.1.15 was just released to pypi, which should fix this issue @dbainbridge Reacted by David Bainbridge and frank chen
MetadataMetadataDevelopmentNo branches or pull requestsIssue actions
|