37 Commits

Author SHA1 Message Date
J. David Ibáñez
74a1fdab60 Fixing coding style with the help of pep8 (wip) 2013-05-26 10:32:05 +02:00
Valentin Haenel
8d8416e083 pep8 fixes for setup.py
as reported by flake8
2013-03-08 22:02:34 +01:00
J. David Ibáñez
29ce23c0d5 Update copyright 2013-03-02 12:16:16 +01:00
J. David Ibáñez
a96d494747 Coding style
Including:

- Lines longer than 79 chars
- Spaces at the end of line
- Wrong indentation
- Comma not followed by an space
- C++ style comments: //
2013-03-02 11:40:42 +01:00
J. David Ibáñez
933e02ee5c Cosmetic fix to setup.py 2013-02-19 10:53:41 +01:00
Christian Boos
bcf48321ee setup: using u'...' breaks for Python 3.[0-2]. 2013-02-18 21:03:19 +01:00
Christian Boos
c4fa231df3 setup: Emacs actually don't like UTF-8, prefers utf-8 2013-02-18 20:58:43 +01:00
Christian Boos
67f68d2234 Fix setup.py so that bdist_wininst works.
Leaving the maintainer's name as a string (as opposed to a unicode)
was triggering a UnicodeDecodeError when running bdist_wininst with
Python 2.7.3
2013-02-18 20:51:06 +01:00
J. David Ibáñez
5343d28ca5 Flat directory hierarchy: move src/pygit2/ to src/ 2013-02-04 12:51:28 +01:00
W. Trevor King
0acb7df564 setup.py: Add LIBGIT2_LIB to override the library search path
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.
2012-12-13 08:18:36 -05:00
W. Trevor King
43a798bbdb setup.py: decode README.rst to unicode.
Signed-off-by: W. Trevor King <wking@tremily.us>
2012-10-25 15:47:02 -04:00
W. Trevor King
f10d2b7b3f pygit2:version: add 'pygit2.__version__' for easy access from client software.
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).
2012-09-17 10:16:25 -04:00
J. David Ibáñez
0821e7bf00 Release v0.17.2
Now the MANIFEST file is automatically built from Git. This fixes the
source distribution.
2012-07-24 12:40:26 +02:00
J. David Ibáñez
06969ba874 Generate the MANIFEST file from git 2012-07-24 12:40:02 +02:00
J. David Ibáñez
a1716a3a92 Release v0.17.1
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.
2012-07-18 12:24:09 +02:00
J. David Ibáñez
6195491596 Add/update copyright header of each file
And update my email address.
2012-07-18 12:07:17 +02:00
J. David Ibáñez
d27cf0b687 style: remove trailing white-spaces 2012-06-18 11:22:56 -03:00
Nico von Geyso
0ac20f2d9d fixed typo in setup() 2012-05-25 14:43:15 +02:00
Nico von Geyso
ad4edf1b85 added pygit2.utils module
refactored package integration to be able to have pygit2.utils module
2012-05-25 14:23:25 +02:00
Nico von Geyso
6b1a281edc refactoring pygit2.c into several small files
The whole extension was organised in one big 3727 lines monster.
This refactoring is splitting these 3727 lines into several smaller files.
2012-05-25 14:07:44 +02:00
J. David Ibáñez
6825bba8c0 Release v0.17.0
Changes:

- Update to libgit2 v0.17.0
- New method 'Repository.create_blob'

Thanks to Nico von Geyso.
2012-05-21 18:11:38 +02:00
J. David Ibáñez
2bbf62f50a Release v0.16.2
Highlights:

- Fix serious memory bug
- Change signature of 'TreeBuilder.insert'
- Improve support of Windows

Thanks to Benjamin Kircher, Han-Wen Nienhuys and Yonggang Luo.
2012-05-03 14:05:51 +02:00
Yonggang Luo
ad39bd7b4d use distutils.log instead of logging.
Pass args to unittest, so that we can running unittest in such way:
python setup.py test --args="test.test_tag.TagTest"
2012-04-07 14:04:11 +08:00
Yonggang Luo
823dc6ae3b # -*- coding: UTF-8 -*-
# coding: UTF-8

This is necessary under win32.
2012-04-07 12:42:33 +08:00
Yonggang Luo
81e892b8d5 copy (lib)git2.dll alongside pygit2
add build_lib into sys path so that unittest can found (lib)git2.dll
2012-04-07 12:34:15 +08:00
Yonggang Luo
907b668fcf drop support for setuptools. 2012-04-07 11:54:44 +08:00
J. David Ibáñez
f530917463 We don't need zlib/libssl 2012-03-29 16:28:13 +02:00
J. David Ibáñez
bccf3e1e33 Release v0.16.1
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.
2012-03-19 14:16:30 +01:00
Yonggang Luo
8394dfb814 Remove extra print. 2012-02-16 01:02:55 +08:00
Yonggang Luo
2b4e5504af Get pygit2 can be build under Windows. 2012-02-16 01:00:49 +08:00
J. David Ibáñez
a11f3c52a9 docs: use readme file for both github and pypi
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
2012-02-08 23:21:37 +01:00
J. David Ibáñez
0fa8503f91 Release v0.16.0
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)
2012-02-06 23:30:00 +01:00
J. David Ibáñez
1dde68691b Update setup file 2011-10-05 23:11:59 +02:00
J. David Ibáñez
8ad5e30eda Update maintainer in the setup file 2011-05-05 19:55:04 +02:00
J. David Ibañez
70bdb12cb1 Fix url & license in the setup file 2011-02-10 11:40:20 +01:00
Dave Borowitz
a2b0f45368 Add simple repository tests.
Change-Id: I128ac826f1c673002bc6f17696691e5a4bd7f0fd
2010-11-12 13:19:57 -08:00
Dave Borowitz
4940678d9f Initial checkin of pygit2, the Python libgit2 bindings.
So far, only contains Repository and Object type definitions with a few
methods.

Change-Id: I0c53035fe3a418f5b96e36d1549dcf0ffed172f4
2010-11-04 13:59:18 -07:00