I build libgit2 in a `build/` subdirectory of a Git checkout, and
never bother installing it. I'd like to link pygit2 against it there,
but LIBGIT2 assumes libgit2.so will be in the default library search
path or $LIBGIT/lib. This patch adds LIBGIT2_LIB, a new environment
variable for overriding the additional library search paths.
An alternative to this patch is to set LDFLAGS="-L..." explicitly
before building pygit2. I've avoided that approach here minimize the
difference between configuring this library path explicitly, and
configuring implicitly via LIBGIT2.
Moved the hardcoded version from setup.py to pygit2/version.py so
client software can figure out which version of pygit2 it's using.
Having setup.py import pygit2.version.__version__ removes duplication,
and also means that setup.py will always use the local version (and
not the version of a previously installed pygit2).
New features:
- Support for diffs
- Support for reflog
- Support for config files
- Add shortcut 'Repository.head'
Other changes:
- Improved support for Windows
- Improved documentation
- Refactoring: split the code into smaller files
- Refactoring: allow to add helper code written in Python
- Use Travis Continous-Integration service
http://travis-ci.org/#!/libgit2/pygit2
Thanks to András Veres-Szentkirályi, Christian Boos, Martin Lenders,
Nico von Geyso, Petr Hosek and pistacchio.
Highlights:
- Fix serious memory bug
- Change signature of 'TreeBuilder.insert'
- Improve support of Windows
Thanks to Benjamin Kircher, Han-Wen Nienhuys and Yonggang Luo.
Highlights:
- Tag.target now returns the OID, not the object
- New method "Repository.status_file(path)"
- New function "discover_repository(...)"
- Supporting tree-builders
- Improving pygit2 on Windows
- Various bugs fixed, including a couple of segfaults
Thanks to Amit Bakshi, Bryan O'Sullivan, Carlos Martín Nieto,
Han-Wen Nienhuys and Yonggang Luo.
The readme file is now written in reStructuredText (instead of
markdown). This is because reST is the only thing pypi understands.
So now the same readme file will be used for pygit2's homepage at github
and pypi:
- https://github.com/libgit2/pygit2
- http://pypi.python.org/pypi/pygit2
Changes since v0.15.1:
- Update to libgit2 v0.16.0
- Improve support for references
- New method Index.read_tree
- Rename Index.create_tree to Index.write_tree
- Fix compilation error with MSVC (issue #53)
- Fix a few segfaults (including issue #55)