Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Config utilities for describing config files and CLI arguments #17

Merged
merged 13 commits into from
Aug 11, 2014

Commits on Jul 24, 2014

  1. Configuration menu
    Copy the full SHA
    6f09186 View commit details
    Browse the repository at this point in the history

Commits on Jul 29, 2014

  1. Introduce XylemError as common Exception base class.

    Having a common base class allows users to catch all xylem
    related exceptions in one handler.
    NikolausDemmel committed Jul 29, 2014
    Configuration menu
    Copy the full SHA
    5c10889 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    770ec03 View commit details
    Browse the repository at this point in the history
  3. Unit tests; new test dependecy testfixtures

     - extensive tests for config types
     - tests for other parts of config utils are still TODO
    NikolausDemmel committed Jul 29, 2014
    Configuration menu
    Copy the full SHA
    3979262 View commit details
    Browse the repository at this point in the history
  4. Use new config_util module to declare configuration

    - new module `config` describes the global configuration
    
    - `config` includes the logic to compute soruces and cache folders given command
      line arguments and options
    
    - `arguments` module features help action, which uses pydoc.pager to display the
      help in a `less`-like scrollable manner on pty's
    
    - help output includes new section `config arguments`, describing the arguments
      that correspond to a config file entry
    
    - commands have a new hook to add to the config description; some logic common
      to all commands was moved to `commands.main`
    
    - context objects like `InstallerContext` and `SourcesContext` now take a config
      dictionary as argument, which defaults to the global config sigleton if not
      passed explicitly
    
    - high-level API used by the commands (`update`, `resolve`, `lookup`) is also
      parameterized by an optional config dict argument, which defaults to the
      global config
    NikolausDemmel committed Jul 29, 2014
    Configuration menu
    Copy the full SHA
    2b47867 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    fb3b4b0 View commit details
    Browse the repository at this point in the history
  6. fix docstring typos

    NikolausDemmel committed Jul 29, 2014
    Configuration menu
    Copy the full SHA
    b067cfa View commit details
    Browse the repository at this point in the history
  7. update apidoc

    NikolausDemmel committed Jul 29, 2014
    Configuration menu
    Copy the full SHA
    9246fe6 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    ee91f5b View commit details
    Browse the repository at this point in the history
  9. Fix outdated imports.

    NikolausDemmel committed Jul 29, 2014
    Configuration menu
    Copy the full SHA
    ccbe973 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    52433fb View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    05483a2 View commit details
    Browse the repository at this point in the history
  12. fix pep8

    NikolausDemmel committed Jul 29, 2014
    Configuration menu
    Copy the full SHA
    94f3b68 View commit details
    Browse the repository at this point in the history