You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+46-15
Original file line number
Diff line number
Diff line change
@@ -1,20 +1,28 @@
1
1
## GitPython
2
2
3
-
GitPython is a python library used to interact with git repositories, high-level like git-porcelain, or low-level like git-plumbing.
3
+
GitPython is a python library used to interact with git repositories, high-level like git-porcelain,
4
+
or low-level like git-plumbing.
4
5
5
-
It provides abstractions of git objects for easy access of repository data, and additionally allows you to access the git repository more directly using either a pure python implementation, or the faster, but more resource intensive git command implementation.
6
+
It provides abstractions of git objects for easy access of repository data, and additionally
7
+
allows you to access the git repository more directly using either a pure python implementation,
8
+
or the faster, but more resource intensive *git command* implementation.
6
9
7
-
The object database implementation is optimized for handling large quantities of objects and large datasets, which is achieved by using low-level structures and data streaming.
10
+
The object database implementation is optimized for handling large quantities of objects and large datasets,
11
+
which is achieved by using low-level structures and data streaming.
8
12
9
13
10
14
### REQUIREMENTS
11
15
12
-
GitPython needs the `git` executable to be installed on the system and available in your `PATH` for most operations. If it is not in your `PATH`, you can help GitPython find it by setting the `GIT_PYTHON_GIT_EXECUTABLE=<path/to/git>` environment variable.
16
+
GitPython needs the `git` executable to be installed on the system and available
17
+
in your `PATH` for most operations.
18
+
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.
13
20
14
21
* Git (1.7.x or newer)
15
22
* Python 2.7 to 3.5, while python 2.6 is supported on a *best-effort basis*.
16
23
17
-
The list of dependencies are listed in `./requirements.txt` and `./test-requirements.txt`. The installer takes care of installing them for you.
24
+
The list of dependencies are listed in `./requirements.txt` and `./test-requirements.txt`.
25
+
The installer takes care of installing them for you.
18
26
19
27
### INSTALL
20
28
@@ -31,7 +39,7 @@ Both commands will install the required package dependencies.
31
39
A distribution package can be obtained for manual installation at:
32
40
33
41
http://pypi.python.org/pypi/GitPython
34
-
42
+
35
43
If you like to clone from source, you can do it like so:
Python 2.6 is supported on best-effort basis; which means that it is likely to deteriorate over time.
74
+
57
75
### RUNNING TESTS
58
76
59
-
*Important*: Right after cloning this repository, please be sure to have executed the `init-tests-after-clone.sh` script in the repository root. Otherwise you will encounter test failures.
77
+
*Important*: Right after cloning this repository, please be sure to have executed
78
+
the `./init-tests-after-clone.sh` script in the repository root. Otherwise
79
+
you will encounter test failures.
60
80
61
-
The easiest way to run test is by using [tox](https://pypi.python.org/pypi/tox) a wrapper around virtualenv. It will take care of setting up environnements with the proper dependencies installed and execute test commands. To install it simply:
81
+
On *Windows*, make sure you have `git-daemon` in your PATH. For MINGW-git, the `git-daemon.exe`
82
+
exists in `Git\mingw64\libexec\git-core\`; CYGWIN has no daemon, but should get along fine
83
+
with MINGW's.
84
+
85
+
The easiest way to run tests is by using [tox](https://pypi.python.org/pypi/tox)
86
+
a wrapper around virtualenv. It will take care of setting up environnements with the proper
87
+
dependencies installed and execute test commands. To install it simply:
62
88
63
89
pip install tox
64
90
65
91
Then run:
66
92
67
93
tox
68
-
69
-
94
+
95
+
70
96
For more fine-grained control, you can use `nose`.
71
97
72
98
### Contributions
@@ -79,7 +105,8 @@ Please have a look at the [contributions file][contributing].
79
105
*[Questions and Answers](http://stackexchange.com/filters/167317/gitpython)
80
106
* Please post on stackoverflow and use the `gitpython` tag
[](https://waffle.io/gitpython-developers/GitPython)
0 commit comments