Skip to content

Commit

Permalink
Docs: commit 89d77fa made on 2023-08-13T15:51:01+00:00 from refs/head…
Browse files Browse the repository at this point in the history
…s/main by bigcat88
  • Loading branch information
bigcat88 committed Aug 13, 2023
0 parents commit 61373fc
Show file tree
Hide file tree
Showing 120 changed files with 17,764 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .buildinfo
Original file line number Diff line number Diff line change
@@ -0,0 +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: b189085f32a601f3f2145dc0d3b107b0
tags: 645f666f9bcd5a90fca523b33c5a78b7
Empty file added .nojekyll
Empty file.
191 changes: 191 additions & 0 deletions DevSetup.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,191 @@
<!DOCTYPE html>
<html class="writer-html5" lang="en" >
<head>
<meta charset="utf-8" /><meta name="generator" content="Docutils 0.18.1: http://docutils.sourceforge.net/" />

<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Setting up dev environment &mdash; NcPyApi 0.0.29.dev0 documentation</title>
<link rel="stylesheet" href="_static/pygments.css" type="text/css" />
<link rel="stylesheet" href="_static/css/theme.css" type="text/css" />
<link rel="stylesheet" href="_static/copybutton.css" type="text/css" />
<link rel="stylesheet" href="_static/tabs.css" type="text/css" />
<link rel="stylesheet" href="_static/css/styles.css" type="text/css" />
<link rel="stylesheet" href="_static/css/dark.css" type="text/css" />
<link rel="stylesheet" href="_static/css/light.css" type="text/css" />
<!--[if lt IE 9]>
<script src="_static/js/html5shiv.min.js"></script>
<![endif]-->

<script src="_static/jquery.js"></script>
<script src="_static/_sphinx_javascript_frameworks_compat.js"></script>
<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>
<script src="_static/clipboard.min.js"></script>
<script src="_static/copybutton.js"></script>
<script src="_static/tabs.js"></script>
<script src="_static/js/script.js"></script>
<script src="_static/js/theme.js"></script>
<link rel="index" title="Index" href="genindex.html" />
<link rel="search" title="Search" href="search.html" />
<link rel="next" title="AppEcosystem Benchmarks" href="benchmarks/AppEcosystem.html" />
<link rel="prev" title="Session Structures" href="reference/Session.html" />
</head>

<body class="wy-body-for-nav">
<div class="wy-grid-for-nav">
<nav data-toggle="wy-nav-shift" class="wy-nav-side">
<div class="wy-side-scroll">
<div class="wy-side-nav-search" >



<a href="index.html" class="icon icon-home">
NcPyApi
<img src="_static/logo.svg" class="logo" alt="Logo"/>
</a>
<div class="version">
0.0.29.dev0
</div>
<div role="search">
<form id="rtd-search-form" class="wy-form" action="search.html" method="get">
<input type="text" name="q" placeholder="Search docs" aria-label="Search docs" />
<input type="hidden" name="check_keywords" value="yes" />
<input type="hidden" name="area" value="default" />
</form>
</div>
</div><div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="Navigation menu">
<ul class="current">
<li class="toctree-l1"><a class="reference internal" href="Installation.html">Installation</a></li>
<li class="toctree-l1"><a class="reference internal" href="FirstSteps.html">First steps</a></li>
<li class="toctree-l1"><a class="reference internal" href="Options.html">Options</a></li>
<li class="toctree-l1"><a class="reference internal" href="reference/index.html">Reference</a></li>
<li class="toctree-l1 current"><a class="current reference internal" href="#">Setting up dev environment</a></li>
<li class="toctree-l1"><a class="reference internal" href="benchmarks/AppEcosystem.html">AppEcosystem Benchmarks</a></li>
</ul>

</div>
</div>
</nav>

<section data-toggle="wy-nav-shift" class="wy-nav-content-wrap"><nav class="wy-nav-top" aria-label="Mobile navigation menu" >
<i data-toggle="wy-nav-top" class="fa fa-bars"></i>
<a href="index.html">NcPyApi</a>
</nav>

<div class="wy-nav-content">
<div class="rst-content">
<div role="navigation" aria-label="Page navigation">
<ul class="wy-breadcrumbs">
<li><a href="index.html" class="icon icon-home" aria-label="Home"></a></li>
<li class="breadcrumb-item active">Setting up dev environment</li>
<li class="wy-breadcrumbs-aside">
<a href="_sources/DevSetup.rst.txt" rel="nofollow"> View page source</a>
</li>
</ul>
<hr/>
</div>
<div role="main" class="document" itemscope="itemscope" itemtype="http://schema.org/Article">
<div itemprop="articleBody">

<section id="setting-up-dev-environment">
<h1>Setting up dev environment<a class="headerlink" href="#setting-up-dev-environment" title="Permalink to this heading"></a></h1>
<p>We highly recommend to use <a class="reference external" href="https://github.com/juliushaertl/nextcloud-docker-dev">Julius Haertl docker setup</a> for Nextcloud dev setup.</p>
<p>Development of <cite>nc-py-api</cite> can be done on any OS as it is a <strong>pure</strong> Python package.</p>
<p>Suggested IDE: <strong>PyCharm</strong>, but of course you can use any IDE you like for this like <strong>VS Code</strong> or <strong>Vim</strong>.</p>
<p>Steps to setup up the development environment:</p>
<ol class="arabic">
<li><p>Setup Nextcloud locally or remotely.</p></li>
<li><p>Install <a class="reference external" href="https://github.com/cloud-py-api/app_ecosystem_v2">AppEcosystem</a>, follow it’s steps to register <code class="docutils literal notranslate"><span class="pre">deploy</span> <span class="pre">daemon</span></code> if needed.</p></li>
<li><p>Clone the <a class="reference external" href="https://github.com/cloud-py-api/nc_py_api">nc_py_api</a> with <strong class="command">shell</strong>:</p>
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="n">git</span> <span class="n">clone</span> <span class="n">https</span><span class="p">:</span><span class="o">//</span><span class="n">github</span><span class="o">.</span><span class="n">com</span><span class="o">/</span><span class="n">cloud</span><span class="o">-</span><span class="n">py</span><span class="o">-</span><span class="n">api</span><span class="o">/</span><span class="n">nc_py_api</span><span class="o">.</span><span class="n">git</span>
</pre></div>
</div>
</li>
<li><p>Set current working dir to the root folder of cloned <strong>nc_py_api</strong> with <strong class="command">shell</strong>:</p>
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="n">cd</span> <span class="n">nc_py_api</span>
</pre></div>
</div>
</li>
<li><p>Create and activate Virtual Environment with <strong class="command">shell</strong>:</p>
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="n">python3</span> <span class="o">-</span><span class="n">m</span> <span class="n">venv</span> <span class="n">env</span>
</pre></div>
</div>
</li>
<li><p>Activate Python Virtual Environment with <strong class="command">shell</strong>:</p>
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="n">source</span> <span class="o">./</span><span class="n">env</span><span class="o">/</span><span class="nb">bin</span><span class="o">/</span><span class="n">activate</span>
</pre></div>
</div>
</li>
<li><p>Update <code class="docutils literal notranslate"><span class="pre">pip</span></code> to the last version with <strong class="command">pip</strong>:</p>
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="n">python3</span> <span class="o">-</span><span class="n">m</span> <span class="n">pip</span> <span class="n">install</span> <span class="o">--</span><span class="n">upgrade</span> <span class="n">pip</span>
</pre></div>
</div>
</li>
<li><p>Install dev-dependencies with <strong class="command">pip</strong>:</p>
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="n">pip</span> <span class="n">install</span> <span class="s2">&quot;.[dev]&quot;</span>
</pre></div>
</div>
</li>
<li><p>Install <cite>pre-commit</cite> hooks with <strong class="command">shell</strong>:</p>
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="n">pre</span><span class="o">-</span><span class="n">commit</span> <span class="n">install</span>
</pre></div>
</div>
</li>
<li><p>If <code class="docutils literal notranslate"><span class="pre">deploy</span> <span class="pre">daemon</span></code> is registered for AppEcosystem, register <strong>nc_py_api</strong> as an application with <strong class="command">shell</strong>:</p>
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="n">make</span> <span class="n">register28</span>
</pre></div>
</div>
</li>
<li><p>In <code class="docutils literal notranslate"><span class="pre">tests/gfixture.py</span></code> edit <code class="docutils literal notranslate"><span class="pre">NC_AUTH_USER</span></code> and <code class="docutils literal notranslate"><span class="pre">NC_AUTH_PASS</span></code>, if they are different in your setup.</p></li>
<li><p>Run tests to check that everything works with <strong class="command">shell</strong>:</p>
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="n">python3</span> <span class="o">-</span><span class="n">m</span> <span class="n">pytest</span>
</pre></div>
</div>
</li>
<li><p>Install documentation dependencies if needed with <strong class="command">pip</strong>:</p>
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="n">pip</span> <span class="n">install</span> <span class="s2">&quot;.[docs]&quot;</span>
</pre></div>
</div>
</li>
<li><p>You can easy build documentation with <strong class="command">shell</strong>:</p>
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="n">make</span> <span class="n">docs</span>
</pre></div>
</div>
</li>
<li><p><strong>Your setup is ready for the developing nc_py_api and Applications based on it. Best of Luck!</strong></p></li>
</ol>
</section>


</div>
</div>
<footer><div class="rst-footer-buttons" role="navigation" aria-label="Footer">
<a href="reference/Session.html" class="btn btn-neutral float-left" title="Session Structures" accesskey="p" rel="prev"><span class="fa fa-arrow-circle-left" aria-hidden="true"></span> Previous</a>
<a href="benchmarks/AppEcosystem.html" class="btn btn-neutral float-right" title="AppEcosystem Benchmarks" accesskey="n" rel="next">Next <span class="fa fa-arrow-circle-right" aria-hidden="true"></span></a>
</div>

<hr/>

<div role="contentinfo">
<p>&#169; Copyright 2023 Nextcloud GmbH.</p>
</div>

Built with <a href="https://www.sphinx-doc.org/">Sphinx</a> using a
<a href="https://github.com/readthedocs/sphinx_rtd_theme">theme</a>
provided by <a href="https://readthedocs.org">Read the Docs</a>.


</footer>
</div>
</div>
</section>
</div>
<script>
jQuery(function () {
SphinxRtdTheme.Navigation.enable(true);
});
</script>

</body>
</html>
Loading

0 comments on commit 61373fc

Please sign in to comment.