~ubuntu-branches/ubuntu/trusty/pexpect/trusty-proposed

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Package Import Robot
  • Author(s): Andrew Starr-Bochicchio, Thomas Kluyver, Jakub Wilk, Jackson Doak, Andrew Starr-Bochicchio
  • Date: 2013-12-06 20:20:26 UTC
  • mfrom: (1.1.4)
  • Revision ID: package-import@ubuntu.com-20131206202026-9k9oixbv7e8ke30q
Tags: 3.0-1
* Team upload.

[ Thomas Kluyver ]
* New upstream release. Closes: #729518
* Add packaging for Python 3.
* Use pybuild for packaging.

[ Jakub Wilk ]
* Use canonical URIs for Vcs-* fields.

[ Jackson Doak ]
* Create debian/python3-pexpect.docs

[ Andrew Starr-Bochicchio ]
* Remove empty debian/patches dir.
* Move documentation and examples into a new python-pexpect-doc
  package. They are shared between the Python 2 and Python 3 packages,
  so there is no need to install them with both.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#!/usr/bin/make -f
 
2
PYTHON2_VERSIONS=$(shell pyversions -vr)
 
3
PYTHON3_VERSIONS=$(shell py3versions -vr)
 
4
PYTHON_VERSIONS=${PYTHON2_VERSIONS} ${PYTHON3_VERSIONS}
2
5
 
3
6
%:
4
 
        dh $@ --with python2
 
7
        dh $@ --with python2,python3,sphinxdoc --buildsystem=pybuild
 
8
 
 
9
override_dh_auto_clean:
 
10
        dh_auto_clean
 
11
        rm -rf doc/_build
 
12
        rm -rf .coverage
 
13
        rm -rf tests/log
 
14
 
 
15
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
 
16
test-python%:
 
17
        PYTHON=python$* sh debian/run_tests.sh
 
18
 
 
19
override_dh_auto_test: $(foreach pyversion,${PYTHON_VERSIONS},$(pyversion:%=test-python%))
 
20
endif
 
21
 
 
22
override_dh_installdocs:
 
23
        PYTHONPATH=`pwd` make -C doc html
 
24
        dh_installdocs -ppython-pexpect-doc doc/_build/html
 
25
        dh_installdocs -A