Skip to content
This repository has been archived by the owner on Feb 8, 2018. It is now read-only.

Switch to new environment.py library for config #2226

Merged
merged 1 commit into from
Apr 2, 2014
Merged

Conversation

chadwhitacre
Copy link
Contributor

I factored out a new library called environment.py to manage configuration from environment variables. This commit replaces our former usage of the envvar function with environment. The next step is to replace all of our direct os.environ access.

I factored out a new library called environment.py to manage
configuration from environment variables. This commit replaces our
former usage of the envvar function with environment. The next step is
ot replace all of our direct os.environ access.
@chadwhitacre
Copy link
Contributor Author

I started in on this when @rummik and I were talking about js testing and DevNet (old ticket is #615, not sure we have a new one yet). The thought is to have an /on/localhost/ account elsewhere that we can turn on with an envvar for authentication locally and during testing. That got me looking at our envvar configuration situation which needed a clean up.

@chadwhitacre
Copy link
Contributor Author

chadwhitacre added a commit that referenced this pull request Apr 2, 2014
On #2226 I added a wireup._env function and used it under the hood in
wireup to replace some older code. This commit brings configure-aspen
into the mix. By introducing the env object into configure-aspen I'm
setting us up to replace os.environ calls in other wireup functions with
the env object.
@rummik
Copy link
Contributor

rummik commented Apr 2, 2014

Is doing a make clean env run and having login work a good test for this? The code looks fine to me.

@chadwhitacre
Copy link
Contributor Author

Yes, that and make test (though Travis is convinced).

@rummik
Copy link
Contributor

rummik commented Apr 2, 2014

Getting passes on everything 👍

Merging!

rummik added a commit that referenced this pull request Apr 2, 2014
Switch to new environment.py library for config
@rummik rummik merged commit f62de9a into master Apr 2, 2014
@rummik rummik deleted the environment.py branch April 2, 2014 20:11
@chadwhitacre chadwhitacre mentioned this pull request Apr 3, 2014
chadwhitacre added a commit that referenced this pull request Apr 3, 2014
The wireup.{billing,nanswers} functions also need an env arg now.
Discovered in #2236.
seanlinsley added a commit that referenced this pull request Apr 6, 2014
Fix regression in payday with #2226 chain
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants