summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Matusiak <numerodix@gmail.com>2021-05-05 10:24:28 +1000
committerMartin Matusiak <numerodix@gmail.com>2021-05-05 10:24:28 +1000
commit9020093e38234a2d7e3aa4555a7bf90f06cad532 (patch)
tree5493d5144cb635e1f2cf641d9b1c3fe8fc907fd4
parente8729fe37f11a895ab7a509200682d7c1ae477b6 (diff)
downloadansicolor-9020093e38234a2d7e3aa4555a7bf90f06cad532.tar.gz
add readme steps for maintainers
-rw-r--r--README.rst35
1 files changed, 35 insertions, 0 deletions
diff --git a/README.rst b/README.rst
index ad1449e..a2dd04c 100644
--- a/README.rst
+++ b/README.rst
@@ -50,3 +50,38 @@ Take a look at the ``demos`` to see what's possible.
.. _`documentation`: https://ansicolor.readthedocs.org/
+
+
+
+Maintenance tasks
+-----------------
+
+
+Setting up a development environment (Ubuntu)
+^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+
+.. code:: bash
+
+ # if you don't have `mkvirtualenv` & `workon` functions in your shell
+ $ sudo apt install virtualenvwrapper
+
+ $ mkvirtualenv ansicolor
+ (ansicolor) $ pip install -r dev-requirements.txt
+
+
+Running tests
+^^^^^^^^^^^^^
+
+.. code:: bash
+
+ $ py.test
+
+
+Measuring code coverage
+^^^^^^^^^^^^^^^^^^^^^^^
+
+.. code:: bash
+
+ $ py.test --cov=ansicolor
+ $ coverage html
+ # open htmlcov/index.html in the browser \ No newline at end of file