Skip to content

Commit

Permalink
Deploying to gh-pages from @ 22cd1cc 🚀
Browse files Browse the repository at this point in the history
  • Loading branch information
eivindjahren committed Nov 15, 2024
1 parent 4ceed0d commit aa7a518
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 5 deletions.
Binary file modified .doctrees/environment.pickle
Binary file not shown.
Binary file modified .doctrees/komodo.doctree
Binary file not shown.
30 changes: 26 additions & 4 deletions komodo.html
Original file line number Diff line number Diff line change
Expand Up @@ -1265,7 +1265,7 @@ <h3>Returns:<a class="headerlink" href="#returns" title="Link to this heading">
<span id="komodo-pypi-dependencies-module"></span><h2>komodo.pypi_dependencies module<a class="headerlink" href="#module-komodo.pypi_dependencies" title="Link to this heading"></a></h2>
<dl class="py class">
<dt class="sig sig-object py" id="komodo.pypi_dependencies.PypiDependencies">
<em class="property"><span class="pre">class</span><span class="w"> </span></em><span class="sig-prename descclassname"><span class="pre">komodo.pypi_dependencies.</span></span><span class="sig-name descname"><span class="pre">PypiDependencies</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">to_install</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">Dict</span><span class="p"><span class="pre">[</span></span><span class="pre">str</span><span class="p"><span class="pre">,</span></span><span class="w"> </span><span class="pre">str</span><span class="p"><span class="pre">]</span></span></span></em>, <em class="sig-param"><span class="n"><span class="pre">python_version</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">str</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">cachefile</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">str</span></span><span class="w"> </span><span class="o"><span class="pre">=</span></span><span class="w"> </span><span class="default_value"><span class="pre">'./pypi_dependencies.yml'</span></span></em><span class="sig-paren">)</span><a class="headerlink" href="#komodo.pypi_dependencies.PypiDependencies" title="Link to this definition"></a></dt>
<em class="property"><span class="pre">class</span><span class="w"> </span></em><span class="sig-prename descclassname"><span class="pre">komodo.pypi_dependencies.</span></span><span class="sig-name descname"><span class="pre">PypiDependencies</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">pypi_dependencies</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">Dict</span><span class="p"><span class="pre">[</span></span><span class="pre">str</span><span class="p"><span class="pre">,</span></span><span class="w"> </span><span class="pre">str</span><span class="p"><span class="pre">]</span></span></span></em>, <em class="sig-param"><span class="n"><span class="pre">to_install</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">Dict</span><span class="p"><span class="pre">[</span></span><span class="pre">str</span><span class="p"><span class="pre">,</span></span><span class="w"> </span><span class="pre">str</span><span class="p"><span class="pre">]</span></span></span></em>, <em class="sig-param"><span class="n"><span class="pre">python_version</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">str</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">cachefile</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">str</span></span><span class="w"> </span><span class="o"><span class="pre">=</span></span><span class="w"> </span><span class="default_value"><span class="pre">'./pypi_dependencies.yml'</span></span></em><span class="sig-paren">)</span><a class="headerlink" href="#komodo.pypi_dependencies.PypiDependencies" title="Link to this definition"></a></dt>
<dd><p>Bases: <code class="xref py py-class docutils literal notranslate"><span class="pre">object</span></code></p>
<dl class="py method">
<dt class="sig sig-object py" id="komodo.pypi_dependencies.PypiDependencies.add_user_specified">
Expand All @@ -1280,18 +1280,40 @@ <h3>Returns:<a class="headerlink" href="#returns" title="Link to this heading">
<dl class="py method">
<dt class="sig sig-object py" id="komodo.pypi_dependencies.PypiDependencies.failed_requirements">
<span class="sig-name descname"><span class="pre">failed_requirements</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">packages</span></span><span class="o"><span class="pre">=</span></span><span class="default_value"><span class="pre">None</span></span></em><span class="sig-paren">)</span><a class="headerlink" href="#komodo.pypi_dependencies.PypiDependencies.failed_requirements" title="Link to this definition"></a></dt>
<dd></dd></dl>
<dd><div class="doctest highlight-default notranslate"><div class="highlight"><pre><span></span><span class="gp">&gt;&gt;&gt;</span>
<span class="gp">&gt;&gt;&gt; </span><span class="n">pypi_packages</span> <span class="o">=</span> <span class="p">{</span>
<span class="gp">... </span> <span class="s2">&quot;ert&quot;</span><span class="p">:</span> <span class="s2">&quot;11.1.0&quot;</span><span class="p">,</span>
<span class="gp">... </span> <span class="s2">&quot;aiohttp&quot;</span><span class="p">:</span> <span class="s2">&quot;3.10.10&quot;</span><span class="p">,</span>
<span class="gp">... </span> <span class="s2">&quot;deprecation&quot;</span><span class="p">:</span> <span class="s2">&quot;2.1.0&quot;</span><span class="p">,</span>
<span class="gp">... </span> <span class="s2">&quot;filelock&quot;</span><span class="p">:</span> <span class="s2">&quot;3.16.1&quot;</span><span class="p">,</span>
<span class="gp">... </span> <span class="s2">&quot;jinja2&quot;</span><span class="p">:</span> <span class="s2">&quot;3.1.4&quot;</span><span class="p">,</span>
<span class="gp">... </span> <span class="s2">&quot;aiohappyeyeballs&quot;</span><span class="p">:</span> <span class="s2">&quot;2.4.3&quot;</span><span class="p">,</span>
<span class="gp">... </span> <span class="s2">&quot;cryptography&quot;</span><span class="p">:</span> <span class="s2">&quot;43.0.1&quot;</span><span class="p">,</span>
<span class="gp">... </span> <span class="s2">&quot;PyJWT&quot;</span><span class="p">:</span> <span class="s2">&quot;2.3.0&quot;</span><span class="p">}</span>
<span class="gp">&gt;&gt;&gt; </span><span class="n">all_packages</span> <span class="o">=</span> <span class="p">{</span>
<span class="gp">... </span> <span class="o">**</span><span class="n">pypi_packages</span><span class="p">,</span>
<span class="gp">... </span> <span class="s2">&quot;xtgeo&quot;</span><span class="p">:</span> <span class="s2">&quot;main&quot;</span><span class="p">,</span>
<span class="gp">... </span> <span class="s2">&quot;iterative_ensemble_smoother&quot;</span><span class="p">:</span> <span class="s2">&quot;main&quot;</span><span class="p">}</span>
<span class="gp">&gt;&gt;&gt; </span><span class="n">dependencies</span> <span class="o">=</span> <span class="n">PypiDependencies</span><span class="p">(</span><span class="n">pypi_packages</span><span class="p">,</span> <span class="n">all_packages</span><span class="p">,</span> <span class="n">python_version</span><span class="o">=</span><span class="s2">&quot;3.8&quot;</span><span class="p">)</span>
<span class="gp">&gt;&gt;&gt; </span><span class="n">dependencies</span><span class="o">.</span><span class="n">add_user_specified</span><span class="p">(</span><span class="s2">&quot;xtgeo&quot;</span><span class="p">,</span> <span class="p">[])</span>
<span class="gp">&gt;&gt;&gt; </span><span class="n">dependencies</span><span class="o">.</span><span class="n">add_user_specified</span><span class="p">(</span><span class="s2">&quot;iterative_ensemble_smoother&quot;</span><span class="p">,</span> <span class="p">[])</span>
<span class="gp">&gt;&gt;&gt; </span><span class="n">dependencies</span><span class="o">.</span><span class="n">failed_requirements</span><span class="p">()</span>
<span class="go">Not installed: aiosignal...</span>
</pre></div>
</div>
</dd></dl>

<dl class="py method">
<dt class="sig sig-object py" id="komodo.pypi_dependencies.PypiDependencies.satisfied">
<span class="sig-name descname"><span class="pre">satisfied</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">requirement</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">Requirement</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">package_name</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">str</span></span><span class="w"> </span><span class="o"><span class="pre">=</span></span><span class="w"> </span><span class="default_value"><span class="pre">''</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">extra</span></span><span class="o"><span class="pre">=</span></span><span class="default_value"><span class="pre">None</span></span></em><span class="sig-paren">)</span> <span class="sig-return"><span class="sig-return-icon">&#x2192;</span> <span class="sig-return-typehint"><span class="pre">bool</span></span></span><a class="headerlink" href="#komodo.pypi_dependencies.PypiDependencies.satisfied" title="Link to this definition"></a></dt>
<dd><div class="doctest highlight-default notranslate"><div class="highlight"><pre><span></span><span class="gp">&gt;&gt;&gt; </span><span class="kn">from</span> <span class="nn">packaging.requirements</span> <span class="kn">import</span> <span class="n">Requirement</span>
<span class="gp">&gt;&gt;&gt; </span><span class="n">PypiDependencies</span><span class="p">(</span><span class="n">to_install</span><span class="o">=</span><span class="p">{},</span> <span class="n">python_version</span><span class="o">=</span><span class="s2">&quot;3.8&quot;</span><span class="p">)</span><span class="o">.</span><span class="n">satisfied</span><span class="p">(</span>
<span class="gp">&gt;&gt;&gt; </span><span class="n">PypiDependencies</span><span class="p">({},</span> <span class="p">{},</span> <span class="n">python_version</span><span class="o">=</span><span class="s2">&quot;3.8&quot;</span><span class="p">)</span><span class="o">.</span><span class="n">satisfied</span><span class="p">(</span>
<span class="gp">... </span><span class="n">Requirement</span><span class="p">(</span><span class="s2">&quot;PyJWT[crypto] (&lt;3, &gt;=1.0.0)&quot;</span><span class="p">)</span>
<span class="gp">... </span><span class="p">)</span>
<span class="go">Not installed: pyjwt</span>
<span class="go">False</span>
<span class="gp">&gt;&gt;&gt; </span><span class="n">PypiDependencies</span><span class="p">(</span><span class="n">to_install</span><span class="o">=</span><span class="p">{</span><span class="s2">&quot;PyJWT&quot;</span><span class="p">:</span> <span class="s2">&quot;2.3.0&quot;</span><span class="p">},</span> <span class="n">python_version</span><span class="o">=</span><span class="s2">&quot;3.8&quot;</span><span class="p">)</span><span class="o">.</span><span class="n">satisfied</span><span class="p">(</span>
<span class="gp">&gt;&gt;&gt; </span><span class="n">packages</span> <span class="o">=</span> <span class="p">{</span><span class="s2">&quot;PyJWT&quot;</span><span class="p">:</span> <span class="s2">&quot;2.3.0&quot;</span><span class="p">}</span>
<span class="gp">&gt;&gt;&gt; </span><span class="n">PypiDependencies</span><span class="p">(</span><span class="n">packages</span><span class="p">,</span> <span class="n">packages</span><span class="p">,</span> <span class="n">python_version</span><span class="o">=</span><span class="s2">&quot;3.8&quot;</span><span class="p">)</span><span class="o">.</span><span class="n">satisfied</span><span class="p">(</span>
<span class="gp">... </span> <span class="n">Requirement</span><span class="p">(</span><span class="s2">&quot;PyJWT (&lt;3, &gt;=1.0.0)&quot;</span><span class="p">)</span>
<span class="gp">... </span><span class="p">)</span>
<span class="go">True</span>
Expand Down
2 changes: 1 addition & 1 deletion searchindex.js

Large diffs are not rendered by default.

0 comments on commit aa7a518

Please sign in to comment.