Skip to content

Commit

Permalink
Deployed dc2894e with MkDocs version: 1.2.4
Browse files Browse the repository at this point in the history
  • Loading branch information
xuhcc committed Dec 1, 2024
1 parent 72919ba commit 401ebb5
Show file tree
Hide file tree
Showing 9 changed files with 105 additions and 73 deletions.
10 changes: 5 additions & 5 deletions api_reference/beancount.core.html
Original file line number Diff line number Diff line change
Expand Up @@ -3225,7 +3225,7 @@ <h4 id="beancount.core.amount.Amount.from_string" class="doc doc-heading">


<h4 id="beancount.core.amount.Amount.to_string" class="doc doc-heading">
<code class="highlight language-python">beancount.core.amount.Amount.to_string(self, dformat=&lt;beancount.core.display_context.DisplayFormatter object at 0x72972d9a3380&gt;)</code>
<code class="highlight language-python">beancount.core.amount.Amount.to_string(self, dformat=&lt;beancount.core.display_context.DisplayFormatter object at 0x755e1626f200&gt;)</code>


<a href="#beancount.core.amount.Amount.to_string" class="headerlink" title="Permanent link"></a></h4>
Expand Down Expand Up @@ -7622,7 +7622,7 @@ <h3 id="beancount.core.data.new_directive" class="doc doc-heading">
<th class="field-name">Returns:</th>
<td class="field-body">
<ul class="first simple">
<li><p><code>&lt;function NamedTuple at 0x72972db0d1c0&gt;</code> – A type object for the new directive type.</p></li>
<li><p><code>&lt;function NamedTuple at 0x755e163d51c0&gt;</code> – A type object for the new directive type.</p></li>
</ul>
</td>
</tr>
Expand Down Expand Up @@ -14009,7 +14009,7 @@ <h4 id="beancount.core.inventory.Inventory.segregate_units" class="doc doc-headi


<h4 id="beancount.core.inventory.Inventory.to_string" class="doc doc-heading">
<code class="highlight language-python">beancount.core.inventory.Inventory.to_string(self, dformat=&lt;beancount.core.display_context.DisplayFormatter object at 0x72972d9a3380&gt;, parens=True)</code>
<code class="highlight language-python">beancount.core.inventory.Inventory.to_string(self, dformat=&lt;beancount.core.display_context.DisplayFormatter object at 0x755e1626f200&gt;, parens=True)</code>


<a href="#beancount.core.inventory.Inventory.to_string" class="headerlink" title="Permanent link"></a></h4>
Expand Down Expand Up @@ -15847,7 +15847,7 @@ <h4 id="beancount.core.position.Position.sortkey" class="doc doc-heading">


<h4 id="beancount.core.position.Position.to_string" class="doc doc-heading">
<code class="highlight language-python">beancount.core.position.Position.to_string(self, dformat=&lt;beancount.core.display_context.DisplayFormatter object at 0x72972d9a3380&gt;, detail=True)</code>
<code class="highlight language-python">beancount.core.position.Position.to_string(self, dformat=&lt;beancount.core.display_context.DisplayFormatter object at 0x755e1626f200&gt;, detail=True)</code>


<a href="#beancount.core.position.Position.to_string" class="headerlink" title="Permanent link"></a></h4>
Expand Down Expand Up @@ -16254,7 +16254,7 @@ <h3 id="beancount.core.position.get_position" class="doc doc-heading">


<h3 id="beancount.core.position.to_string" class="doc doc-heading">
<code class="highlight language-python">beancount.core.position.to_string(pos, dformat=&lt;beancount.core.display_context.DisplayFormatter object at 0x72972d9a3380&gt;, detail=True)</code>
<code class="highlight language-python">beancount.core.position.to_string(pos, dformat=&lt;beancount.core.display_context.DisplayFormatter object at 0x755e1626f200&gt;, detail=True)</code>


<a href="#beancount.core.position.to_string" class="headerlink" title="Permanent link"></a></h3>
Expand Down
8 changes: 4 additions & 4 deletions api_reference/beancount.parser.html
Original file line number Diff line number Diff line change
Expand Up @@ -3785,7 +3785,7 @@ <h3 id="beancount.parser.cmptest.TestError" class="doc doc-heading">


<h3 id="beancount.parser.cmptest.assertEqualEntries" class="doc doc-heading">
<code class="highlight language-python">beancount.parser.cmptest.assertEqualEntries(expected_entries, actual_entries, failfunc=&lt;function fail at 0x72972cb64180&gt;, allow_incomplete=False)</code>
<code class="highlight language-python">beancount.parser.cmptest.assertEqualEntries(expected_entries, actual_entries, failfunc=&lt;function fail at 0x755e1567c180&gt;, allow_incomplete=False)</code>


<a href="#beancount.parser.cmptest.assertEqualEntries" class="headerlink" title="Permanent link"></a></h3>
Expand Down Expand Up @@ -3886,7 +3886,7 @@ <h3 id="beancount.parser.cmptest.assertEqualEntries" class="doc doc-heading">


<h3 id="beancount.parser.cmptest.assertExcludesEntries" class="doc doc-heading">
<code class="highlight language-python">beancount.parser.cmptest.assertExcludesEntries(subset_entries, entries, failfunc=&lt;function fail at 0x72972cb64180&gt;, allow_incomplete=False)</code>
<code class="highlight language-python">beancount.parser.cmptest.assertExcludesEntries(subset_entries, entries, failfunc=&lt;function fail at 0x755e1567c180&gt;, allow_incomplete=False)</code>


<a href="#beancount.parser.cmptest.assertExcludesEntries" class="headerlink" title="Permanent link"></a></h3>
Expand Down Expand Up @@ -3978,7 +3978,7 @@ <h3 id="beancount.parser.cmptest.assertExcludesEntries" class="doc doc-heading">


<h3 id="beancount.parser.cmptest.assertIncludesEntries" class="doc doc-heading">
<code class="highlight language-python">beancount.parser.cmptest.assertIncludesEntries(subset_entries, entries, failfunc=&lt;function fail at 0x72972cb64180&gt;, allow_incomplete=False)</code>
<code class="highlight language-python">beancount.parser.cmptest.assertIncludesEntries(subset_entries, entries, failfunc=&lt;function fail at 0x755e1567c180&gt;, allow_incomplete=False)</code>


<a href="#beancount.parser.cmptest.assertIncludesEntries" class="headerlink" title="Permanent link"></a></h3>
Expand Down Expand Up @@ -9662,7 +9662,7 @@ <h4 id="beancount.parser.options.OptGroup.__repr__" class="doc doc-heading">


<h3 id="beancount.parser.options.Opt" class="doc doc-heading">
<code class="highlight language-python">beancount.parser.options.Opt(name, default_value, example_value=&lt;object object at 0x72972dd793e0&gt;, converter=None, deprecated=False, alias=None)</code>
<code class="highlight language-python">beancount.parser.options.Opt(name, default_value, example_value=&lt;object object at 0x755e169893e0&gt;, converter=None, deprecated=False, alias=None)</code>


<a href="#beancount.parser.options.Opt" class="headerlink" title="Permanent link"></a></h3>
Expand Down
2 changes: 1 addition & 1 deletion api_reference/beancount.tools.html
Original file line number Diff line number Diff line change
Expand Up @@ -480,7 +480,7 @@ <h3 id="beancount.tools.treeify.create_tree" class="doc doc-heading">


<h3 id="beancount.tools.treeify.dump_tree" class="doc doc-heading">
<code class="highlight language-python">beancount.tools.treeify.dump_tree(node, file=&lt;_io.StringIO object at 0x72972ba25a80&gt;, prefix='')</code>
<code class="highlight language-python">beancount.tools.treeify.dump_tree(node, file=&lt;_io.StringIO object at 0x755e1425da80&gt;, prefix='')</code>


<a href="#beancount.tools.treeify.dump_tree" class="headerlink" title="Permanent link"></a></h3>
Expand Down
2 changes: 1 addition & 1 deletion api_reference/beancount.utils.html
Original file line number Diff line number Diff line change
Expand Up @@ -4422,7 +4422,7 @@ <h3 id="beancount.utils.misc_utils.import_curses" class="doc doc-heading">


<h3 id="beancount.utils.misc_utils.is_sorted" class="doc doc-heading">
<code class="highlight language-python">beancount.utils.misc_utils.is_sorted(iterable, key=&lt;function &lt;lambda&gt; at 0x72972d750a40&gt;, cmp=&lt;function &lt;lambda&gt; at 0x72972d750ae0&gt;)</code>
<code class="highlight language-python">beancount.utils.misc_utils.is_sorted(iterable, key=&lt;function &lt;lambda&gt; at 0x755e15ff8a40&gt;, cmp=&lt;function &lt;lambda&gt; at 0x755e15ff8ae0&gt;)</code>


<a href="#beancount.utils.misc_utils.is_sorted" class="headerlink" title="Permanent link"></a></h3>
Expand Down
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -333,5 +333,5 @@ <h2 id="about-this-documentation">About this Documentation<a id="about-this-docu

<!--
MkDocs version : 1.2.4
Build Date UTC : 2024-11-01 10:23:27.294766+00:00
Build Date UTC : 2024-12-01 08:00:14.312464+00:00
-->
56 changes: 44 additions & 12 deletions installing_beancount.html
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@
<div class="section">

<h1 id="installing-beancount">Installing Beancount<a id="title"></a><a class="headerlink" href="#installing-beancount" title="Permanent link"></a></h1>
<p><a href="mailto:[email protected]"><u>Martin Blais</u></a> - Updated: June 2024</p>
<p><a href="mailto:[email protected]"><u>Martin Blais</u></a> - Updated: November 2024</p>
<p><a href="http://furius.ca/beancount/doc/install"><u>http://furius.ca/beancount/doc/install</u></a></p>
<p><em>Instructions for downloading and installing Beancount on your computer.</em></p>
<h2 id="releases">Releases<a id="releases"></a><a class="headerlink" href="#releases" title="Permanent link"></a></h2>
Expand Down Expand Up @@ -285,19 +285,16 @@ <h4 id="installing-beancount-from-source">Installing Beancount from Source<a id=
<p>If installing on Windows, see the Windows section below.</p>
<h5 id="build-and-install-beancount-from-source-using-pip3">Build and Install Beancount from source using pip3<a id="build-and-install-beancount-from-source-using-pip3"></a><a class="headerlink" href="#build-and-install-beancount-from-source-using-pip3" title="Permanent link"></a></h5>
<p>You can then install all the dependencies and Beancount itself using pip:</p>
<pre><code>cd beancount
sudo -H python3 -m pip install .
<pre><code>sudo -H python3 -m pip install .
</code></pre>
<h5 id="installing-for-development">Installing for Development<a id="installing-for-development"></a><a class="headerlink" href="#installing-for-development" title="Permanent link"></a></h5>
<p>If you want to execute the source in-place for making changes to it, you can use the setuptools “develop” command to point to it:</p>
<pre><code>cd beancount
sudo python3 setup.py develop
<pre><code>sudo python3 setup.py develop
</code></pre>
<p>Warning: This modifies a .pth file in your Python installation to point to the path to your clone. You may or may not want this. I don't do this myself; the way I work with it is the "old school" way; I just build it locally and modify my shell's environment to find its libraries. You build it like this:</p>
<pre><code>cd beancount
python3 setup.py build_ext -i # or "make build"
<p>Warning: This modifies a .pth file in your Python installation to point to the path to your clone. You may or may not want this. I don't do this myself; the way I work is by compiling locally and setting up my shell's environment to find its libraries. You can do it like this:</p>
<pre><code>make build
</code></pre>
<p>and then both the PATH and PYTHONPATH environment variables need to be updated for it like this:</p>
<p>You will need to have "meson" and "ninja" installed to do this. Both the PATH and PYTHONPATH environment variables need to be updated to pick up the imports and binaries locally as follows:</p>
<pre><code>export PATH=$PATH:/path/to/beancount/bin
export PYTHONPATH=$PYTHONPATH:/path/to/beancount
</code></pre>
Expand All @@ -308,6 +305,9 @@ <h6 id="dependencies-for-development">Dependencies for Development<a id="depende
<p>pytest: for unit tests</p>
</li>
<li>
<p>meson, meson-python, ninja: for building (on branch master)</p>
</li>
<li>
<p>ruff: for linting</p>
</li>
<li>
Expand All @@ -326,7 +326,8 @@ <h4 id="installing-from-distribution-packages">Installing from Distribution Pack
<li>Arch: <a href="https://aur.archlinux.org/packages/beancount/"><u>https://aur.archlinux.org/packages/beancount/</u></a></li>
</ul>
<h3 id="windows-installation">Windows Installation<a id="windows-installation"></a><a class="headerlink" href="#windows-installation" title="Permanent link"></a></h3>
<h4 id="native">Native<a id="native"></a><a class="headerlink" href="#native" title="Permanent link"></a></h4>
<h4 id="native-for-development">Native for development<a id="native-for-development"></a><a class="headerlink" href="#native-for-development" title="Permanent link"></a></h4>
<p>Install compiler</p>
<p>Installing this package by pip requires compiling some C++ code during the installation procedure which is only possible if an appropriate compiler is available on the computer, otherwise you will receive an error message about missing <em>vsvarsall.bat</em> or <em>cl.exe</em>.</p>
<p>To be able to compile C++ code for Python you will need to install the same major version of the C++ compiler as your Python installation was compiled with. By running <em>python</em> in a console and looking for a text similar to <em>[MSC v.1900 64 bit (AMD64)]</em> you can determine which compiler was used for your particular Python distribution. In this example it is <em>v.1900</em>.</p>
<p>Using this number find the required Visual C++ version <a href="https://stackoverflow.com/questions/2676763/what-version-of-visual-studio-is-python-on-my-computer-compiled-with"><u>here</u></a>. Since different versions seem to be compatible as long as the first two digits are the same you can in theory use any Visual C++ compiler between 1900 and 1999.</p>
Expand Down Expand Up @@ -356,13 +357,44 @@ <h4 id="native">Native<a id="native"></a><a class="headerlink" href="#native" ti
</ul>
</li>
<li>
<p>Visual Studio 2019</p>
<p>Visual Studio 2019, 2022</p>
<ul>
<li>add C++ build tools: C++ core features, MSVC v142 build tools</li>
</ul>
</li>
</ul>
<p>If cl.exe is not in your path after installation, run Developer Command Prompt for Visual Studio and run the commands there.</p>
<h5 id="if-clexe-is-not-in-your-path-after-installation-run-developer-command-prompt-for-visual-studio-and-run-the-commands-there-install-winflexbison">If cl.exe is not in your path after installation, run Developer Command Prompt for Visual Studio and run the commands there. Install <a href="https://github.com/lexxmark/winflexbison"><u>winflexbison</u></a><a id="if-cl.exe-is-not-in-your-path-after-installation-run-developer-command-prompt-for-visual-studio-and-run-the-commands-there.-install-winflexbison"></a><a class="headerlink" href="#if-clexe-is-not-in-your-path-after-installation-run-developer-command-prompt-for-visual-studio-and-run-the-commands-there-install-winflexbison" title="Permanent link"></a></h5>
<p>Download zip file with the latest version of the winflexbison</p>
<p><a href="https://github.com/lexxmark/winflexbison/releases"><u>https://github.com/lexxmark/winflexbison/releases</u></a></p>
<p>Extract archive to some directory (e.g. <code>C:\Program Files (x86)\winflexbison</code>)</p>
<p><a href="https://www.youtube.com/watch?v=9umV9jD6n80"><u>Update the Path environmental</u></a> variable to include that directory ( e.g. ‘<code>C:\Program Files (x86)\winflexbison</code>’)</p>
<p>Reboot the PC</p>
<p>Open the command prompt</p>
<p>Issue the command</p>
<pre><code>win_bison --version
</code></pre>
<h5 id="confirm-that-you-get-a-response-with-the-win_bizon-version-install-build-utilities">Confirm that you get a response with the win_bizon version <strong>Install build utilities</strong><a id="confirm-that-you-get-a-response-with-the-win_bizon-version-install-build-utilities"></a><a class="headerlink" href="#confirm-that-you-get-a-response-with-the-win_bizon-version-install-build-utilities" title="Permanent link"></a></h5>
<pre><code>python -m pip install meson-python meson ninja
</code></pre>
<h5 id="get-and-install-beancount">Get and Install beancount<a id="get-and-install-beancount"></a><a class="headerlink" href="#get-and-install-beancount" title="Permanent link"></a></h5>
<p>Get the latest version of the <strong>beancount</strong> from github and build it</p>
<pre><code>git clone https://github.com/beancount/beancount.git

cd beancount
</code></pre>
<p>Install beancount from the source in editable mode</p>
<pre><code>python -m pip install --no-build-isolation -e .
</code></pre>
<h5 id="test-beancount">Test beancount<a id="test-beancount"></a><a class="headerlink" href="#test-beancount" title="Permanent link"></a></h5>
<p>Install pytest</p>
<pre><code>python -m pip install pytest
</code></pre>
<p>Go to the inside directory and run unit tests</p>
<pre><code>cd beancount

python -m pytest
</code></pre>
<p>Confirm that the majority of tests have passed (approx 70 tests out of approx 1100 total fail on Windows as of November 2024, which is mostly related to the fact, that unit tests are written assuming POSIX environment (see issue <a href="https://github.com/beancount/beancount/issues/222"><u>222</u></a>, <a href="https://github.com/beancount/beancount/issues/550"><u>550</u></a> ))</p>
<h4 id="with-cygwin">With Cygwin<a id="with-cygwin"></a><a class="headerlink" href="#with-cygwin" title="Permanent link"></a></h4>
<p>Windows installation is, of course, a bit different. It’s a breeze if you use Cygwin. You just have to prep your machine first. Here’s how.</p>
<ul>
Expand Down
2 changes: 1 addition & 1 deletion search/search_index.json

Large diffs are not rendered by default.

Loading

0 comments on commit 401ebb5

Please sign in to comment.