Skip to content

Commit

Permalink
update readme and docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Lioscro committed Oct 30, 2019
1 parent cb39237 commit 19239e1
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 4 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# kb_python
# kb-python
![github version](https://img.shields.io/badge/Version-0.2.0-informational)
[![pypi version](https://img.shields.io/pypi/v/kb-python)](https://pypi.org/project/kb-python/0.2.0/)
![python versions](https://img.shields.io/pypi/pyversions/kb_python)
Expand All @@ -23,7 +23,7 @@ Visit the [Getting Started](https://www.kallistobus.tools/kb_getting_started) pa
Developer documentation is hosted on [Read the Docs](https://kb-python.readthedocs.io/en/latest/).

### Code Quality
`kb_python` uses `flake8` and `yapf` to ensure code quality and `nose`
`kb-python` uses `flake8` and `yapf` to ensure code quality and `nose`
to run unittests. All necessary dependencies for development can be installed
by running `pip install -r dev-requirements.txt`.

Expand All @@ -40,7 +40,7 @@ version and release the new version to Pypi,
1. Run `make bump_patch`, `make bump_minor` or `make bump_major` depending
on which version to bump. This will make a new commit and create a new tag
with the new version.
2. Push the commit and tag with `git push --tag`.
2. Push the commit and tag with `make push_release`.
3. Go to the `releases` tab on Github. Select the version that was just commited.
`Edit tag`, write a description, and `Publish release`.
4. A Github Actions workflow will be triggered to build and upload the updated
Expand Down
43 changes: 42 additions & 1 deletion docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,50 @@
Welcome to kb-python's documentation!
=====================================

This page contains **DEVELOPER** documentation for `kb-python`.
This page contains **DEVELOPER** documentation for ``kb-python``.
For user documentation and tutorials, please go to `kallisto | bustools <https://www.kallistobus.tools/>`_.

Development Prerequisites
^^^^^^^^^^^^^^^^^^^^^^^^^
There are a couple of things you must set up on your machine so that all of your
commits satisfy code quality and unit-testing requirements. First, install all
necessary packages by running::

pip install -r requirements.txt
pip install -r dev-requirements.txt

Code qualty and unit tests are strictly enforced for every pull request via
Github actions.

Code Quality
""""""""""""
``kb-python`` uses ``flake8`` and ``yapf`` to ensure code quality. The easiest
way to set these up so that they run automatically for every commit is to install
``pre-commit`` hooks by running::

pre-commit install

at the root of the repository.

Unit-testing
""""""""""""
``kb-python`` uses ``nose`` to run unit tests. There is a convenient Makefile
rule in place to run all tests.::

make test

Releasing New Versions
^^^^^^^^^^^^^^^^^^^^^^
This section walks you through, step-by-step, how to release a new version.

1. Make sure you are on the up-to-date ``master`` branch.
2. Run ``make bump_patch``, ``make bump_minor``, or ``make bump_major`` depending
on what version you will be bumping.
3. Run ``make push_release``. This will push the new commit and tag.
4. Go to the `releases` tab on Github.
5. Select the new release, edit the release description, and `Publish release`.
6. A Github action will automatically trigger to upload the new release to PyPi.

.. toctree::
:maxdepth: 2
:caption: Contents:

0 comments on commit 19239e1

Please sign in to comment.