Skip to content

Commit

Permalink
added development guide
Browse files Browse the repository at this point in the history
  • Loading branch information
KaiSchwarz-cnic committed Jul 12, 2018
1 parent a0a644f commit ffb6b7c
Show file tree
Hide file tree
Showing 27 changed files with 651 additions and 59 deletions.
3 changes: 3 additions & 0 deletions docs/_build/html/_sources/contributing.md.txt
@@ -0,0 +1,3 @@
.. _contributing:

.. mdinclude:: ../CONTRIBUTING.md
3 changes: 0 additions & 3 deletions docs/_build/html/_sources/contributing.rst.txt

This file was deleted.

136 changes: 136 additions & 0 deletions docs/_build/html/_sources/developmentguide.rst.txt
@@ -0,0 +1,136 @@
.. _developmentguide:

Development Guide
=================

Please read our :ref:`Contributing guide lines <contributing>` first.

Requirements
------------

You can find any required library for this project in the *requirements.txt*:

.. literalinclude:: ../requirements.txt

NOTE: Make sure to have also all the extensions listed in the `docs/conf.py`_ that are required for the SDK Documentation.

.. _docs/conf.py: https://rawgit.com/hexonet/python-sdk/master/docs/conf.py

In addition, you need nodejs/npm with globally installed module *auto-changelog* in case you want to generate an update changelog version.
We suggest to use nvm_.

We suggest to use `Visual Studio Code`_ with installed plugins for Python Development described here_. But if you prefer any other IDE / Editor, it is fine.

.. _nvm: https://github.com/creationix/nvm
.. _Visual Studio Code: https://code.visualstudio.com
.. _here: https://code.visualstudio.com/docs/languages/python

.. _testsnvalidation:

Run Tests and Code Validation
-----------------------------

There are up to no automated tests realized, but planned to come in short.

Code validation and auto-fixing can be run by

.. code-block:: bash
./scripts/pep8fix.sh
# to autofix possible issues
./scripts/pep9check.sh
# to check for issues left
Please fix all issues before creating a PR.

Pull Request (PR) Procedure
---------------------------
* fork our project and create a new branch.
* clone it and check this branch out
* apply your desired changes / extensions
* :ref:`run tests and code validation<testsnvalidation>`
* commit and push it to remote
* open a pull request (PR)

**We care then about the rest** - no need to worry about things like building current realease and versioning.

**You can stop here.**

The below sections are just for our reference.
TIA for your PR and thus for your support of this project. As we have further SDKs in other languages, it might take a bit of time to check if we can role out that PR as we want to keep all our SDKs aligned.

Versioning
----------

We use SemVer_ for versioning. For the versions available, see the `tags on this repository`_.

.. _SemVer: http://semver.org/
.. _tags on this repository: https://github.com/hexonet/python-sdk/tags

Releasing
---------

Merge the desired changes in case tests and code validation succeed.
Then create a new tag version by

.. code-block:: bash
git tag -a v1.2.3 master
# please replace the semver version accordingly
git push --tags
# push the tags to remote
Create a new release out of that new tag and provide release details about the changes applied in the `git interface`_. In case of breaking changes, describe what has changed and how to migrate.

.. _git interface: https://github.com/hexonet/python-sdk/releases

Changes will be auto-deployed by a webhook to readthedocs.org_ and automatically updated on `github pages`_.

.. _readthedocs.org: https://hexonet-python-sdk.readthedocs.io
.. _github pages: https://hexonet.github.io/python-sdk

Publish your changes to the Python Package Index (PyPi_) by

.. _PyPi: https://pypi.org/

.. code-block:: bash
./scripts/createdistribution.sh
# to create packages of the new distribution
./scripts/uploaddistribution_test.sh
# to upload the generated packages to the PyPi Test Index (test.pypi.org)
./scripts/uploaddistribution_live.sh
# to upload the generated packages to the PyPi Index (pypi.org)
The module can be accessed on the `PyPi (Live) Index`_ and the `PyPi (Test) Index`_.

.. _PyPi (Live) Index: https://pypi.org/project/hexonet.apiconnector/
.. _PyPi (Test) Index: https://test.pypi.org/project/hexonet.apiconnector/

Generate SDK Documentation
--------------------------

Have an eye on the generated :ref:`api`.

If you want to generate it from scratch out of the sources, please use composer together with our project as follows:

.. code-block:: bash
./scripts/generatedocs.sh
The generated files are then available in subfolder "docs/_build/html". Commit and push the changes.

Update Changelog
----------------

After having changes merged and released, run

.. code-block:: bash
./scripts/changelog.sh
Commit and push the changes.
3 changes: 2 additions & 1 deletion docs/_build/html/api.html
Expand Up @@ -80,8 +80,9 @@ <h2>Table Of Contents</h2>
<ul>
<li class="toctree-l1"><a class="reference internal" href="upgrading.html">Upgrading to Newer Releases</a></li>
<li class="toctree-l1"><a class="reference internal" href="changelog.html">Changelog</a></li>
<li class="toctree-l1"><a class="reference internal" href="license.html">License</a></li>
<li class="toctree-l1"><a class="reference internal" href="contributing.html">Contributing</a></li>
<li class="toctree-l1"><a class="reference internal" href="developmentguide.html">Development Guide</a></li>
<li class="toctree-l1"><a class="reference internal" href="license.html">License</a></li>
<li class="toctree-l1"><a class="reference internal" href="contactus.html">Contact Us</a></li>
</ul>

Expand Down
3 changes: 2 additions & 1 deletion docs/_build/html/api/hexonet.apiconnector.html
Expand Up @@ -81,8 +81,9 @@ <h2>Table Of Contents</h2>
<ul>
<li class="toctree-l1"><a class="reference internal" href="../upgrading.html">Upgrading to Newer Releases</a></li>
<li class="toctree-l1"><a class="reference internal" href="../changelog.html">Changelog</a></li>
<li class="toctree-l1"><a class="reference internal" href="../license.html">License</a></li>
<li class="toctree-l1"><a class="reference internal" href="../contributing.html">Contributing</a></li>
<li class="toctree-l1"><a class="reference internal" href="../developmentguide.html">Development Guide</a></li>
<li class="toctree-l1"><a class="reference internal" href="../license.html">License</a></li>
<li class="toctree-l1"><a class="reference internal" href="../contactus.html">Contact Us</a></li>
</ul>

Expand Down
11 changes: 6 additions & 5 deletions docs/_build/html/changelog.html
Expand Up @@ -25,7 +25,7 @@
<link rel="shortcut icon" href="_static/hexonet-favicon.ico"/>
<link rel="index" title="Index" href="genindex.html" />
<link rel="search" title="Search" href="search.html" />
<link rel="next" title="License" href="license.html" />
<link rel="next" title="Contributing" href="contributing.html" />
<link rel="prev" title="Upgrading to Newer Releases" href="upgrading.html" />


Expand All @@ -41,7 +41,7 @@ <h3>Navigation</h3>
<a href="py-modindex.html" title="Python Module Index"
>modules</a> |</li>
<li class="right" >
<a href="license.html" title="License"
<a href="contributing.html" title="Contributing"
accesskey="N">next</a> |</li>
<li class="right" >
<a href="upgrading.html" title="Upgrading to Newer Releases"
Expand Down Expand Up @@ -87,8 +87,9 @@ <h2>Table Of Contents</h2>
<li class="toctree-l2"><a class="reference internal" href="#id16">1.0.0</a></li>
</ul>
</li>
<li class="toctree-l1"><a class="reference internal" href="license.html">License</a></li>
<li class="toctree-l1"><a class="reference internal" href="contributing.html">Contributing</a></li>
<li class="toctree-l1"><a class="reference internal" href="developmentguide.html">Development Guide</a></li>
<li class="toctree-l1"><a class="reference internal" href="license.html">License</a></li>
<li class="toctree-l1"><a class="reference internal" href="contactus.html">Contact Us</a></li>
</ul>

Expand Down Expand Up @@ -243,7 +244,7 @@ <h2>1.0.0<a class="headerlink" href="#id16" title="Permalink to this headline">
</div>

<div class="pull-right">
<a class="btn btn-default" href="license.html" title="next chapter (use the right arrow)">License</a>
<a class="btn btn-default" href="contributing.html" title="next chapter (use the right arrow)">Contributing</a>
</div>
</div>
<div class="clearer"></div>
Expand All @@ -261,7 +262,7 @@ <h3>Navigation</h3>
<a href="py-modindex.html" title="Python Module Index"
>modules</a> |</li>
<li class="right" >
<a href="license.html" title="License"
<a href="contributing.html" title="Contributing"
>next</a> |</li>
<li class="right" >
<a href="upgrading.html" title="Upgrading to Newer Releases"
Expand Down
3 changes: 2 additions & 1 deletion docs/_build/html/config.html
Expand Up @@ -82,8 +82,9 @@ <h2>Table Of Contents</h2>
<ul>
<li class="toctree-l1"><a class="reference internal" href="upgrading.html">Upgrading to Newer Releases</a></li>
<li class="toctree-l1"><a class="reference internal" href="changelog.html">Changelog</a></li>
<li class="toctree-l1"><a class="reference internal" href="license.html">License</a></li>
<li class="toctree-l1"><a class="reference internal" href="contributing.html">Contributing</a></li>
<li class="toctree-l1"><a class="reference internal" href="developmentguide.html">Development Guide</a></li>
<li class="toctree-l1"><a class="reference internal" href="license.html">License</a></li>
<li class="toctree-l1"><a class="reference internal" href="contactus.html">Contact Us</a></li>
</ul>

Expand Down
11 changes: 6 additions & 5 deletions docs/_build/html/contactus.html
Expand Up @@ -25,7 +25,7 @@
<link rel="shortcut icon" href="_static/hexonet-favicon.ico"/>
<link rel="index" title="Index" href="genindex.html" />
<link rel="search" title="Search" href="search.html" />
<link rel="prev" title="Contributing" href="contributing.html" />
<link rel="prev" title="License" href="license.html" />



Expand All @@ -40,7 +40,7 @@ <h3>Navigation</h3>
<a href="py-modindex.html" title="Python Module Index"
>modules</a> |</li>
<li class="right" >
<a href="contributing.html" title="Contributing"
<a href="license.html" title="License"
accesskey="P">previous</a> |</li>
<li class="nav-item nav-item-0"><a href="index.html">hexonet.apiconnector 1.2 documentation</a> &#187;</li>
</ul>
Expand Down Expand Up @@ -73,8 +73,9 @@ <h2>Table Of Contents</h2>
<ul class="current">
<li class="toctree-l1"><a class="reference internal" href="upgrading.html">Upgrading to Newer Releases</a></li>
<li class="toctree-l1"><a class="reference internal" href="changelog.html">Changelog</a></li>
<li class="toctree-l1"><a class="reference internal" href="license.html">License</a></li>
<li class="toctree-l1"><a class="reference internal" href="contributing.html">Contributing</a></li>
<li class="toctree-l1"><a class="reference internal" href="developmentguide.html">Development Guide</a></li>
<li class="toctree-l1"><a class="reference internal" href="license.html">License</a></li>
<li class="toctree-l1 current"><a class="current reference internal" href="#">Contact Us</a></li>
</ul>

Expand Down Expand Up @@ -128,7 +129,7 @@ <h2>Table Of Contents</h2>
<div class="footer-relations">

<div class="pull-left">
<a class="btn btn-default" href="contributing.html" title="previous chapter (use the left arrow)">Contributing</a>
<a class="btn btn-default" href="license.html" title="previous chapter (use the left arrow)">License</a>
</div>

</div>
Expand All @@ -147,7 +148,7 @@ <h3>Navigation</h3>
<a href="py-modindex.html" title="Python Module Index"
>modules</a> |</li>
<li class="right" >
<a href="contributing.html" title="Contributing"
<a href="license.html" title="License"
>previous</a> |</li>
<li class="nav-item nav-item-0"><a href="index.html">hexonet.apiconnector 1.2 documentation</a> &#187;</li>
</ul>
Expand Down
19 changes: 10 additions & 9 deletions docs/_build/html/contributing.html
Expand Up @@ -25,8 +25,8 @@
<link rel="shortcut icon" href="_static/hexonet-favicon.ico"/>
<link rel="index" title="Index" href="genindex.html" />
<link rel="search" title="Search" href="search.html" />
<link rel="next" title="Contact Us" href="contactus.html" />
<link rel="prev" title="License" href="license.html" />
<link rel="next" title="Development Guide" href="developmentguide.html" />
<link rel="prev" title="Changelog" href="changelog.html" />



Expand All @@ -41,10 +41,10 @@ <h3>Navigation</h3>
<a href="py-modindex.html" title="Python Module Index"
>modules</a> |</li>
<li class="right" >
<a href="contactus.html" title="Contact Us"
<a href="developmentguide.html" title="Development Guide"
accesskey="N">next</a> |</li>
<li class="right" >
<a href="license.html" title="License"
<a href="changelog.html" title="Changelog"
accesskey="P">previous</a> |</li>
<li class="nav-item nav-item-0"><a href="index.html">hexonet.apiconnector 1.2 documentation</a> &#187;</li>
</ul>
Expand Down Expand Up @@ -77,12 +77,13 @@ <h2>Table Of Contents</h2>
<ul class="current">
<li class="toctree-l1"><a class="reference internal" href="upgrading.html">Upgrading to Newer Releases</a></li>
<li class="toctree-l1"><a class="reference internal" href="changelog.html">Changelog</a></li>
<li class="toctree-l1"><a class="reference internal" href="license.html">License</a></li>
<li class="toctree-l1 current"><a class="current reference internal" href="#">Contributing</a><ul>
<li class="toctree-l2"><a class="reference internal" href="#pull-request-pr-process">Pull Request (PR) Process</a></li>
<li class="toctree-l2"><a class="reference internal" href="#code-of-conduct">Code of Conduct</a></li>
</ul>
</li>
<li class="toctree-l1"><a class="reference internal" href="developmentguide.html">Development Guide</a></li>
<li class="toctree-l1"><a class="reference internal" href="license.html">License</a></li>
<li class="toctree-l1"><a class="reference internal" href="contactus.html">Contact Us</a></li>
</ul>

Expand Down Expand Up @@ -232,11 +233,11 @@ <h3>Attribution<a class="headerlink" href="#attribution" title="Permalink to thi
<div class="footer-relations">

<div class="pull-left">
<a class="btn btn-default" href="license.html" title="previous chapter (use the left arrow)">License</a>
<a class="btn btn-default" href="changelog.html" title="previous chapter (use the left arrow)">Changelog</a>
</div>

<div class="pull-right">
<a class="btn btn-default" href="contactus.html" title="next chapter (use the right arrow)">Contact Us</a>
<a class="btn btn-default" href="developmentguide.html" title="next chapter (use the right arrow)">Development Guide</a>
</div>
</div>
<div class="clearer"></div>
Expand All @@ -254,10 +255,10 @@ <h3>Navigation</h3>
<a href="py-modindex.html" title="Python Module Index"
>modules</a> |</li>
<li class="right" >
<a href="contactus.html" title="Contact Us"
<a href="developmentguide.html" title="Development Guide"
>next</a> |</li>
<li class="right" >
<a href="license.html" title="License"
<a href="changelog.html" title="Changelog"
>previous</a> |</li>
<li class="nav-item nav-item-0"><a href="index.html">hexonet.apiconnector 1.2 documentation</a> &#187;</li>
</ul>
Expand Down
3 changes: 2 additions & 1 deletion docs/_build/html/debugging.html
Expand Up @@ -77,8 +77,9 @@ <h2>Table Of Contents</h2>
<ul>
<li class="toctree-l1"><a class="reference internal" href="upgrading.html">Upgrading to Newer Releases</a></li>
<li class="toctree-l1"><a class="reference internal" href="changelog.html">Changelog</a></li>
<li class="toctree-l1"><a class="reference internal" href="license.html">License</a></li>
<li class="toctree-l1"><a class="reference internal" href="contributing.html">Contributing</a></li>
<li class="toctree-l1"><a class="reference internal" href="developmentguide.html">Development Guide</a></li>
<li class="toctree-l1"><a class="reference internal" href="license.html">License</a></li>
<li class="toctree-l1"><a class="reference internal" href="contactus.html">Contact Us</a></li>
</ul>

Expand Down

0 comments on commit ffb6b7c

Please sign in to comment.