Skip to content

Commit

Permalink
Merge pull request #31 from IBM/v0.5.3.1b
Browse files Browse the repository at this point in the history
V0.5.3.1
  • Loading branch information
victorterpstra authored Dec 30, 2021
2 parents 0b2bbac + 5c68132 commit 9ba6b6f
Show file tree
Hide file tree
Showing 21 changed files with 51 additions and 44 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [0.5.3.1] - 2021-12-30
### Changed
- (critical) ScenarioDbManager - Replaced OrderedDict with Dict as type. Was causing a syntax error.

## [0.5.3.0] - 2021-12-30
### Changed
- ScenarioDbManager - refactoring, cleanup and documentation
Expand Down
7 changes: 3 additions & 4 deletions VersioningReadMe.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,9 @@ Note that if you added/removed modules, you first need to re-run the sphinx comm
`sphinx-apidoc -f -o source/ ../dse_do_utils/`

3. For PyPI, build the wheel file.
a. Delete all files in `./dist`
b. Open Terminal, from root, run <br>
`cd ..
4. `
a. Delete all files in `./dist`
b. Open Terminal, from root, run <br>
`python setup.py sdist bdist_wheel`

5. Upload to PyPI (from PyCharm terminal run):<br>
`twine upload dist/* --verbose`
Expand Down
Binary file modified docs/doc_build/doctrees/dse_do_utils.doctree
Binary file not shown.
Binary file modified docs/doc_build/doctrees/environment.pickle
Binary file not shown.
2 changes: 1 addition & 1 deletion docs/doc_build/html/.buildinfo
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Sphinx build info version 1
# This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done.
config: 817acda8ad4a4dba21b1d70b0d0f1a83
config: effd2c6945fa34906f8d2c06e4196c89
tags: 645f666f9bcd5a90fca523b33c5a78b7
6 changes: 3 additions & 3 deletions docs/doc_build/html/_modules/dse_do_utils/plotlymanager.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>dse_do_utils.plotlymanager &#8212; DSE DO Utils 0.5.3.0 documentation</title>
<title>dse_do_utils.plotlymanager &#8212; DSE DO Utils 0.5.3.1 documentation</title>
<link rel="stylesheet" type="text/css" href="../../_static/pygments.css" />
<link rel="stylesheet" type="text/css" href="../../_static/bizstyle.css" />

Expand All @@ -31,7 +31,7 @@ <h3>Navigation</h3>
<li class="right" >
<a href="../../py-modindex.html" title="Python Module Index"
>modules</a> |</li>
<li class="nav-item nav-item-0"><a href="../../index.html">DSE DO Utils 0.5.3.0 documentation</a> &#187;</li>
<li class="nav-item nav-item-0"><a href="../../index.html">DSE DO Utils 0.5.3.1 documentation</a> &#187;</li>
<li class="nav-item nav-item-1"><a href="../index.html" >Module code</a> &#187;</li>
<li class="nav-item nav-item-2"><a href="../dse_do_utils.html" accesskey="U">dse_do_utils</a> &#187;</li>
<li class="nav-item nav-item-this"><a href="">dse_do_utils.plotlymanager</a></li>
Expand Down Expand Up @@ -118,7 +118,7 @@ <h3>Navigation</h3>
<li class="right" >
<a href="../../py-modindex.html" title="Python Module Index"
>modules</a> |</li>
<li class="nav-item nav-item-0"><a href="../../index.html">DSE DO Utils 0.5.3.0 documentation</a> &#187;</li>
<li class="nav-item nav-item-0"><a href="../../index.html">DSE DO Utils 0.5.3.1 documentation</a> &#187;</li>
<li class="nav-item nav-item-1"><a href="../index.html" >Module code</a> &#187;</li>
<li class="nav-item nav-item-2"><a href="../dse_do_utils.html" >dse_do_utils</a> &#187;</li>
<li class="nav-item nav-item-this"><a href="">dse_do_utils.plotlymanager</a></li>
Expand Down
12 changes: 7 additions & 5 deletions docs/doc_build/html/_modules/dse_do_utils/scenariodbmanager.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>dse_do_utils.scenariodbmanager &#8212; DSE DO Utils 0.5.3.0 documentation</title>
<title>dse_do_utils.scenariodbmanager &#8212; DSE DO Utils 0.5.3.1 documentation</title>
<link rel="stylesheet" type="text/css" href="../../_static/pygments.css" />
<link rel="stylesheet" type="text/css" href="../../_static/bizstyle.css" />

Expand All @@ -31,7 +31,7 @@ <h3>Navigation</h3>
<li class="right" >
<a href="../../py-modindex.html" title="Python Module Index"
>modules</a> |</li>
<li class="nav-item nav-item-0"><a href="../../index.html">DSE DO Utils 0.5.3.0 documentation</a> &#187;</li>
<li class="nav-item nav-item-0"><a href="../../index.html">DSE DO Utils 0.5.3.1 documentation</a> &#187;</li>
<li class="nav-item nav-item-1"><a href="../index.html" >Module code</a> &#187;</li>
<li class="nav-item nav-item-2"><a href="../dse_do_utils.html" accesskey="U">dse_do_utils</a> &#187;</li>
<li class="nav-item nav-item-this"><a href="">dse_do_utils.scenariodbmanager</a></li>
Expand Down Expand Up @@ -255,7 +255,7 @@ <h1>Source code for dse_do_utils.scenariodbmanager</h1><div class="highlight"><p
<span class="sd"> TODO: documentation!</span>
<span class="sd"> &quot;&quot;&quot;</span>

<span class="k">def</span> <span class="fm">__init__</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">input_db_tables</span><span class="p">:</span> <span class="n">OrderedDict</span><span class="p">[</span><span class="nb">str</span><span class="p">,</span> <span class="n">ScenarioDbTable</span><span class="p">],</span> <span class="n">output_db_tables</span><span class="p">:</span> <span class="n">OrderedDict</span><span class="p">[</span><span class="nb">str</span><span class="p">,</span> <span class="n">ScenarioDbTable</span><span class="p">],</span>
<span class="k">def</span> <span class="fm">__init__</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">input_db_tables</span><span class="p">:</span> <span class="n">Dict</span><span class="p">[</span><span class="nb">str</span><span class="p">,</span> <span class="n">ScenarioDbTable</span><span class="p">],</span> <span class="n">output_db_tables</span><span class="p">:</span> <span class="n">Dict</span><span class="p">[</span><span class="nb">str</span><span class="p">,</span> <span class="n">ScenarioDbTable</span><span class="p">],</span>
<span class="n">credentials</span><span class="o">=</span><span class="kc">None</span><span class="p">,</span> <span class="n">schema</span><span class="p">:</span> <span class="nb">str</span> <span class="o">=</span> <span class="kc">None</span><span class="p">,</span> <span class="n">echo</span><span class="p">:</span> <span class="nb">bool</span> <span class="o">=</span> <span class="kc">False</span><span class="p">,</span> <span class="n">multi_scenario</span><span class="p">:</span> <span class="nb">bool</span> <span class="o">=</span> <span class="kc">True</span><span class="p">,</span>
<span class="n">enable_transactions</span><span class="p">:</span> <span class="nb">bool</span> <span class="o">=</span> <span class="kc">True</span><span class="p">,</span> <span class="n">enable_sqlite_fk</span><span class="p">:</span> <span class="nb">bool</span> <span class="o">=</span> <span class="kc">True</span><span class="p">):</span>
<span class="sd">&quot;&quot;&quot;Create a ScenarioDbManager.</span>
Expand All @@ -269,6 +269,7 @@ <h1>Source code for dse_do_utils.scenariodbmanager</h1><div class="highlight"><p
<span class="sd"> :param enable_transactions: If true, uses transactions</span>
<span class="sd"> :param enable_sqlite_fk: If True, enables FK constraint checks in SQLite</span>
<span class="sd"> &quot;&quot;&quot;</span>
<span class="c1"># WARNING: do NOT use &#39;OrderedDict[str, ScenarioDbTable]&#39; as type. OrderedDict is not subscriptable. Will cause a syntax error.</span>
<span class="bp">self</span><span class="o">.</span><span class="n">schema</span> <span class="o">=</span> <span class="n">schema</span>
<span class="bp">self</span><span class="o">.</span><span class="n">multi_scenario</span> <span class="o">=</span> <span class="n">multi_scenario</span> <span class="c1"># If true, will add a primary key &#39;scenario_name&#39; to each table</span>
<span class="bp">self</span><span class="o">.</span><span class="n">enable_transactions</span> <span class="o">=</span> <span class="n">enable_transactions</span>
Expand All @@ -288,9 +289,10 @@ <h1>Source code for dse_do_utils.scenariodbmanager</h1><div class="highlight"><p
<span class="c1"># Initialization. Called from constructor.</span>
<span class="c1">############################################################################################</span>

<span class="k">def</span> <span class="nf">_add_scenario_db_table</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">input_db_tables</span><span class="p">:</span> <span class="n">OrderedDict</span><span class="p">[</span><span class="nb">str</span><span class="p">,</span> <span class="n">ScenarioDbTable</span><span class="p">])</span> <span class="o">-&gt;</span> <span class="n">OrderedDict</span><span class="p">[</span><span class="nb">str</span><span class="p">,</span> <span class="n">ScenarioDbTable</span><span class="p">]:</span>
<span class="k">def</span> <span class="nf">_add_scenario_db_table</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">input_db_tables</span><span class="p">:</span> <span class="n">Dict</span><span class="p">[</span><span class="nb">str</span><span class="p">,</span> <span class="n">ScenarioDbTable</span><span class="p">])</span> <span class="o">-&gt;</span> <span class="n">Dict</span><span class="p">[</span><span class="nb">str</span><span class="p">,</span> <span class="n">ScenarioDbTable</span><span class="p">]:</span>
<span class="sd">&quot;&quot;&quot;Adds a Scenario table as the first in the OrderedDict (if it doesn&#39;t already exist).</span>
<span class="sd"> Called from constructor.&quot;&quot;&quot;</span>
<span class="c1"># WARNING: do NOT use &#39;OrderedDict[str, ScenarioDbTable]&#39; as type. OrderedDict is not subscriptable. Will cause a syntax error.</span>
<span class="k">if</span> <span class="bp">self</span><span class="o">.</span><span class="n">multi_scenario</span><span class="p">:</span>
<span class="k">if</span> <span class="s1">&#39;Scenario&#39;</span> <span class="ow">not</span> <span class="ow">in</span> <span class="n">input_db_tables</span><span class="o">.</span><span class="n">keys</span><span class="p">():</span>
<span class="n">input_db_tables</span><span class="o">.</span><span class="n">update</span><span class="p">({</span><span class="s1">&#39;Scenario&#39;</span><span class="p">:</span> <span class="n">ScenarioTable</span><span class="p">()})</span>
Expand Down Expand Up @@ -1061,7 +1063,7 @@ <h3>Navigation</h3>
<li class="right" >
<a href="../../py-modindex.html" title="Python Module Index"
>modules</a> |</li>
<li class="nav-item nav-item-0"><a href="../../index.html">DSE DO Utils 0.5.3.0 documentation</a> &#187;</li>
<li class="nav-item nav-item-0"><a href="../../index.html">DSE DO Utils 0.5.3.1 documentation</a> &#187;</li>
<li class="nav-item nav-item-1"><a href="../index.html" >Module code</a> &#187;</li>
<li class="nav-item nav-item-2"><a href="../dse_do_utils.html" >dse_do_utils</a> &#187;</li>
<li class="nav-item nav-item-this"><a href="">dse_do_utils.scenariodbmanager</a></li>
Expand Down
6 changes: 3 additions & 3 deletions docs/doc_build/html/_modules/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Overview: module code &#8212; DSE DO Utils 0.5.3.0 documentation</title>
<title>Overview: module code &#8212; DSE DO Utils 0.5.3.1 documentation</title>
<link rel="stylesheet" type="text/css" href="../_static/pygments.css" />
<link rel="stylesheet" type="text/css" href="../_static/bizstyle.css" />

Expand All @@ -31,7 +31,7 @@ <h3>Navigation</h3>
<li class="right" >
<a href="../py-modindex.html" title="Python Module Index"
>modules</a> |</li>
<li class="nav-item nav-item-0"><a href="../index.html">DSE DO Utils 0.5.3.0 documentation</a> &#187;</li>
<li class="nav-item nav-item-0"><a href="../index.html">DSE DO Utils 0.5.3.1 documentation</a> &#187;</li>
<li class="nav-item nav-item-this"><a href="">Overview: module code</a></li>
</ul>
</div>
Expand Down Expand Up @@ -87,7 +87,7 @@ <h3>Navigation</h3>
<li class="right" >
<a href="../py-modindex.html" title="Python Module Index"
>modules</a> |</li>
<li class="nav-item nav-item-0"><a href="../index.html">DSE DO Utils 0.5.3.0 documentation</a> &#187;</li>
<li class="nav-item nav-item-0"><a href="../index.html">DSE DO Utils 0.5.3.1 documentation</a> &#187;</li>
<li class="nav-item nav-item-this"><a href="">Overview: module code</a></li>
</ul>
</div>
Expand Down
2 changes: 1 addition & 1 deletion docs/doc_build/html/_static/bizstyle.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,6 @@ $(window).resize(function(){
$("li.nav-item-0 a").text("Top");
}
else {
$("li.nav-item-0 a").text("DSE DO Utils 0.5.3.0 documentation");
$("li.nav-item-0 a").text("DSE DO Utils 0.5.3.1 documentation");
}
});
2 changes: 1 addition & 1 deletion docs/doc_build/html/_static/documentation_options.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
var DOCUMENTATION_OPTIONS = {
URL_ROOT: document.getElementById("documentation_options").getAttribute('data-url_root'),
VERSION: '0.5.3.0',
VERSION: '0.5.3.1',
LANGUAGE: 'None',
COLLAPSE_INDEX: false,
BUILDER: 'html',
Expand Down
Loading

0 comments on commit 9ba6b6f

Please sign in to comment.