From 233cb97a66cd8e000c39e8cecc77c015ac4f4f2b Mon Sep 17 00:00:00 2001 From: Adam Jacob Muller Date: Mon, 18 Jan 2016 21:37:31 -0500 Subject: [PATCH] add packaging bits --- debian/compat | 1 + debian/control | 27 +++++++++++++++++++++++++ debian/copyright | 47 +++++++++++++++++++++++++++++++++++++++++++ debian/doc-base | 9 +++++++++ debian/docs | 3 +++ debian/links | 1 + debian/pycompat | 1 + debian/rules | 23 +++++++++++++++++++++ debian/source/options | 1 + debian/watch | 4 ++++ 10 files changed, 117 insertions(+) create mode 100644 debian/compat create mode 100644 debian/control create mode 100644 debian/copyright create mode 100644 debian/doc-base create mode 100644 debian/docs create mode 100644 debian/links create mode 100644 debian/pycompat create mode 100755 debian/rules create mode 100644 debian/source/options create mode 100644 debian/watch diff --git a/debian/compat b/debian/compat new file mode 100644 index 000000000..7f8f011eb --- /dev/null +++ b/debian/compat @@ -0,0 +1 @@ +7 diff --git a/debian/control b/debian/control new file mode 100644 index 000000000..f67fd43d7 --- /dev/null +++ b/debian/control @@ -0,0 +1,27 @@ +Source: python-git +Section: python +Priority: optional +Maintainer: Daniel Watkins +Uploaders: Debian Python Modules Team , + Vincent Bernat , + TANIGUCHI Takaki +Build-Depends: debhelper (>= 7.0.50~), python, python-setuptools (>= 0.6a9), + python-sphinx +Standards-Version: 3.9.3 +Homepage: http://gitorious.org/projects/git-python/ +XS-Python-Version: all +Vcs-Svn: svn://svn.debian.org/python-modules/packages/python-git/trunk +Vcs-Browser: http://svn.debian.org/viewsvn/python-modules/packages/python-git/trunk/ + +Package: python-git +Architecture: all +Depends: ${python:Depends}, + git (>= 1:1.7) | git-core (>= 1:1.5.3.7), + ${misc:Depends}, + libjs-jquery, + python-gitdb (>= 0.5.1) +Description: Python library to interact with Git repositories + python-git provides object model access to a Git repository, so Python can be + used to manipulate it. Repository objects can be opened or created, which can + then be traversed to find parent commit(s), trees, blobs, etc. +XB-Python-Version: ${python:Versions} diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 000000000..71f716dff --- /dev/null +++ b/debian/copyright @@ -0,0 +1,47 @@ +Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: GitPython +Upstream-Contact: Michael Trier +Source: http://gitorious.org/git-python + +Files: * +Copyright: + 2008-2011 Michael Trier + 2008-2011 Florian Apolloner + 2008-2011 David Aguilar + 2008-2011 Alan Briolat +License: BSD-3-clause + +Files: debian/* +Copyright: + 2008-2010 Daniel Watkins + 2011 Andreas Noteng +License: BSD-3-clause + +License: BSD-3-clause + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions + are met: + . + * Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + . + * Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + . + * Neither the name of the GitPython project nor the names of + its contributors may be used to endorse or promote products derived + from this software without specific prior written permission. + . + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR + A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT + OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, + SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED + TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR + PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF + LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING + NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS + SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + diff --git a/debian/doc-base b/debian/doc-base new file mode 100644 index 000000000..c97dc7085 --- /dev/null +++ b/debian/doc-base @@ -0,0 +1,9 @@ +#Document: python-git +#Title: GitPython (python-git) documentation +#Abstract: This manual contains information on how to use the GitPython +# Python module +#Section: Programming/Python +# +#Format: HTML +#Index: /usr/share/doc/python-git/index.html +#Files: /usr/share/doc/python-git/*.html diff --git a/debian/docs b/debian/docs new file mode 100644 index 000000000..564c85b63 --- /dev/null +++ b/debian/docs @@ -0,0 +1,3 @@ +doc/* +AUTHORS +CHANGES diff --git a/debian/links b/debian/links new file mode 100644 index 000000000..39545aa62 --- /dev/null +++ b/debian/links @@ -0,0 +1 @@ +usr/share/javascript/jquery/jquery.js usr/share/doc/python-git/_static/jquery.js diff --git a/debian/pycompat b/debian/pycompat new file mode 100644 index 000000000..0cfbf0888 --- /dev/null +++ b/debian/pycompat @@ -0,0 +1 @@ +2 diff --git a/debian/rules b/debian/rules new file mode 100755 index 000000000..34d82ab1b --- /dev/null +++ b/debian/rules @@ -0,0 +1,23 @@ +#!/usr/bin/make -f +# -*- makefile -*- + +override_dh_installdocs: + dh_installdocs -Xjquery.js -X_sources + +%: + dh $@ --with python2 + +clean: + rm -f lib/GitPython.egg-info/SOURCES.txt + dh clean + +DOC_VERSION=$(shell dpkg-parsechangelog | sed -rne 's,^Version: ([^-]+).*,\1,p' | sed 's/~.*//') +UPSTREAM=$(shell dpkg-parsechangelog | sed -nr 's/Version: (.*)-[^-]*/\1/p') +get-orig-source: + uscan --download-current-version + wget -P get-orig-source http://packages.python.org/GitPython/$(DOC_VERSION)/docs_$(DOC_VERSION).zip + mkdir get-orig-source/doc + unzip -d get-orig-source/doc get-orig-source/docs_$(DOC_VERSION).zip + tar -C get-orig-source -czvf python-git_$(UPSTREAM).orig-doc.tar.gz doc/ + rm -rf get-orig-source + diff --git a/debian/source/options b/debian/source/options new file mode 100644 index 000000000..cb61fa526 --- /dev/null +++ b/debian/source/options @@ -0,0 +1 @@ +extend-diff-ignore = "^[^/]*[.]egg-info/" diff --git a/debian/watch b/debian/watch new file mode 100644 index 000000000..5a5523f9f --- /dev/null +++ b/debian/watch @@ -0,0 +1,4 @@ +version=3 +opts=uversionmangle=s/\.RC/~RC/ \ +http://pypi.python.org/packages/source/G/GitPython/GitPython-(.*)\.tar\.gz \ + debian uupdate