在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:gitpython-developers/GitPython开源软件地址:https://github.com/gitpython-developers/GitPython开源编程语言:Python 99.9%开源软件介绍:Gitoxide: A peek into the future…I started working on GitPython in 2009, back in the days when Python was 'my thing' and I had great plans with it. Of course, back in the days, I didn't really know what I was doing and this shows in many places. Somewhat similar to Python this happens to be 'good enough', but at the same time is deeply flawed and broken beyond repair. By now, GitPython is widely used and I am sure there is a good reason for that, it's something to be proud of and happy about. The community is maintaining the software and is keeping it relevant for which I am absolutely grateful. For the time to come I am happy to continue maintaining GitPython, remaining hopeful that one day it won't be needed anymore. More than 15 years after my first meeting with 'git' I am still in excited about it, and am happy to finally have the tools and
probably the skills to scratch that itch of mine: implement If you like the idea and want to learn more, please head over to gitoxide, an implementation of 'git' in Rust. GitPythonGitPython is a python library used to interact with git repositories, high-level like git-porcelain, or low-level like git-plumbing. 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. 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. DEVELOPMENT STATUSThis project is in maintenance mode, which means that
The project is open to contributions of all kinds, as well as new maintainers. REQUIREMENTSGitPython needs the
The list of dependencies are listed in INSTALLIf you have downloaded the source code:
or if you want to obtain a copy from the Pypi repository:
Both commands will install the required package dependencies. A distribution package can be obtained for manual installation at:
If you like to clone from source, you can do it like so: git clone https://github.com/gitpython-developers/GitPython
git submodule update --init --recursive
./init-tests-after-clone.sh LimitationsLeakage of System ResourcesGitPython is not suited for long-running processes (like daemons) as it tends to
leak system resources. It was written in a time where destructors (as implemented
in the In case you still want to use it in such a context, you will want to search the
codebase for Another way assure proper cleanup of resources is to factor out GitPython into a separate process which can be dropped periodically. Windows supportSee Issue #525. RUNNING TESTSImportant: Right after cloning this repository, please be sure to have executed
the On Windows, make sure you have Ensure testing libraries are installed.
In the root directory, run: To lint, run: To typecheck, run: To test, run: Configuration for flake8 is in the ./.flake8 file. Configurations for mypy, pytest and coverage.py are in ./pyproject.toml. The same linting and testing will also be performed against different supported python versions upon submitting a pull request (or on each push if you have a fork with a "main" branch and actions enabled). ContributionsPlease have a look at the contributions file. INFRASTRUCTURE
How to make a new release
How to verify a release (DEPRECATED)Note that what follows is deprecated and future releases won't be signed anymore. More details about how it came to that can be found in this issue. Please only use releases from This script shows how to verify the tarball was indeed created by the authors of this project:
which outputs
You can verify that the keyid indeed matches the release-signature key provided in this repository by looking at the keys details:
You can verify that the commit adding it was also signed by it using:
If you would like to trust it permanently, you can import and sign it:
Projects using GitPython
LICENSENew BSD License. See the LICENSE file. |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论