|
| 1 | +.. _intro_toplevel: |
| 2 | + |
| 3 | +================== |
| 4 | +Overview / Install |
| 5 | +================== |
| 6 | + |
| 7 | +GitPython is a python library used to interact with Git repositories. |
| 8 | + |
| 9 | +GitPython is a port of the grit_ library in Ruby created by |
| 10 | +Tom Preston-Werner and Chris Wanstrath. |
| 11 | + |
| 12 | +.. _grit: http://grit.rubyforge.org |
| 13 | + |
| 14 | +Requirements |
| 15 | +============ |
| 16 | + |
| 17 | +* Git_ tested with 1.5.3.7 |
| 18 | +* `Python Nose`_ - used for running the tests |
| 19 | +* `Mock by Michael Foord`_ used for tests. Requires 0.5 or higher |
| 20 | + |
| 21 | +.. _Git: http://git-scm.com/ |
| 22 | +.. _Python Nose: http://code.google.com/p/python-nose/ |
| 23 | +.. _Mock by Michael Foord: http://www.voidspace.org.uk/python/mock/ |
| 24 | + |
| 25 | +Installing GitPython |
| 26 | +==================== |
| 27 | + |
| 28 | +Installing GitPython is easily done using |
| 29 | +`setuptools`_. Assuming it is |
| 30 | +installed, just run the following from the command-line: |
| 31 | + |
| 32 | +.. sourcecode:: none |
| 33 | + |
| 34 | + # easy_install GitPython |
| 35 | + |
| 36 | +This command will download the latest version of GitPython from the |
| 37 | +`Python Package Index <http://pypi.python.org/pypi/GitPython>`_ and install it |
| 38 | +to your system. More information about ``easy_install`` and pypi can be found |
| 39 | +here: |
| 40 | + |
| 41 | +* `setuptools`_ |
| 42 | +* `install setuptools <http://peak.telecommunity.com/DevCenter/EasyInstall#installation-instructions>`_ |
| 43 | +* `pypi <http://pypi.python.org/pypi/GitPython>`_ |
| 44 | + |
| 45 | +.. _setuptools: http://peak.telecommunity.com/DevCenter/setuptools |
| 46 | + |
| 47 | +Alternatively, you can install from the distribution using the ``setup.py`` |
| 48 | +script: |
| 49 | + |
| 50 | +.. sourcecode:: none |
| 51 | + |
| 52 | + # python setup.py install |
| 53 | + |
| 54 | +Getting Started |
| 55 | +=============== |
| 56 | + |
| 57 | +* :ref:`tutorial_toplevel` - This tutorial provides a walk-through of some of |
| 58 | + the basic functionality and concepts used in GitPython. It, however, is not |
| 59 | + exhaustive so you are encouraged to spend some time in the |
| 60 | + :ref:`api_reference_toplevel`. |
| 61 | + |
| 62 | +API Reference |
| 63 | +============= |
| 64 | + |
| 65 | +An organized section of the GitPthon API is at :ref:`api_reference_toplevel`. |
| 66 | + |
| 67 | +Source Code |
| 68 | +=========== |
| 69 | + |
| 70 | +GitPython's git repo is available on Gitorious, which can be browsed at: |
| 71 | + |
| 72 | +http://gitorious.org/git-python |
| 73 | + |
| 74 | +and cloned from: |
| 75 | + |
| 76 | +git://gitorious.org/git-python/mainline.git |
| 77 | + |
| 78 | +License Information |
| 79 | +=================== |
| 80 | + |
| 81 | +GitPython is licensed under the New BSD License. See the LICENSE file for |
| 82 | +more information. |
| 83 | + |
0 commit comments