Skip to content

Commit

Permalink
Documentation update (#29)
Browse files Browse the repository at this point in the history
* Add human-readable colours (#18)

* Add human-readable colours to output

* Update test to work with human-readable colors

* Add webcolors dependency

Co-authored-by: MarvinKweyu <mkweyu1@gmail.com>
Co-authored-by: Clifford Onyonka <jsjamessakho@gmail.com>

* docs: update ColorDetect method documentation for human readability

* style: code linting

* chore: update release docs

Co-authored-by: Clifford Onyonka <jsjamessakho@gmail.com>
  • Loading branch information
MarvinKweyu and onyonkaclifford authored Feb 2, 2021
1 parent 1689200 commit c0077e0
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 5 deletions.
15 changes: 15 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,21 @@
ColorDetect Changelog
=====================


.. _1.3.0:
1.3.0 (02-02-2021)
====================

Features
--------

- Add a return of human readable colors.

Documentation
-------------

- Update ColorDetect module documentation to show method params

.. _1.3.0rc:
1.3.0rc (18-01-2021)
====================
Expand Down
4 changes: 1 addition & 3 deletions colordetect/color_detect.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,7 @@ def __init__(self, image):

self.color_description = {}

def get_color_count(
self, color_count: int = 5, color_format: str = "human_readable"
) -> dict:
def get_color_count(self, color_count: int = 5, color_format: str = "human_readable") -> dict:
"""
.. _get_color_count:
get_color_count
Expand Down
2 changes: 1 addition & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
author = "Marvin Kweyu"

# The full version, including alpha/beta/rc tags
release = "1.3.0rc"
release = "1.3.0"

# -- General configuration ---------------------------------------------------

Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

setuptools.setup(
name="ColorDetect",
version="1.3.0rc",
version="1.3.0",
author="Marvin Kweyu",
author_email="mkweyu1@gmail.com",
description="Detect and recognize colors in images or video",
Expand Down

0 comments on commit c0077e0

Please sign in to comment.