Skip to content

Latest commit

 

History

History
32 lines (23 loc) · 821 Bytes

config.rst

File metadata and controls

32 lines (23 loc) · 821 Bytes

Configuration

Uranium provides infrastructure to pass in configuration variables.

Configuration variables are useful in a variety of situations, including:

  • choose whether to run in development mode
  • select the environment to run against
# config.set_defaults can be used to set some default values.
build.config.set_defaults({
    "development": "false"
})

def test(build):
    # one can set development mode by adding a -c development=true before the task:
    # ./uranium -c development=true test
    if build.config["development"].startswith("t"):
        build.packages.install(".", develop=True)

Full API Reference

uranium.config.Config