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

Allow existing env vars to be updated #19

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

codeinthehole
Copy link

The PR also makes a few changes to make it easier for contributors to get started.

Fixes #17

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
Copy link
Author

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'],
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant