[sagenb-export] 02/02: Initial Debian packaging, incomplete awaiting jupyter-notebook
Ximin Luo
infinity0 at debian.org
Sun Oct 16 17:26:59 UTC 2016
This is an automated email from the git hooks/post-receive script.
infinity0 pushed a commit to branch master
in repository sagenb-export.
commit 6e1b70fb2b26056a05fb9a4f5d418551a9274ed2
Author: Ximin Luo <infinity0 at debian.org>
Date: Sun Oct 16 19:24:59 2016 +0200
Initial Debian packaging, incomplete awaiting jupyter-notebook
---
debian/changelog | 6 ++++++
debian/compat | 1 +
debian/control | 41 +++++++++++++++++++++++++++++++++++++++
debian/copyright | 28 ++++++++++++++++++++++++++
debian/python-sagenb-export.docs | 1 +
debian/python3-sagenb-export.docs | 1 +
debian/rules | 40 ++++++++++++++++++++++++++++++++++++++
debian/source/format | 1 +
debian/source/options | 1 +
debian/watch | 4 ++++
10 files changed, 124 insertions(+)
diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..624c5d3
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,6 @@
+sagenb-export (2.0-1) UNRELEASED; urgency=medium
+
+ * Initial release. (Closes: #839782)
+ * DO NOT RELEASE YET. This depends on notebook which is not in Debian.
+
+ -- Ximin Luo <infinity0 at debian.org> Sun, 16 Oct 2016 18:46:54 +0200
diff --git a/debian/compat b/debian/compat
new file mode 100644
index 0000000..ec63514
--- /dev/null
+++ b/debian/compat
@@ -0,0 +1 @@
+9
diff --git a/debian/control b/debian/control
new file mode 100644
index 0000000..3c9edf6
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,41 @@
+Source: sagenb-export
+Section: python
+Priority: optional
+Maintainer: Debian Science Team <debian-science-maintainers at lists.alioth.debian.org>
+Uploaders: Ximin Luo <infinity0 at debian.org>
+Build-Depends: debhelper (>= 9), dh-python,
+ python-all, python3-all,
+ python-ipython (>= 5), python3-ipython (>= 5),
+ python-nbconvert, python3-nbconvert,
+# ipython-notebook (>= 5), ipython3-notebook (>= 5), # TODO: not yet in Debian, tests will fail
+ python-setuptools, python3-setuptools,
+ python-six, python3-six,
+ python-tornado, python3-tornado,
+ tox
+Standards-Version: 3.9.8
+Homepage: https://github.com/vbraun/ExportSageNB
+X-Python-Version: >= 2.6
+X-Python3-Version: >= 3.2
+Vcs-Git: https://anonscm.debian.org/git/debian-science/packages/sagenb-export.git
+Vcs-Browser: https://anonscm.debian.org/cgit/debian-science/packages/sagenb-export.git/
+#Testsuite: autopkgtest-pkg-python
+
+Package: python-sagenb-export
+Architecture: all
+Depends: ${python:Depends}, ${misc:Depends}
+Suggests: python-sagenb-export-doc
+Description: Convert SageNB Notebooks (Python 2)
+ This is a tool to convert SageNB notebooks to other formats,
+ in particular IPython/Jupyter notebooks.
+ .
+ This package installs the library for Python 2.
+
+Package: python3-sagenb-export
+Architecture: all
+Depends: ${python3:Depends}, ${misc:Depends}
+Suggests: python-sagenb-export-doc
+Description: Convert SageNB Notebooks (Python 3)
+ This is a tool to convert SageNB notebooks to other formats,
+ in particular IPython/Jupyter notebooks.
+ .
+ This package installs the library for Python 3.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..1d7302f
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,28 @@
+Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: ExportSageNB
+Source: https://github.com/vbraun/ExportSageNB
+
+Files: *
+Copyright: 2015-2016 Volker Braun <vbraun.name at gmail.com>
+License: GPL-3
+
+Files: debian/*
+Copyright: 2016 Ximin Luo <infinity0 at debian.org>
+License: GPL-3
+
+License: GPL-3
+ This package 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 <https://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".
diff --git a/debian/python-sagenb-export.docs b/debian/python-sagenb-export.docs
new file mode 100644
index 0000000..b43bf86
--- /dev/null
+++ b/debian/python-sagenb-export.docs
@@ -0,0 +1 @@
+README.md
diff --git a/debian/python3-sagenb-export.docs b/debian/python3-sagenb-export.docs
new file mode 100644
index 0000000..b43bf86
--- /dev/null
+++ b/debian/python3-sagenb-export.docs
@@ -0,0 +1 @@
+README.md
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..213958d
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,40 @@
+#!/usr/bin/make -f
+# See debhelper(7) (uncomment to enable)
+# output every command that modifies files on the build system.
+#export DH_VERBOSE = 1
+
+export PYBUILD_NAME=sagenb-export
+
+%:
+ dh $@ --with python2,python3 --buildsystem=pybuild
+
+
+# If you need to rebuild the Sphinx documentation
+# Add spinxdoc to the dh --with line
+#override_dh_auto_build:
+# dh_auto_build
+# PYTHONPATH=. http_proxy='127.0.0.1:9' sphinx-build -N -bhtml docs/ build/html # HTML generator
+# PYTHONPATH=. http_proxy='127.0.0.1:9' sphinx-build -N -bman docs/ build/man # Manpage generator
+
+TOX_ENVLIST = py27
+#TOX_ENVLIST = py27,py35 # TODO: uncomment after notebook is in debian
+
+override_dh_auto_test:
+ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
+ VIRTUALENV_DOWNLOAD=no \
+ http_proxy=http://127.0.9.1:9 \
+ https_proxy=https://127.0.9.1:9 \
+ tox -r --sitepackages -e $(TOX_ENVLIST) -- -s
+endif
+
+override_dh_auto_clean:
+ rm -rf .tox
+ dh_auto_clean
+
+# TODO: link these back to /usr/bin/sagenb-export via update-alternatives,
+override_dh_install:
+ dh_install
+ mv debian/python3-sagenb-export/usr/bin/sagenb-export \
+ debian/python3-sagenb-export/usr/bin/python3-sagenb-export
+ mv debian/python-sagenb-export/usr/bin/sagenb-export \
+ debian/python-sagenb-export/usr/bin/python-sagenb-export
diff --git a/debian/source/format b/debian/source/format
new file mode 100644
index 0000000..163aaf8
--- /dev/null
+++ b/debian/source/format
@@ -0,0 +1 @@
+3.0 (quilt)
diff --git a/debian/source/options b/debian/source/options
new file mode 100644
index 0000000..cb61fa5
--- /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 0000000..7b4a389
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,4 @@
+version=4
+opts="filenamemangle=s%(?:.*?)?v?(\d[\d.]*)\.tar\.gz%ExportSageNB-$1.tar.gz%" \
+ https://github.com/vbraun/ExportSageNB/tags \
+ (?:.*?/)?v?(\d[\d.]*)\.tar\.gz
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/sagenb-export.git
More information about the debian-science-commits
mailing list