[fiona] 07/19: Run tests/build docs during build

Johan Van de Wauw johanvdw-guest at moszumanska.debian.org
Fri Nov 28 23:54:18 UTC 2014


This is an automated email from the git hooks/post-receive script.

johanvdw-guest pushed a commit to branch master
in repository fiona.

commit 8d53add3c1ad90750acda00c2ab159b668758aa9
Author: Johan Van de Wauw <johan.vandewauw at gmail.com>
Date:   Wed Nov 12 22:19:03 2014 +0100

    Run tests/build docs during build
    
    Use tests
    
    test
    
    Build documentation
    
    tba
---
 debian/control        | 20 +++++++++++++++++++-
 debian/fiona-doc.docs |  1 +
 debian/rules          | 11 +++++++++--
 3 files changed, 29 insertions(+), 3 deletions(-)

diff --git a/debian/control b/debian/control
index 6fa72f6..12e70e8 100644
--- a/debian/control
+++ b/debian/control
@@ -18,7 +18,7 @@ Build-Depends: debhelper (>= 9),
                cython3 (>=0.21),
                python-setuptools,
                python3-setuptools,
-               help2man
+               python-sphinx,
 Standards-Version: 3.9.6
 Homepage: https://github.com/Toblerity/Fiona
 X-Python-Version: >= 2.5
@@ -74,3 +74,21 @@ Description: Command line tool for reading/writing vector geospatial data
  such as pyproj, Rtree, and Shapely.
  .
  This package provides the fiona command line tools
+
+Package: fiona-doc
+Architecture: all
+Section: doc
+Depends: ${sphinxdoc:Depends},
+         ${misc:Depends}
+Description: Python api for reading/writing vector geospatial data 
+ Fiona is a Python wrapper around the OGR vector data abstraction library.
+ Fiona is designed to be simple and dependable. It focuses on reading
+ and writing data in standard Python IO style and relies upon familiar
+ Python types and protocols such as files, dictionaries, mappings, and
+ iterators instead of classes specific to OGR. Fiona can read and write
+ real-world data using multi-layered GIS formats and zipped virtual
+ file systems and integrates readily with other Python GIS packages
+ such as pyproj, Rtree, and Shapely.
+ .
+ This package contains the documentation.
+
diff --git a/debian/fiona-doc.docs b/debian/fiona-doc.docs
new file mode 100644
index 0000000..0eec335
--- /dev/null
+++ b/debian/fiona-doc.docs
@@ -0,0 +1 @@
+build/html/*
diff --git a/debian/rules b/debian/rules
index e6aa25e..1ac36ee 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,10 +1,13 @@
 #!/usr/bin/make -f
 
-export PYBUILD_TEST_PYTEST=1
 export PYBUILD_NAME=fiona
 
+#test_cli are disabled because they test the tool after installation
+export PYBUILD_BEFORE_TEST = mv {dir}/tests/test_cli.py {dir}/tests/test_cli.py.disabled
+export PYBUILD_AFTER_TEST = mv {dir}/tests/test_cli.py.disabled {dir}/tests/test_cli.py
+
 %:
-	dh  $@ --with python2,python3 --buildsystem pybuild
+	dh  $@ --with python2,python3,sphinxdoc --buildsystem pybuild
 
 override_dh_clean:
 	dh_clean
@@ -15,5 +18,9 @@ override_dh_install:
 	rm -rf debian/python-fiona/usr/bin
 	rm -rf debian/python3-fiona/usr/bin
 
+override_dh_auto_build:
+	dh_auto_build
+	PYTHONPATH={build_dir} http_proxy='127.0.0.1:9' sphinx-build -N -bhtml docs/ build/html 
+
 debian/fiona.1:
 	help2man fiona -N -n "convert to geojson" >debian/fiona.1

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-grass/fiona.git



More information about the Pkg-grass-devel mailing list