Package: nose Attached patch against current trunk. Upstream tarball available here: http://python-nose.googlecode.com/files/nose-0.10.0.tar.gz
Index: debian/control =================================================================== --- debian/control (revision 3501) +++ debian/control (working copy) @@ -4,16 +4,14 @@ Maintainer: Gustavo Noronha Silva <[EMAIL PROTECTED]> Uploaders: Debian Python Modules Team <[EMAIL PROTECTED]> Build-Depends: python-dev (>= 2.3.5-7), python-setuptools (>= 0.6a9-1), debhelper (>= 5.0.37.2), cdbs (>= 0.4.42), python-support (>= 0.6.4) -Homepage: http://somethingaboutorange.com/mrl/projects/nose/ -XS-Python-Version: >= 2.3 +Homepage: http://code.google.com/p/python-nose/ Vcs-Svn: svn://svn.debian.org/python-modules/packages/nose/trunk/ Vcs-Browser: http://svn.debian.org/wsvn/python-modules/packages/nose/?op=log Standards-Version: 3.7.2 Package: python-nose Architecture: all -Depends: ${python:Depends}, python-setuptools (>= 0.6a9-1) -XB-Python-Version: ${python:Versions} +Depends: ${python:Depends}, python-setuptools (>= 0.6a9-1), python-optcomplete Description: test discovery and running for Python's unittest nose provides an alternate test discovery and running process for unittest, one that is intended to mimic the behavior of py.test as Index: debian/bash_completion/nosecomplete.py =================================================================== --- debian/bash_completion/nosecomplete.py (revision 0) +++ debian/bash_completion/nosecomplete.py (revision 0) @@ -0,0 +1,29 @@ +#!/usr/bin/python + +""" print out optparse config options and exit """ + +import sys + +import nose +import nose.config + + +try: + import optcomplete +except ImportError: + sys.exit(0) +else: + class Config(nose.config.Config): + + def getParser(self, doc=None): + parser = nose.config.Config.getParser(self, doc) + optcomplete.autocomplete(parser) + return parser + + +if __name__ == "__main__": + cfg_files = nose.config.all_config_files() + config = Config(files=cfg_files) + nose.main(config=config) + + Index: debian/bash_completion/nose.sh =================================================================== --- debian/bash_completion/nose.sh (revision 0) +++ debian/bash_completion/nose.sh (revision 0) @@ -0,0 +1,18 @@ +# bash completion for nose testrunner + +_nosetests_complete() +{ + # only run the Python script to get completions (slow) if the word to be + # completed is an option + if echo ${COMP_WORDS[$COMP_CWORD]} | grep -q '^-'; then + COMPREPLY=( $( \ + COMP_LINE=$COMP_LINE COMP_POINT=$COMP_POINT \ + COMP_WORDS="${COMP_WORDS[*]}" COMP_CWORD=$COMP_CWORD \ + OPTPARSE_AUTO_COMPLETE=1 /usr/share/python-nose/nosecomplete ) ) + else + COMPREPLY=( ) + fi +} + +complete -o default -o dirnames -o plusdirs -F _nosetests_complete nosetests + Index: debian/changelog =================================================================== --- debian/changelog (revision 3501) +++ debian/changelog (working copy) @@ -1,3 +1,14 @@ +nose (0.10.0-1) UNRELEASED; urgency=low + + * New upstream release + * debian/rules + - include changelog + * debian/docs + - add html docs + * Add bash completion support + + -- Tristan Hill <[EMAIL PROTECTED]> Fri, 02 Nov 2007 10:21:21 +0000 + nose (0.9.3-2) UNRELEASED; urgency=low * Vcs-Browser and Homepage fields added Index: debian/copyright =================================================================== --- debian/copyright (revision 3501) +++ debian/copyright (working copy) @@ -1,7 +1,7 @@ This package was debianized by Gustavo Noronha Silva <[EMAIL PROTECTED]> on Sun, 07 May 2006 22:54:10 -0300. -It was downloaded from http://somethingaboutorange.com/mrl/projects/nose/ +It was downloaded from http://code.google.com/p/python-nose/ Copyright: Index: debian/docs =================================================================== --- debian/docs (revision 3501) +++ debian/docs (working copy) @@ -1 +1,2 @@ README.txt +doc/ Index: debian/rules =================================================================== --- debian/rules (revision 3501) +++ debian/rules (working copy) @@ -1,14 +1,19 @@ #!/usr/bin/make -f -DEB_PYTHON_SYSTEM=pysupport +DEB_PYTHON_SYSTEM = pysupport -include /usr/share/cdbs/1/rules/buildcore.mk include /usr/share/cdbs/1/rules/debhelper.mk include /usr/share/cdbs/1/class/python-distutils.mk DEB_PYTHON_INSTALL_ARGS_ALL += --single-version-externally-managed +DEB_INSTALL_CHANGELOGS_ALL = CHANGELOG binary-post-install/$(DEB_PYTHON_MODULE_PACKAGE):: # the manpage is already being installed at the correct place # remove the incorrect path - rm -rf debian/$(DEB_PYTHON_MODULE_PACKAGE)/usr/man + rm -r $(DEB_DESTDIR)/usr/man + install -D -m 644 debian/bash_completion/nose.sh \ + $(DEB_DESTDIR)/etc/bash_completion.d/nose + install -D -m 755 debian/bash_completion/nosecomplete.py \ + $(DEB_DESTDIR)/usr/share/$(cdbs_curpkg)/nosecomplete + mv $(DEB_DESTDIR)/usr/share/doc/$(cdbs_curpkg)/{doc,html}