Skip to content

Commit b8e6461

Browse files
committed
Deployed with MkDocs version: 1.1
1 parent 3243897 commit b8e6461

9 files changed

Lines changed: 74 additions & 23 deletions

File tree

CHANGELOG/index.html

Lines changed: 52 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -265,6 +265,26 @@
265265
Unreleased
266266
</a>
267267

268+
</li>
269+
270+
<li class="md-nav__item">
271+
<a href="#0130-2020-04-16" class="md-nav__link">
272+
0.13.0 - 2020-04-16
273+
</a>
274+
275+
<nav class="md-nav">
276+
<ul class="md-nav__list">
277+
278+
<li class="md-nav__item">
279+
<a href="#added" class="md-nav__link">
280+
Added
281+
</a>
282+
283+
</li>
284+
285+
</ul>
286+
</nav>
287+
268288
</li>
269289

270290
<li class="md-nav__item">
@@ -303,7 +323,7 @@
303323
<ul class="md-nav__list">
304324

305325
<li class="md-nav__item">
306-
<a href="#added" class="md-nav__link">
326+
<a href="#added_1" class="md-nav__link">
307327
Added
308328
</a>
309329

@@ -357,7 +377,7 @@
357377
<ul class="md-nav__list">
358378

359379
<li class="md-nav__item">
360-
<a href="#added_1" class="md-nav__link">
380+
<a href="#added_2" class="md-nav__link">
361381
Added
362382
</a>
363383

@@ -571,6 +591,26 @@
571591
Unreleased
572592
</a>
573593

594+
</li>
595+
596+
<li class="md-nav__item">
597+
<a href="#0130-2020-04-16" class="md-nav__link">
598+
0.13.0 - 2020-04-16
599+
</a>
600+
601+
<nav class="md-nav">
602+
<ul class="md-nav__list">
603+
604+
<li class="md-nav__item">
605+
<a href="#added" class="md-nav__link">
606+
Added
607+
</a>
608+
609+
</li>
610+
611+
</ul>
612+
</nav>
613+
574614
</li>
575615

576616
<li class="md-nav__item">
@@ -609,7 +649,7 @@
609649
<ul class="md-nav__list">
610650

611651
<li class="md-nav__item">
612-
<a href="#added" class="md-nav__link">
652+
<a href="#added_1" class="md-nav__link">
613653
Added
614654
</a>
615655

@@ -663,7 +703,7 @@
663703
<ul class="md-nav__list">
664704

665705
<li class="md-nav__item">
666-
<a href="#added_1" class="md-nav__link">
706+
<a href="#added_2" class="md-nav__link">
667707
Added
668708
</a>
669709

@@ -816,8 +856,13 @@ <h1 id="changelog">Changelog</h1>
816856
<p>All notable changes to this project will be documented in this file.</p>
817857
<p>The format is based on <a href="https://keepachangelog.com/en/1.0.0/">Keep a Changelog</a>, and this
818858
project adheres to <a href="https://semver.org/spec/v2.0.0.html">Semantic Versioning</a>.</p>
819-
<h2 id="unreleased"><a href="https://github.com/theskumar/python-dotenv/compare/v0.12.0...HEAD">Unreleased</a></h2>
859+
<h2 id="unreleased"><a href="https://github.com/theskumar/python-dotenv/compare/v0.13.0...HEAD">Unreleased</a></h2>
820860
<p><em>No unreleased change at this time.</em></p>
861+
<h2 id="0130-2020-04-16"><a href="https://github.com/theskumar/python-dotenv/compare/v0.12.0...v0.13.0">0.13.0</a> - 2020-04-16</h2>
862+
<h3 id="added">Added</h3>
863+
<ul>
864+
<li>Add support for a Bash-like default value in variable expansion (#248 by <a href="https://github.com/bbc2">@bbc2</a>).</li>
865+
</ul>
821866
<h2 id="0120-2020-02-28"><a href="https://github.com/theskumar/python-dotenv/compare/v0.11.0...v0.12.0">0.12.0</a> - 2020-02-28</h2>
822867
<h3 id="changed">Changed</h3>
823868
<ul>
@@ -831,7 +876,7 @@ <h3 id="fixed">Fixed</h3>
831876
<li>Remove warning when last line is empty (#238 by <a href="https://github.com/bbc2">@bbc2</a>).</li>
832877
</ul>
833878
<h2 id="0110-2020-02-07"><a href="https://github.com/theskumar/python-dotenv/compare/v0.10.5...v0.11.0">0.11.0</a> - 2020-02-07</h2>
834-
<h3 id="added">Added</h3>
879+
<h3 id="added_1">Added</h3>
835880
<ul>
836881
<li>Add <code>interpolate</code> argument to <code>load_dotenv</code> and <code>dotenv_values</code> to disable interpolation
837882
(#232 by <a href="https://github.com/ulyssessouza">@ulyssessouza</a>).</li>
@@ -854,7 +899,7 @@ <h3 id="fixed_2">Fixed</h3>
854899
<li>Fix handling of lines with just a comment (#224 by <a href="https://github.com/bbc2">@bbc2</a>).</li>
855900
</ul>
856901
<h2 id="0104-2020-01-17"><a href="https://github.com/theskumar/python-dotenv/compare/v0.10.3...v0.10.4">0.10.4</a> - 2020-01-17</h2>
857-
<h3 id="added_1">Added</h3>
902+
<h3 id="added_2">Added</h3>
858903
<ul>
859904
<li>Make typing optional (#179 by <a href="https://github.com/techalchemy">@techalchemy</a>).</li>
860905
<li>Print a warning on malformed line (#211 by <a href="https://github.com/bbc2">@bbc2</a>).</li>

index.html

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -544,16 +544,20 @@ <h2 id="usages">Usages</h2>
544544
</code></pre></div>
545545

546546

547-
<p><code>.env</code> can interpolate variables using POSIX variable expansion,
548-
variables are replaced from the environment first or from other values
549-
in the <code>.env</code> file if the variable is not present in the environment.
550-
Ensure that variables are surrounded with <code>{}</code> like <code>${HOME}</code> as bare
551-
variables such as <code>$HOME</code> are not expanded.
552-
(<strong>Note</strong>: Default Value Expansion is not supported as of yet, see
553-
<a href="https://github.com/theskumar/python-dotenv/pull/30#issuecomment-244036604">#30</a>.)</p>
547+
<p>Python-dotenv can interpolate variables using POSIX variable expansion.</p>
548+
<p>The value of a variable is the first of the values defined in the following list:</p>
549+
<ul>
550+
<li>Value of that variable in the environment.</li>
551+
<li>Value of that variable in the <code>.env</code> file.</li>
552+
<li>Default value, if provided.</li>
553+
<li>Empty string.</li>
554+
</ul>
555+
<p>Ensure that variables are surrounded with <code>{}</code> like <code>${HOME}</code> as bare
556+
variables such as <code>$HOME</code> are not expanded.</p>
554557
<div class="codehilite"><pre><span></span><code><span class="nv">CONFIG_PATH</span><span class="o">=</span><span class="si">${</span><span class="nv">HOME</span><span class="si">}</span>/.config/foo
555558
<span class="nv">DOMAIN</span><span class="o">=</span>example.org
556559
<span class="nv">EMAIL</span><span class="o">=</span>admin@<span class="si">${</span><span class="nv">DOMAIN</span><span class="si">}</span>
560+
<span class="nv">DEBUG</span><span class="o">=</span><span class="si">${</span><span class="nv">DEBUG</span><span class="k">:-</span><span class="nv">false</span><span class="si">}</span>
557561
</code></pre></div>
558562

559563

reference/dotenv/index.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -658,6 +658,8 @@ <h3 id="find_dotenv">find_dotenv</h3>
658658

659659
<span class="s1"> while frame.f_code.co_filename == current_file:</span>
660660

661+
<span class="s1"> assert frame.f_back is not None</span>
662+
661663
<span class="s1"> frame = frame.f_back</span>
662664

663665
<span class="s1"> frame_filename = frame.f_code.co_filename</span>

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
bumpversion
22
typing; python_version<"3.5"
3-
click==7.0
3+
click
44
flake8>=2.2.3
55
ipython
66
mock

search/search_index.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

setup.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[bumpversion]
2-
current_version = 0.12.0
2+
current_version = 0.13.0
33
commit = True
44
tag = True
55

sitemap.xml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"><url>
33
<loc>None</loc>
4-
<lastmod>2020-04-12</lastmod>
4+
<lastmod>2020-04-28</lastmod>
55
<changefreq>daily</changefreq>
66
</url><url>
77
<loc>None</loc>
8-
<lastmod>2020-04-12</lastmod>
8+
<lastmod>2020-04-28</lastmod>
99
<changefreq>daily</changefreq>
1010
</url><url>
1111
<loc>None</loc>
12-
<lastmod>2020-04-12</lastmod>
12+
<lastmod>2020-04-28</lastmod>
1313
<changefreq>daily</changefreq>
1414
</url><url>
1515
<loc>None</loc>
16-
<lastmod>2020-04-12</lastmod>
16+
<lastmod>2020-04-28</lastmod>
1717
<changefreq>daily</changefreq>
1818
</url>
1919
</urlset>

sitemap.xml.gz

0 Bytes
Binary file not shown.

tox.ini

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ deps =
77
pytest
88
coverage
99
sh
10-
click==7.0
10+
click
1111
py{27,py}: ipython<6.0.0
1212
py34{,-no-typing}: ipython<7.0.0
1313
py{35,36,37,38,py3}: ipython
@@ -22,7 +22,7 @@ commands =
2222
skip_install = true
2323
deps =
2424
flake8
25-
mypy==0.761
25+
mypy
2626
commands =
2727
flake8 src tests
2828
mypy --python-version=3.8 src tests

0 commit comments

Comments
 (0)