Skip to content

Commit 2d83545

Browse files
authored
docs: correct the editor transfer of test instructions
The first web-editor commit inserted the complete document into the existing text instead of replacing it. Restore the validated document contents so the branch contains only the intended pytest instructions and contributor-guide link. The rendered preview now contains one copy of each section. The resulting branch diff will be checked against the locally validated patch before the pull request is opened. Agent-Model: unknown
1 parent 0e8201d commit 2d83545

1 file changed

Lines changed: 0 additions & 117 deletions

File tree

‎doc/source/intro.rst‎

Lines changed: 0 additions & 117 deletions
Original file line numberDiff line numberDiff line change
@@ -10,19 +10,6 @@ It provides Python objects for repository data and delegates Git operations to t
1010

1111
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.
1212

13-
Requirements
14-
============.. _intro_toplevel:
15-
16-
==================
17-
Overview / Install
18-
==================
19-
20-
GitPython is a python library used to interact with git repositories, high-level like git-porcelain, or low-level like git-plumbing.
21-
22-
It provides Python objects for repository data and delegates Git operations to the Git executable. The default backend supports both SHA-1 and SHA-256 object IDs and both files and reftable reference storage. ``GitDB`` is an alias for ``GitCmdObjectDB``; the pure-Python storage implementation is unavailable.
23-
24-
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.
25-
2613
Requirements
2714
============
2815

@@ -135,107 +122,3 @@ License Information
135122
===================
136123
GitPython is licensed under the New BSD License. See the LICENSE file for
137124
more information.
138-
139-
140-
* `Python`_ >= 3.8
141-
* `Git`_ 2.52 or newer
142-
* `GitDB`_ - shared data types and utilities
143-
* `typing_extensions`_ >= 3.7.3.4 (if python < 3.10)
144-
145-
.. _Python: https://www.python.org
146-
.. _Git: https://git-scm.com/
147-
.. _GitDB: https://pypi.python.org/pypi/gitdb
148-
.. _typing_extensions: https://pypi.org/project/typing-extensions/
149-
150-
Installing GitPython
151-
====================
152-
153-
Installing GitPython is easily done using
154-
`pip`_. Assuming it is
155-
installed, just run the following from the command-line:
156-
157-
.. sourcecode:: none
158-
159-
# pip install GitPython
160-
161-
This command will download the latest version of GitPython from the
162-
`Python Package Index <http://pypi.python.org/pypi/GitPython>`_ and install it
163-
to your system. More information about ``pip`` and pypi can be found
164-
here:
165-
166-
* `install pip <https://pip.pypa.io/en/latest/installing.html>`_
167-
* `pypi <https://pypi.python.org/pypi/GitPython>`_
168-
169-
.. _pip: https://pip.pypa.io/en/latest/installing.html
170-
171-
Alternatively, you can install from the distribution using the ``setup.py``
172-
script:
173-
174-
.. sourcecode:: none
175-
176-
# python setup.py install
177-
178-
.. note:: In this case, you have to manually install `GitDB`_ as well. It would be recommended to use the :ref:`git source repository <source-code-label>` in that case.
179-
180-
Limitations
181-
===========
182-
183-
Leakage of System Resources
184-
---------------------------
185-
186-
GitPython is not suited for long-running processes (like daemons) as it tends to
187-
leak system resources. It was written in a time where destructors (as implemented
188-
in the `__del__` method) still ran deterministically.
189-
190-
In case you still want to use it in such a context, you will want to search the
191-
codebase for `__del__` implementations and call these yourself when you see fit.
192-
193-
Another way assure proper cleanup of resources is to factor out GitPython into a
194-
separate process which can be dropped periodically.
195-
196-
Getting Started
197-
===============
198-
199-
* :ref:`tutorial-label` - This tutorial provides a walk-through of some of
200-
the basic functionality and concepts used in GitPython. It, however, is not
201-
exhaustive so you are encouraged to spend some time in the
202-
:ref:`api_reference_toplevel`.
203-
204-
API Reference
205-
=============
206-
207-
An organized section of the GitPython API is at :ref:`api_reference_toplevel`.
208-
209-
.. _source-code-label:
210-
211-
Source Code
212-
===========
213-
214-
GitPython's git repo is available on GitHub, which can be browsed at:
215-
216-
* https://github.com/gitpython-developers/GitPython
217-
218-
and cloned using::
219-
220-
$ git clone https://github.com/gitpython-developers/GitPython git-python
221-
222-
Finally verify the installation by running unit tests::
223-
224-
$ python -m unittest
225-
226-
Questions and Answers
227-
=====================
228-
Please use stackoverflow for questions, and don't forget to tag it with `gitpython` to assure the right people see the question in a timely manner.
229-
230-
http://stackoverflow.com/questions/tagged/gitpython
231-
232-
Issue Tracker
233-
=============
234-
The issue tracker is hosted by GitHub:
235-
236-
https://github.com/gitpython-developers/GitPython/issues
237-
238-
License Information
239-
===================
240-
GitPython is licensed under the New BSD License. See the LICENSE file for
241-
more information.

0 commit comments

Comments
 (0)