Skip to content

Commit

Permalink
Release v0.15.2
Browse files Browse the repository at this point in the history
  • Loading branch information
clayote committed Jul 4, 2024
1 parent 62c5e57 commit 48483c3
Show file tree
Hide file tree
Showing 42 changed files with 6,757 additions and 3,672 deletions.
8 changes: 8 additions & 0 deletions CHANGES.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
== 0.15.2 | 2024-07-05 ==
* Crash fixes involving time travel
* Speed up interbranch time travel somewhat
* Switch to ruff formatter

== 0.15.1 | 2024-06-24 ==
* Fix another concurrency issue

== 0.15.0 | 2024-06-18 ==
* Automatically unload history, thus minimizing memory usage for long games
By default, this happens whenever you commit changes to the database.
Expand Down
2 changes: 1 addition & 1 deletion LiSE/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ include-package-data=true

[project]
name = "LiSE"
version = "0.15.1"
version = "0.15.2"
authors = [
{ name="Zachary Spector", email="[email protected]" },
]
Expand Down
Binary file modified docs/.doctrees/ELiDE/index.doctree
Binary file not shown.
Binary file modified docs/.doctrees/LiSE/design.doctree
Binary file not shown.
Binary file modified docs/.doctrees/LiSE/index.doctree
Binary file not shown.
Binary file modified docs/.doctrees/environment.pickle
Binary file not shown.
Binary file modified docs/.doctrees/index.doctree
Binary file not shown.
Binary file modified docs/.doctrees/manual.doctree
Binary file not shown.
21 changes: 19 additions & 2 deletions docs/LiSE/design.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
<script src="../_static/sphinx_highlight.js?v=dc90522c"></script>
<link rel="index" title="Index" href="../genindex.html" />
<link rel="search" title="Search" href="../search.html" />
<link rel="next" title="engine" href="index.html" />
<link rel="prev" title="Introduction" href="../manual.html" />

<link rel="stylesheet" href="../_static/custom.css" type="text/css" />

Expand Down Expand Up @@ -115,16 +117,31 @@ <h1 class="logo"><a href="../index.html">LiSE</a></h1>

<h3>Navigation</h3>
<p class="caption" role="heading"><span class="caption-text">Contents:</span></p>
<ul>
<ul class="current">
<li class="toctree-l1"><a class="reference internal" href="../manual.html">Introduction</a></li>
<li class="toctree-l1"><a class="reference internal" href="index.html">LiSE</a></li>
<li class="toctree-l1 current"><a class="current reference internal" href="#">Design</a><ul>
<li class="toctree-l2"><a class="reference internal" href="#requirements">Requirements</a></li>
<li class="toctree-l2"><a class="reference internal" href="#caching-world-state">Caching world state</a></li>
<li class="toctree-l2"><a class="reference internal" href="#deltas">Deltas</a></li>
<li class="toctree-l2"><a class="reference internal" href="#rules-engine">Rules engine</a></li>
</ul>
</li>
<li class="toctree-l1"><a class="reference internal" href="index.html">engine</a></li>
<li class="toctree-l1"><a class="reference internal" href="index.html#module-LiSE.character">character</a></li>
<li class="toctree-l1"><a class="reference internal" href="index.html#module-LiSE.node">node</a></li>
<li class="toctree-l1"><a class="reference internal" href="index.html#module-LiSE.portal">portal</a></li>
<li class="toctree-l1"><a class="reference internal" href="index.html#module-LiSE.rule">rule</a></li>
<li class="toctree-l1"><a class="reference internal" href="index.html#module-LiSE.query">query</a></li>
<li class="toctree-l1"><a class="reference internal" href="index.html#module-LiSE.xcollections">xcollections</a></li>
<li class="toctree-l1"><a class="reference internal" href="../ELiDE/index.html">ELiDE</a></li>
</ul>

<div class="relations">
<h3>Related Topics</h3>
<ul>
<li><a href="../index.html">Documentation overview</a><ul>
<li>Previous: <a href="../manual.html" title="previous chapter">Introduction</a></li>
<li>Next: <a href="index.html" title="next chapter">engine</a></li>
</ul></li>
</ul>
</div>
Expand Down
23 changes: 13 additions & 10 deletions docs/LiSE/index.html

Large diffs are not rendered by default.

466 changes: 286 additions & 180 deletions docs/_modules/ELiDE/app.html

Large diffs are not rendered by default.

691 changes: 453 additions & 238 deletions docs/_modules/ELiDE/card.html

Large diffs are not rendered by default.

179 changes: 121 additions & 58 deletions docs/_modules/ELiDE/charmenu.html

Large diffs are not rendered by default.

75 changes: 49 additions & 26 deletions docs/_modules/ELiDE/charsview.html

Large diffs are not rendered by default.

237 changes: 152 additions & 85 deletions docs/_modules/ELiDE/dialog.html

Large diffs are not rendered by default.

71 changes: 49 additions & 22 deletions docs/_modules/ELiDE/dummy.html
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@

<!DOCTYPE html>

<html lang="en">
<html lang="en" data-content_root="../../">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>ELiDE.dummy &#8212; LiSE 0.14.0a documentation</title>
<link rel="stylesheet" type="text/css" href="../../_static/pygments.css" />
<link rel="stylesheet" type="text/css" href="../../_static/alabaster.css" />
<script data-url_root="../../" id="documentation_options" src="../../_static/documentation_options.js"></script>
<script src="../../_static/doctools.js"></script>
<script src="../../_static/sphinx_highlight.js"></script>
<link rel="stylesheet" type="text/css" href="../../_static/pygments.css?v=fa44fd50" />
<link rel="stylesheet" type="text/css" href="../../_static/alabaster.css?v=12dfc556" />
<script src="../../_static/documentation_options.js?v=fbc7b204"></script>
<script src="../../_static/doctools.js?v=9a2dae69"></script>
<script src="../../_static/sphinx_highlight.js?v=dc90522c"></script>
<link rel="index" title="Index" href="../../genindex.html" />
<link rel="search" title="Search" href="../../search.html" />

<link rel="stylesheet" href="../../_static/custom.css" type="text/css" />




<meta name="viewport" content="width=device-width, initial-scale=0.9, maximum-scale=0.9" />

</head><body>

Expand All @@ -44,8 +44,12 @@ <h1>Source code for ELiDE.dummy</h1><div class="highlight"><pre>
<span class="c1">#</span>
<span class="c1"># You should have received a copy of the GNU Affero General Public License</span>
<span class="c1"># along with this program. If not, see &lt;https://www.gnu.org/licenses/&gt;.</span>
<span class="kn">from</span> <span class="nn">kivy.properties</span> <span class="kn">import</span> <span class="p">(</span><span class="n">NumericProperty</span><span class="p">,</span> <span class="n">ObjectProperty</span><span class="p">,</span>
<span class="n">ReferenceListProperty</span><span class="p">,</span> <span class="n">StringProperty</span><span class="p">)</span>
<span class="kn">from</span> <span class="nn">kivy.properties</span> <span class="kn">import</span> <span class="p">(</span>
<span class="n">NumericProperty</span><span class="p">,</span>
<span class="n">ObjectProperty</span><span class="p">,</span>
<span class="n">ReferenceListProperty</span><span class="p">,</span>
<span class="n">StringProperty</span><span class="p">,</span>
<span class="p">)</span>
<span class="kn">from</span> <span class="nn">kivy.lang</span> <span class="kn">import</span> <span class="n">Builder</span>
<span class="kn">from</span> <span class="nn">kivy.logger</span> <span class="kn">import</span> <span class="n">Logger</span>

Expand All @@ -54,11 +58,14 @@ <h1>Source code for ELiDE.dummy</h1><div class="highlight"><pre>
<span class="kn">from</span> <span class="nn">.</span> <span class="kn">import</span> <span class="n">menu</span> <span class="c1"># for kv</span>


<div class="viewcode-block" id="Dummy"><a class="viewcode-back" href="../../ELiDE/index.html#ELiDE.dummy.Dummy">[docs]</a><span class="k">class</span> <span class="nc">Dummy</span><span class="p">(</span><span class="n">ImageStack</span><span class="p">):</span>
<div class="viewcode-block" id="Dummy">
<a class="viewcode-back" href="../../ELiDE/index.html#ELiDE.dummy.Dummy">[docs]</a>
<span class="k">class</span> <span class="nc">Dummy</span><span class="p">(</span><span class="n">ImageStack</span><span class="p">):</span>
<span class="w"> </span><span class="sd">&quot;&quot;&quot;A widget that looks like the ones on the graph, which, when dragged</span>
<span class="sd"> onto the graph, creates one of them.</span>

<span class="sd"> &quot;&quot;&quot;</span>

<span class="n">_touch</span> <span class="o">=</span> <span class="n">ObjectProperty</span><span class="p">(</span><span class="kc">None</span><span class="p">,</span> <span class="n">allownone</span><span class="o">=</span><span class="kc">True</span><span class="p">)</span>
<span class="n">name</span> <span class="o">=</span> <span class="n">StringProperty</span><span class="p">()</span>
<span class="n">prefix</span> <span class="o">=</span> <span class="n">StringProperty</span><span class="p">()</span>
Expand All @@ -78,11 +85,16 @@ <h1>Source code for ELiDE.dummy</h1><div class="highlight"><pre>
<span class="n">right_up</span> <span class="o">=</span> <span class="n">NumericProperty</span><span class="p">(</span><span class="mi">0</span><span class="p">)</span>
<span class="n">top_up</span> <span class="o">=</span> <span class="n">NumericProperty</span><span class="p">(</span><span class="mi">0</span><span class="p">)</span>

<div class="viewcode-block" id="Dummy.on_paths"><a class="viewcode-back" href="../../ELiDE/index.html#ELiDE.dummy.Dummy.on_paths">[docs]</a> <span class="k">def</span> <span class="nf">on_paths</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="o">*</span><span class="n">args</span><span class="p">,</span> <span class="o">**</span><span class="n">kwargs</span><span class="p">):</span>
<div class="viewcode-block" id="Dummy.on_paths">
<a class="viewcode-back" href="../../ELiDE/index.html#ELiDE.dummy.Dummy.on_paths">[docs]</a>
<span class="k">def</span> <span class="nf">on_paths</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="o">*</span><span class="n">args</span><span class="p">,</span> <span class="o">**</span><span class="n">kwargs</span><span class="p">):</span>
<span class="nb">super</span><span class="p">()</span><span class="o">.</span><span class="n">on_paths</span><span class="p">(</span><span class="o">*</span><span class="n">args</span><span class="p">,</span> <span class="o">**</span><span class="n">kwargs</span><span class="p">)</span>
<span class="n">Logger</span><span class="o">.</span><span class="n">debug</span><span class="p">(</span><span class="s2">&quot;Dummy: </span><span class="si">{}</span><span class="s2"> got paths </span><span class="si">{}</span><span class="s2">&quot;</span><span class="o">.</span><span class="n">format</span><span class="p">(</span><span class="bp">self</span><span class="o">.</span><span class="n">name</span><span class="p">,</span> <span class="bp">self</span><span class="o">.</span><span class="n">paths</span><span class="p">))</span></div>

<div class="viewcode-block" id="Dummy.on_touch_down"><a class="viewcode-back" href="../../ELiDE/index.html#ELiDE.dummy.Dummy.on_touch_down">[docs]</a> <span class="k">def</span> <span class="nf">on_touch_down</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">touch</span><span class="p">):</span>

<div class="viewcode-block" id="Dummy.on_touch_down">
<a class="viewcode-back" href="../../ELiDE/index.html#ELiDE.dummy.Dummy.on_touch_down">[docs]</a>
<span class="k">def</span> <span class="nf">on_touch_down</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">touch</span><span class="p">):</span>
<span class="w"> </span><span class="sd">&quot;&quot;&quot;If hit, record my starting position, that I may return to it in</span>
<span class="sd"> ``on_touch_up`` after creating a real :class:`graph.Spot` or</span>
<span class="sd"> :class:`graph.Pawn` instance.</span>
Expand All @@ -96,14 +108,20 @@ <h1>Source code for ELiDE.dummy</h1><div class="highlight"><pre>
<span class="bp">self</span><span class="o">.</span><span class="n">_touch</span> <span class="o">=</span> <span class="n">touch</span>
<span class="k">return</span> <span class="kc">True</span></div>

<div class="viewcode-block" id="Dummy.on_touch_move"><a class="viewcode-back" href="../../ELiDE/index.html#ELiDE.dummy.Dummy.on_touch_move">[docs]</a> <span class="k">def</span> <span class="nf">on_touch_move</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">touch</span><span class="p">):</span>

<div class="viewcode-block" id="Dummy.on_touch_move">
<a class="viewcode-back" href="../../ELiDE/index.html#ELiDE.dummy.Dummy.on_touch_move">[docs]</a>
<span class="k">def</span> <span class="nf">on_touch_move</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">touch</span><span class="p">):</span>
<span class="w"> </span><span class="sd">&quot;&quot;&quot;Follow the touch&quot;&quot;&quot;</span>
<span class="k">if</span> <span class="n">touch</span> <span class="ow">is</span> <span class="ow">not</span> <span class="bp">self</span><span class="o">.</span><span class="n">_touch</span><span class="p">:</span>
<span class="k">return</span> <span class="kc">False</span>
<span class="bp">self</span><span class="o">.</span><span class="n">pos</span> <span class="o">=</span> <span class="p">(</span><span class="n">touch</span><span class="o">.</span><span class="n">x</span> <span class="o">+</span> <span class="bp">self</span><span class="o">.</span><span class="n">x_down</span><span class="p">,</span> <span class="n">touch</span><span class="o">.</span><span class="n">y</span> <span class="o">+</span> <span class="bp">self</span><span class="o">.</span><span class="n">y_down</span><span class="p">)</span>
<span class="k">return</span> <span class="kc">True</span></div>

<div class="viewcode-block" id="Dummy.on_touch_up"><a class="viewcode-back" href="../../ELiDE/index.html#ELiDE.dummy.Dummy.on_touch_up">[docs]</a> <span class="k">def</span> <span class="nf">on_touch_up</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">touch</span><span class="p">):</span>

<div class="viewcode-block" id="Dummy.on_touch_up">
<a class="viewcode-back" href="../../ELiDE/index.html#ELiDE.dummy.Dummy.on_touch_up">[docs]</a>
<span class="k">def</span> <span class="nf">on_touch_up</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">touch</span><span class="p">):</span>
<span class="w"> </span><span class="sd">&quot;&quot;&quot;Return to ``pos_start``, but first, save my current ``pos`` into</span>
<span class="sd"> ``pos_up``, so that the layout knows where to put the real</span>
<span class="sd"> :class:`graph.Spot` or :class:`graph.Pawn` instance.</span>
Expand All @@ -114,7 +132,9 @@ <h1>Source code for ELiDE.dummy</h1><div class="highlight"><pre>
<span class="bp">self</span><span class="o">.</span><span class="n">pos_up</span> <span class="o">=</span> <span class="bp">self</span><span class="o">.</span><span class="n">pos</span>
<span class="bp">self</span><span class="o">.</span><span class="n">pos</span> <span class="o">=</span> <span class="bp">self</span><span class="o">.</span><span class="n">pos_start</span>
<span class="bp">self</span><span class="o">.</span><span class="n">_touch</span> <span class="o">=</span> <span class="kc">None</span>
<span class="k">return</span> <span class="kc">True</span></div></div>
<span class="k">return</span> <span class="kc">True</span></div>
</div>



<span class="n">kv</span> <span class="o">=</span> <span class="s2">&quot;&quot;&quot;</span>
Expand Down Expand Up @@ -147,7 +167,14 @@ <h3>Navigation</h3>
<p class="caption" role="heading"><span class="caption-text">Contents:</span></p>
<ul>
<li class="toctree-l1"><a class="reference internal" href="../../manual.html">Introduction</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../LiSE/index.html">LiSE</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../LiSE/design.html">Design</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../LiSE/index.html">engine</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../LiSE/index.html#module-LiSE.character">character</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../LiSE/index.html#module-LiSE.node">node</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../LiSE/index.html#module-LiSE.portal">portal</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../LiSE/index.html#module-LiSE.rule">rule</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../LiSE/index.html#module-LiSE.query">query</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../LiSE/index.html#module-LiSE.xcollections">xcollections</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../ELiDE/index.html">ELiDE</a></li>
</ul>

Expand All @@ -160,15 +187,15 @@ <h3>Related Topics</h3>
</ul></li>
</ul>
</div>
<div id="searchbox" style="display: none" role="search">
<search id="searchbox" style="display: none" role="search">
<h3 id="searchlabel">Quick search</h3>
<div class="searchformwrapper">
<form class="search" action="../../search.html" method="get">
<input type="text" name="q" aria-labelledby="searchlabel" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false"/>
<input type="submit" value="Go" />
</form>
</div>
</div>
</search>
<script>document.getElementById('searchbox').style.display = "block"</script>


Expand All @@ -183,11 +210,11 @@ <h3 id="searchlabel">Quick search</h3>
<div class="clearer"></div>
</div>
<div class="footer">
&copy;Zachary Spector.
&#169;Zachary Spector.

|
Powered by <a href="http://sphinx-doc.org/">Sphinx 6.1.3</a>
&amp; <a href="https://github.com/bitprophet/alabaster">Alabaster 0.7.12</a>
Powered by <a href="https://www.sphinx-doc.org/">Sphinx 7.3.7</a>
&amp; <a href="https://alabaster.readthedocs.io">Alabaster 0.7.16</a>

</div>

Expand Down
Loading

0 comments on commit 48483c3

Please sign in to comment.