-
Notifications
You must be signed in to change notification settings - Fork 35
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
Allow existing env vars to be updated #19
base: master
Are you sure you want to change the base?
Allow existing env vars to be updated #19
Conversation
These are required to run the test suite. Having them in `setup.py` makes it easier to get the project running locally. This change also alters the Travis config to call `setup.py` for installation.
Just to make things easier for contributors.
Plus put the config in setup.cfg to make it easy to just run `flake8` locally.
This is useful for applications that want to update their existing env vars. If you use a system like consul-template to provide environment variables, then it's useful to be able to update your application when they change. This change adds a _overwrite param to the read_envfile method, which allows existing env vars to be updated.
|
||
Tests | ||
----- | ||
~~~~~ | ||
|
||
.. image:: https://secure.travis-ci.org/rconradharris/envparse.png?branch=master |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@rconradharris It doesn't look like this project is configured on travis yet
@@ -70,6 +71,6 @@ def run_tests(self): | |||
'Topic :: Internet :: WWW/HTTP :: Dynamic Content', | |||
], | |||
extras_require={ | |||
'testing': ['pytest'], | |||
'testing': ['pytest', 'tox', 'flake8', 'coverage'], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@rconradharris Not sure if this is strictly required given that tox seems to be able to install stuff. I personally find it clearer to have the testing dependencies listed here. I found that after running tox, I still didn't have flake8 installed.
The PR also makes a few changes to make it easier for contributors to get started.
Fixes #17