[med-svn] [python-cobra] 02/05: Create package for data and documentation
Afif Elghraoui
afif-guest at moszumanska.debian.org
Sat Jun 20 21:06:14 UTC 2015
This is an automated email from the git hooks/post-receive script.
afif-guest pushed a commit to branch master
in repository python-cobra.
commit d45aa30164698b2461b575acca6ed2afdadc6693
Author: Afif Elghraoui <afif at ghraoui.name>
Date: Sat Jun 20 13:51:58 2015 -0700
Create package for data and documentation
These files are both architecture-independent and
Python version-independent.
---
debian/control | 21 +++++++++++++++++++--
debian/python-cobra-data.doc-base | 8 ++++++++
debian/python-cobra-data.install | 2 ++
debian/python-cobra.links | 1 +
debian/python-cobra.pyremove | 1 +
debian/python3-cobra.links | 1 +
debian/python3-cobra.pyremove | 1 +
debian/rules | 4 ++++
8 files changed, 37 insertions(+), 2 deletions(-)
diff --git a/debian/control b/debian/control
index 9e44cc9..a2fbf95 100644
--- a/debian/control
+++ b/debian/control
@@ -13,6 +13,7 @@ Build-Depends: debhelper (>= 9),
python3-all-dev,
python3-setuptools,
cython3,
+ python3-sphinx,
libglpk-dev
X-Python-Version: >= 2.7
X-Python3-Version: >= 3.4
@@ -27,7 +28,8 @@ Architecture: any
Depends: ${shlibs:Depends},
${misc:Depends},
${python:Depends}
-Recommends: python-numpy,
+Recommends: python-cobra-data,
+ python-numpy,
python-scipy,
libsbml5-python
Description: constraint-based modeling of biological networks (Python 2)
@@ -46,7 +48,8 @@ Architecture: any
Depends: ${shlibs:Depends},
${misc:Depends},
${python3:Depends}
-Recommends: python3-numpy,
+Recommends: python-cobra-data,
+ python3-numpy,
python3-scipy
Description: constraint-based modeling of biological networks (Python 3)
COnstraint-Based Reconstruction and Analysis (COBRA) methods are widely
@@ -58,3 +61,17 @@ Description: constraint-based modeling of biological networks (Python 3)
analyses.
.
This package provides the Python 3 module.
+
+Package: python-cobra-data
+Architecture: all
+Depends: ${misc:Depends}
+Description: constraint-based modeling of biological networks (data)
+ COnstraint-Based Reconstruction and Analysis (COBRA) methods are widely
+ used for genome-scale modeling of metabolic networks in both prokaryotes
+ and eukaryotes. COBRApy is a constraint-based modeling package that is
+ designed to accommodate the biological complexity of the next generation
+ of COBRA models and provides access to commonly used COBRA methods, such
+ as flux balance analysis, flux variability analysis, and gene deletion
+ analyses.
+ .
+ This package provides test data files and the API documentation.
diff --git a/debian/python-cobra-data.doc-base b/debian/python-cobra-data.doc-base
new file mode 100644
index 0000000..f3f93d2
--- /dev/null
+++ b/debian/python-cobra-data.doc-base
@@ -0,0 +1,8 @@
+Document: python-cobra
+Title: Debian python-cobra API documentation
+Author: Ali Ebrahim
+Section: Programming/Python
+
+Format: HTML
+Index: /usr/share/doc/python-cobra/html/index.html
+Files: /usr/share/doc/python-cobra/html/*.html
diff --git a/debian/python-cobra-data.install b/debian/python-cobra-data.install
new file mode 100644
index 0000000..8cada73
--- /dev/null
+++ b/debian/python-cobra-data.install
@@ -0,0 +1,2 @@
+documentation/html usr/share/doc/python-cobra
+cobra/test/data usr/share/python-cobra
diff --git a/debian/python-cobra.links b/debian/python-cobra.links
new file mode 100644
index 0000000..d19115b
--- /dev/null
+++ b/debian/python-cobra.links
@@ -0,0 +1 @@
+/usr/share/python-cobra/data /usr/lib/python2.7/dist-packages/cobra/test/data
diff --git a/debian/python-cobra.pyremove b/debian/python-cobra.pyremove
new file mode 100644
index 0000000..ec20349
--- /dev/null
+++ b/debian/python-cobra.pyremove
@@ -0,0 +1 @@
+cobra/test/data
diff --git a/debian/python3-cobra.links b/debian/python3-cobra.links
new file mode 100644
index 0000000..7f4711b
--- /dev/null
+++ b/debian/python3-cobra.links
@@ -0,0 +1 @@
+/usr/share/python-cobra/data /usr/lib/python3/dist-packages/cobra/test/data
diff --git a/debian/python3-cobra.pyremove b/debian/python3-cobra.pyremove
new file mode 100644
index 0000000..ec20349
--- /dev/null
+++ b/debian/python3-cobra.pyremove
@@ -0,0 +1 @@
+cobra/test/data
diff --git a/debian/rules b/debian/rules
index 715be2c..de32219 100755
--- a/debian/rules
+++ b/debian/rules
@@ -8,6 +8,10 @@ include /usr/share/dpkg/default.mk
%:
LC_ALL=C.UTF-8 dh $@ --with python2,python3 --buildsystem=pybuild
+override_dh_auto_build:
+ dh_auto_build
+ $(MAKE) -C documentation_builder html
+
override_dh_install:
dh_install -X update_pickles.py
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-med/python-cobra.git
More information about the debian-med-commit
mailing list