We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
There was an error while loading.Please reload this page.
1 parent1bb0b17 commitdac619eCopy full SHA for dac619e
.travis.yml
@@ -1,6 +1,5 @@
1
language:python
2
python:
3
- -"2.7"
4
-"3.4"
5
-"3.5"
6
-"3.6"
README.md
@@ -19,7 +19,7 @@ If it is not in your `PATH`, you can help GitPython find it by setting
19
the`GIT_PYTHON_GIT_EXECUTABLE=<path/to/git>` environment variable.
20
21
* Git (1.7.x or newer)
22
-* Python2.7 to 3.7.
+* Python3 to 3.7.
23
24
The list of dependencies are listed in`./requirements.txt` and`./test-requirements.txt`.
25
The installer takes care of installing them for you.
doc/source/intro.rst
@@ -13,7 +13,7 @@ The object database implementation is optimized for handling large quantities of
13
Requirements
14
============
15
16
-* `Python`_2.7 or newer
+* `Python`_3.0 or newer
17
* `Git`_ 1.7.0 or newer
18
It should also work with older versions, but it may be that some operations
involving remotes will not work as expected.
git/compat.py
@@ -30,7 +30,10 @@
30
is_win= (os.name=='nt')
31
is_posix= (os.name=='posix')
32
is_darwin= (os.name=='darwin')
33
-defenc=sys.getdefaultencoding()
+ifhasattr(sys,'getfilesystemencoding'):
34
+defenc=sys.getfilesystemencoding()
35
+ifdefencisNone:
36
+defenc=sys.getdefaultencoding()
37
38
ifPY3:
39
importio
git/repo/base.py
@@ -4,6 +4,7 @@
# This module is part of GitPython and is released under
# the BSD License: http://www.opensource.org/licenses/bsd-license.php
7
+frombuiltinsimportstr
8
fromcollectionsimportnamedtuple
9
importlogging
10
importos
requirements.txt
@@ -1 +1,3 @@
gitdb2 (>=2.0.0)
+gitdb>=0.6.4
+ddt>=1.1.1
setup.py
@@ -79,7 +79,7 @@ def _stamp_version(filename):
79
package_data={'git.test': ['fixtures/*']},
80
package_dir={'git':'git'},
81
license="BSD License",
82
-python_requires='>=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*',
+python_requires='>=3.0, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*',
83
install_requires=requirements,
84
tests_require=requirements+test_requirements,
85
zip_safe=False,
@@ -102,8 +102,6 @@ def _stamp_version(filename):
102
"Operating System :: Microsoft :: Windows",
103
"Operating System :: MacOS :: MacOS X",
104
"Programming Language :: Python",
105
-"Programming Language :: Python :: 2",
106
-"Programming Language :: Python :: 2.7",
107
"Programming Language :: Python :: 3",
108
"Programming Language :: Python :: 3.4",
109
"Programming Language :: Python :: 3.5",