Thu Apr 13 09:07:55 2006

Ticket #39 (Closed: fixed)

setuptools integration: pick up options from setup.cfg


Priority: normal Reporter: jpellerin
Severity: normal Assigned to: jpellerin
Component: nose Status: closed
Version: 0.9 Resolution: fixed
Milestone: 0.9.2 Keywords:  

Description by jpellerin:

Suggestion from Kevin Dangoor:

Even if hooking into setuptools' test command doesn't work,
would it be possible for you to make a distutils command wrapper
(setuptools allows you to easily plug in new commands). The reason I
say this is that nosetests has a growing set of options, and it would
be nice to be able to specify the right set of options in setup.cfg.

First need to figure out what this will require and from that decide the appropriate milestone.

Changelog

Tue May 2 17:06:38 2006: Modified by jpellerin

  • milestone set to 1.0
  • status changed from new to assigned

Wed Aug 9 18:48:51 2006: Modified by James Casbon

    I have added a patch that addresses #38 and #39. It creates a nosetests command for setuptools so you can do:

    python setup.py nosetests

    Unfortunately, distutils has its own option parsing stuff so this patch works by getting the optparse parser from nose.core.configure and then reporting each option to distutils. When run, it reconstructs a command line for nose using the options that distutils has set. Although that approach sounds bad, the advantage of this approach is that options in setup.cfg and at the command line are picked up.

    The patch is probably a bit rough around the edges. In particular, the method that returns all_plugins and the parser isn't nice. Also, probably need to do a but of work to blacklist options that compete with setuptools (--help, etc).

    Thu Oct 12 13:55:50 2006: Modified by jpellerin

    • milestone changed from 1.0 to 0.9.2
    • version set to 0.9

    Sat Nov 18 21:43:34 2006: Modified by jpellerin

    • resolution set to fixed
    • status changed from assigned to closed

    Patch applied in [124].