Skip to content

Commit

Permalink
filling out config a little bit.
Browse files Browse the repository at this point in the history
  • Loading branch information
toumorokoshi committed Jan 11, 2016
1 parent 266b61d commit 7f4ff21
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 2 deletions.
9 changes: 7 additions & 2 deletions docs/config.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,13 @@
Configuration
=============

Uranium provides infrastructure to pass in configuration variables, a
common use case for a build framework with shared components:
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

.. code:: python
Expand Down
6 changes: 6 additions & 0 deletions docs/cookbook/reuse.rst
Original file line number Diff line number Diff line change
Expand Up @@ -110,3 +110,9 @@ And your consumer script will look like:
import mycompany_build
mycompany_build.setup(build)
globals().update(get_public_directives())
Caveats
=======

*
2 changes: 2 additions & 0 deletions uranium/decorators.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
def requires(func_name):
pass
1 change: 1 addition & 0 deletions uranium/environment_variables.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ def __getitem__(self, key):
envvars["PYTHONPATH"]
"""
return os.environ[key]

def generate_activate_content(self):
"""
Expand Down

0 comments on commit 7f4ff21

Please sign in to comment.