1. 21 Apr, 2000 4 commits
    • Greg Ward's avatar
      Patch, originally from Bastian Kleineidam and savagely mutilated by me, · cae8078a
      Greg Ward authored
      to add the "display metadata" options: --name, --version, --author,
      and so forth.  Main changes:
        * added 'display_options' class attribute to list all the "display only"
          options (--help-commands plus the metadata options)
        * added DistributionMetadata class as a place to put the actual
          metadata information from the setup script (not to be confused with
          the metadata display options); the logic dealing with metadata
          (eg. return self.name or "UNKNOWN") is now  in this class
        * changed 'parse_command_line()' to use the new OO interface provided
          by fancy_getopt, mainly so we can get at the original order of
          options on the command line, so we can print multiple lines of
          distribution meta-data in the order specified by the user
        * added 'handle_display_options()' to handle display-only options
      Also fixed some crufty old comments/docstrings.
      cae8078a
    • Greg Ward's avatar
      Made 'generate_help()' and 'print_help()' methods of FancyGetopt. · 97f6eb18
      Greg Ward authored
      Added 'set_option_table()' method.
      Added missing 'self' to 'get_option_order()'.
      Cosmetic/comment/docstring tweaks.
      97f6eb18
    • Greg Ward's avatar
      Continuing the refactoring: deleted the old 'fancy_getopt()' function, · bacfe767
      Greg Ward authored
      leaving in its place a tiny wrapper around the FancyGetopt class
      for backwards compatibility.
      bacfe767
    • Greg Ward's avatar
      Hefty refactoring: converted 'fancy_getopt()' function into FancyGetopt · 8b97bc92
      Greg Ward authored
      class.  (Mainly this was to support the ability to go back after the
      getopt operation is done and get extra information about the parse,
      in particular the original order of options seen on the command line.
      But it's a big improvement and should make it a lot easier to add
      functionality in the future.)
      8b97bc92
  2. 19 Apr, 2000 4 commits
  3. 15 Apr, 2000 2 commits
    • Greg Ward's avatar
      30e154ec
    • Greg Ward's avatar
      Cleaned up/simplified error-handling: · 046fbde6
      Greg Ward authored
        - DistutilsOptionError is now documented as it's actually used, ie.
          to indicate bogus option values (usually user options, eg. from
          the command-line)
        - added DistutilsSetupError to indicate errors that definitely arise
          in the setup script
        - got rid of DistutilsValueError, and changed all usage of it to
          either DistutilsSetupError or ValueError as appropriate
        - simplified a bunch of option get/set methods in Command and
          Distribution classes -- just pass on AttributeError most of
          the time, rather than turning it into something else
      046fbde6
  4. 14 Apr, 2000 5 commits
  5. 10 Apr, 2000 8 commits
  6. 09 Apr, 2000 4 commits
  7. 06 Apr, 2000 1 commit
  8. 04 Apr, 2000 2 commits
  9. 31 Mar, 2000 10 commits