Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1882c57
commit eeded64
Showing
20 changed files
with
143 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# pre-config | ||
DYNACONF_SETTINGS=mysettings | ||
NAMESPACE_FOR_DYNACONF=EXAMPLE | ||
|
||
# config vars | ||
EXAMPLE_MYSQL_PASSWD=SuperSecret |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
.PHONY: test | ||
|
||
test: | ||
pwd | ||
python app.py |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
EXAMPLE = True | ||
MYSQL_HOST = 'server.com' | ||
WORKS='app' | ||
WORKS = 'app' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
DYNACONF_MYSQL_HOST=server.com | ||
DYNACONF_MYSQL_PASSWD=@int 123456 | ||
DYNACONF_EXAMPLE="Hello World" | ||
DYNACONF_MONEY_VALUE=@float 345.6 | ||
DYNACONF_BOOL_VALUE=@bool off | ||
DYNACONF_JSON_VALUE='@json ["a", "b"]' | ||
DYNACONF_WORKS=app_with_dotenv |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# CLI vars | ||
FLASK_APP=app.py | ||
FLASK_ENV=development | ||
|
||
# flask default config vars | ||
FLASK_SECRET_KEY=sfnjfh4978y-94tbgefjbg79 | ||
FLASK_TEMPLATES_AUTO_RELOAD=1 | ||
|
||
# custom vars | ||
FLASK_HELLO=hello flask | ||
|
||
# typed variables | ||
FLASK_INTVAR=@int 42 | ||
FLASK_FLOATVAR=@float 4.2 | ||
FLASK_BOOLVAR=@bool true | ||
FLASK_JSONVAR=@json ["flask", "rocks"] | ||
|
||
# test route used in jenkins | ||
FLASK_TEST_RULE='/flask_with_dotenv' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# CLI vars | ||
FLASK_APP=app.py | ||
FLASK_ENV=development | ||
|
||
# flask default config vars | ||
FLASK_SECRET_KEY=sfnjfh4978y-94tbgefjbg79 | ||
FLASK_TEMPLATES_AUTO_RELOAD=1 | ||
|
||
# custom vars | ||
FLASK_HELLO=hello flask | ||
|
||
# typed variables | ||
FLASK_INTVAR=@int 42 | ||
FLASK_FLOATVAR=@float 4.2 | ||
FLASK_BOOLVAR=@bool true | ||
FLASK_JSONVAR=@json ["flask", "rocks"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# CLI vars | ||
FLASK_APP=app.py | ||
FLASK_ENV=development | ||
|
||
# flask default config vars | ||
FLASK_SECRET_KEY=sfnjfh4978y-94tbgefjbg79 | ||
FLASK_TEMPLATES_AUTO_RELOAD=1 | ||
|
||
# custom vars | ||
FLASK_HELLO=hello flask | ||
|
||
# typed variables | ||
FLASK_INTVAR=@int 42 | ||
FLASK_FLOATVAR=@float 4.2 | ||
FLASK_BOOLVAR=@bool true | ||
FLASK_JSONVAR=@json ["flask", "rocks"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# CLI vars | ||
FLASK_APP=app.py | ||
FLASK_ENV=development | ||
|
||
# flask default config vars | ||
FLASK_SECRET_KEY=sfnjfh4978y-94tbgefjbg79 | ||
FLASK_TEMPLATES_AUTO_RELOAD=1 | ||
|
||
# custom vars | ||
FLASK_HELLO=hello flask | ||
|
||
# typed variables | ||
FLASK_INTVAR=@int 42 | ||
FLASK_FLOATVAR=@float 4.2 | ||
FLASK_BOOLVAR=@bool true | ||
FLASK_JSONVAR=@json ["flask", "rocks"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# CLI vars | ||
FLASK_APP=app.py | ||
FLASK_ENV=development | ||
|
||
# flask default config vars | ||
FLASK_SECRET_KEY=sfnjfh4978y-94tbgefjbg79 | ||
FLASK_TEMPLATES_AUTO_RELOAD=1 | ||
|
||
# custom vars | ||
FLASK_HELLO=hello flask | ||
|
||
# typed variables | ||
FLASK_INTVAR=@int 42 | ||
FLASK_FLOATVAR=@float 4.2 | ||
FLASK_BOOLVAR=@bool true | ||
FLASK_JSONVAR=@json ["flask", "rocks"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
REDIS_FOR_DYNACONF='@json {}' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
DYNACONF_ENV_VAR=1 | ||
DYNACONF_WORKS=multiple_sources |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
EXAMPLE_MYSQL_PASSWD=SuperSecret | ||
NAMESPACE_FOR_DYNACONF='EXAMPLE' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
DYNACONF_YAML=extra_settings.yaml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,6 +16,7 @@ coveralls | |
pytest | ||
pytest-cov | ||
pytest-xdist | ||
logzero | ||
|
||
# style check | ||
flake8 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,14 @@ | ||
[tox] | ||
envlist = py36 | ||
whitelist_externals=make | ||
|
||
[testenv] | ||
deps = -rrequirements_dev.txt | ||
whitelist_externals= | ||
make | ||
cd | ||
python | ||
commands = | ||
py.test --boxed -v --cov=dynaconf -l --tb=short --maxfail=1 tests/ | ||
make test_examples | ||
|