Skip to content

Commit 233cb97

Browse files
add packaging bits
1 parent 7b85487 commit 233cb97

File tree

10 files changed

+117
-0
lines changed

10 files changed

+117
-0
lines changed

debian/compat

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
7

debian/control

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
Source: python-git
2+
Section: python
3+
Priority: optional
4+
Maintainer: Daniel Watkins <daniel@daniel-watkins.co.uk>
5+
Uploaders: Debian Python Modules Team <python-modules-team@lists.alioth.debian.org>,
6+
Vincent Bernat <bernat@debian.org>,
7+
TANIGUCHI Takaki <takaki@debian.org>
8+
Build-Depends: debhelper (>= 7.0.50~), python, python-setuptools (>= 0.6a9),
9+
python-sphinx
10+
Standards-Version: 3.9.3
11+
Homepage: http://gitorious.org/projects/git-python/
12+
XS-Python-Version: all
13+
Vcs-Svn: svn://svn.debian.org/python-modules/packages/python-git/trunk
14+
Vcs-Browser: http://svn.debian.org/viewsvn/python-modules/packages/python-git/trunk/
15+
16+
Package: python-git
17+
Architecture: all
18+
Depends: ${python:Depends},
19+
git (>= 1:1.7) | git-core (>= 1:1.5.3.7),
20+
${misc:Depends},
21+
libjs-jquery,
22+
python-gitdb (>= 0.5.1)
23+
Description: Python library to interact with Git repositories
24+
python-git provides object model access to a Git repository, so Python can be
25+
used to manipulate it. Repository objects can be opened or created, which can
26+
then be traversed to find parent commit(s), trees, blobs, etc.
27+
XB-Python-Version: ${python:Versions}

debian/copyright

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
2+
Upstream-Name: GitPython
3+
Upstream-Contact: Michael Trier <mtrier@gmail.com>
4+
Source: http://gitorious.org/git-python
5+
6+
Files: *
7+
Copyright:
8+
2008-2011 Michael Trier <mtrier@gmail.com>
9+
2008-2011 Florian Apolloner <florian@apolloner.eu>
10+
2008-2011 David Aguilar <davvid@gmail.com>
11+
2008-2011 Alan Briolat
12+
License: BSD-3-clause
13+
14+
Files: debian/*
15+
Copyright:
16+
2008-2010 Daniel Watkins <daniel@daniel-watkins.co.uk>
17+
2011 Andreas Noteng <andreas@noteng.no>
18+
License: BSD-3-clause
19+
20+
License: BSD-3-clause
21+
Redistribution and use in source and binary forms, with or without
22+
modification, are permitted provided that the following conditions
23+
are met:
24+
.
25+
* Redistributions of source code must retain the above copyright
26+
notice, this list of conditions and the following disclaimer.
27+
.
28+
* Redistributions in binary form must reproduce the above copyright
29+
notice, this list of conditions and the following disclaimer in the
30+
documentation and/or other materials provided with the distribution.
31+
.
32+
* Neither the name of the GitPython project nor the names of
33+
its contributors may be used to endorse or promote products derived
34+
from this software without specific prior written permission.
35+
.
36+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
37+
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
38+
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
39+
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
40+
OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
41+
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED
42+
TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
43+
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
44+
LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
45+
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
46+
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
47+

debian/doc-base

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#Document: python-git
2+
#Title: GitPython (python-git) documentation
3+
#Abstract: This manual contains information on how to use the GitPython
4+
# Python module
5+
#Section: Programming/Python
6+
#
7+
#Format: HTML
8+
#Index: /usr/share/doc/python-git/index.html
9+
#Files: /usr/share/doc/python-git/*.html

debian/docs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
doc/*
2+
AUTHORS
3+
CHANGES

debian/links

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
usr/share/javascript/jquery/jquery.js usr/share/doc/python-git/_static/jquery.js

debian/pycompat

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
2

debian/rules

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
#!/usr/bin/make -f
2+
# -*- makefile -*-
3+
4+
override_dh_installdocs:
5+
dh_installdocs -Xjquery.js -X_sources
6+
7+
%:
8+
dh $@ --with python2
9+
10+
clean:
11+
rm -f lib/GitPython.egg-info/SOURCES.txt
12+
dh clean
13+
14+
DOC_VERSION=$(shell dpkg-parsechangelog | sed -rne 's,^Version: ([^-]+).*,\1,p' | sed 's/~.*//')
15+
UPSTREAM=$(shell dpkg-parsechangelog | sed -nr 's/Version: (.*)-[^-]*/\1/p')
16+
get-orig-source:
17+
uscan --download-current-version
18+
wget -P get-orig-source http://packages.python.org/GitPython/$(DOC_VERSION)/docs_$(DOC_VERSION).zip
19+
mkdir get-orig-source/doc
20+
unzip -d get-orig-source/doc get-orig-source/docs_$(DOC_VERSION).zip
21+
tar -C get-orig-source -czvf python-git_$(UPSTREAM).orig-doc.tar.gz doc/
22+
rm -rf get-orig-source
23+

debian/source/options

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
extend-diff-ignore = "^[^/]*[.]egg-info/"

debian/watch

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
version=3
2+
opts=uversionmangle=s/\.RC/~RC/ \
3+
http://pypi.python.org/packages/source/G/GitPython/GitPython-(.*)\.tar\.gz \
4+
debian uupdate

0 commit comments

Comments
 (0)