Commit 5c2b8bef authored by Leo Pound Singer's avatar Leo Pound Singer

debian: modernize and port packaging to Python 2 and 3

parent fa203cae
Note that the dependencies for the python3-ligo-gracedb package is somewhat
different from the python-ligo-gracedb package because python3-m2crypto and
python3-cjson do not exist. However, some basic functions of gracedb doesn't
need them. Consider making them recommended rather than required dependencies.
......@@ -2,17 +2,31 @@ Source: ligo-gracedb
Maintainer: Branson Stephens <branson.stephens@ligo.org>
Section: python
Priority: optional
Build-Depends: debhelper (>= 7), python-all-dev,python-setuptools
Build-Depends: debhelper (>= 9), dh-python, python-all-dev, python3-all-dev, python-setuptools, python3-setuptools, help2man
Standards-Version: 3.8.4
X-Python-Version: >=2.6
X-Python-Version: >=2.7
X-Python3-Version: >=3.4
Package: python-ligo-gracedb
Architecture: all
Depends: ${misc:Depends}, ${python:Depends}, python-m2crypto, python-cjson, python-ligo-common, python-setuptools
XB-Python-Version: ${python:Versions}
Provides: ${python:Provides}
Description: Gravity Wave Candidate Event Database
The gravitational-wave candidate event database (GraCEDb) is a prototype system to organize candidate events from gravitational-wave searches and to provide an environment to record information about follow-ups. A simple client tool is provided to submit a candidate event to the database.
Description: Gravity Wave Candidate Event Database - Python
The gravitational-wave candidate event database (GraCEDb) is a prototype
system to organize candidate events from gravitational-wave searches and to
provide an environment to record information about follow-ups. A simple client
tool is provided to submit a candidate event to the database.
.
This package provides Python support.
Package: python3-ligo-gracedb
Architecture: all
Depends: ${misc:Depends}, ${python3:Depends}, python3-ligo-common, python3-setuptools
Provides: ${python3:Provides}
Description: Gravity Wave Candidate Event Database - Python 3
The gravitational-wave candidate event database (GraCEDb) is a prototype
system to organize candidate events from gravitational-wave searches and to
provide an environment to record information about follow-ups. A simple client
tool is provided to submit a candidate event to the database.
.
This package provides Python 3 support.
This work was packaged for Debian by:
Brian Moe <brian.moe@ligo.org> on Tue, 01 Nov 2011 14:06:40 -0500
It was downloaded from:
http://www.lsc-group.phys.uwm.edu/cgit/lalsuite/tree/gracedb
Upstream Author(s):
The LIGO Scientific Collaboration
Copyright:
Copyright (C) 2011 The LIGO Scientific Collaboration
License:
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This package is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
On Debian systems, the complete text of the GNU General
Public License version 3 can be found in `/usr/share/common-licenses/GPL-3'.
The Debian packaging is:
Copyright (C) 2011 Brian Moe <brian.moe@ligo.org>
and is licensed under the GPL version 3, see above.
Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Upstream-Name: LALSuite
Upstream-Contact: Brian Moe <brian.moe@ligo.org>
Upstream-Source: https://versions.ligo.org/cgit/gracedb-client/
License: GPL-2+
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
.
This package is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
.
On Debian systems, the complete text of the GNU General
Public License version 3 can be found in `/usr/share/common-licenses/GPL-3'.
Files: *
Copyright: 2011 The LIGO Scientific Collaboration
License: GPL-2+
#!/usr/bin/make -f
include /usr/share/dpkg/pkg-info.mk
export PYBUILD_NAME := ligo-gracedb
# Redirect Python 3 packages to a directory that we are going to ignore.
# FIXME: in the future, we could put these in libexec or change their names.
export PYBUILD_INSTALL_ARGS_python3 := --install-scripts=/dont-install
export PYBUILD_AFTER_INSTALL_python3 := rm -rf {destdir}/dont-install
# Automatically generate man pages with help2man
export PYBUILD_AFTER_INSTALL_python2 := \
echo 'Automatically generating man pages with help2man' && \
mkdir -p {destdir}/usr/share/man/man1 && \
ls {destdir}/usr/bin | env PYTHONPATH={destdir}{install_dir} \
xargs --verbose -I @ help2man --source $(DEB_SOURCE) \
--version-string $(DEB_VERSION_UPSTREAM) --no-info --no-discard-stderr \
{destdir}/usr/bin/@ -o {destdir}/usr/share/man/man1/@.1
%:
dh $@ --with python2
dh $@ --with python2,python3 --buildsystem=pybuild
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment