-
Notifications
You must be signed in to change notification settings - Fork 68
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Set python_requires='>=3.4' (gitdb already has this requirement) #60
Set python_requires='>=3.4' (gitdb already has this requirement) #60
Conversation
I understand the reasoning for this pull request, but I'm curious as to the motivation behind it. |
So, we are using Gitpython and when this module is installed there are some issues because the gitdb2 module has as a dependency |
there is no possibility to install a version of |
and about the Gitpython, you are right .. the latest v2 version has a down pin to the |
The only GitPython version that is compatible with the |
Like I said, I understand the reasoning behind the PR. Python 2 support was only dropped in GitPython v2.1.12. This was a mistake and v2.1.13 brought back Python 2 support. See gitpython-developers/GitPython#897 and gitpython-developers/GitPython#898. As for the setup.cfg That said, I am still considering this PR in case someone has a situation where they cannot upgrade GitPython to v2.1.15 or pin gitdb2 to < 3 themself. A significant downside to this would be an additional maintenance burden for keeping the gitdb2 |
On our side, we fixed the issue by using the latest v2 of gitpython . First I was a bit confused because in our code we used gitpython <2.1.12 that dropped Python 2 support but I was wrong. There were added some new releases that are not included in the documentation of gitpython but now we should be ok. This PR could be closed if anyone doesn't have something to say. Also, I will create a new PR from where I will remove the |
Thanks for the new PR! I've merged it now and tagged v4.0.2 and released it on PyPI. And apologies for the confusion. I agree that those GitPython v2 releases should have had changelogs. I've retroactively added them now. I'll also close this PR as requested. If #61 ends up warranting it, I'll reevaluate adding |
The python_requires='>=3.4' is already set for gitdb and the gitdb2 python module has as a dependency gitdb>=4.0.1 that dropped Python 2 support after python_requires='>=3.4' was added in its
setup.py
.Will prevent users with Python 2.7 from downloading a sdist version they cannot build.
Note: supporting python_requires requires setuptools>=24.2.0 and pip>=9.0.0 to benefit from it.
Details here: https://packaging.python.org/guides/distributing-packages-using-setuptools/#python-requires