Skip to content

Commit

Permalink
Fix #5
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexei Boronine committed Oct 11, 2015
1 parent 79819f4 commit bb150e1
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 6 deletions.
3 changes: 2 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,6 @@ language: python
python:
- "2.6"
- "2.7"
- "3.2"
- "3.4"
- "3.5"
script: "python setup.py test"
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[![Build Status](https://travis-ci.org/husl-colors/husl.py.svg?branch=master)](http://travis-ci.org/husl-colors/husl.py)
[![Build Status](https://travis-ci.org/husl-colors/husl-python.svg?branch=master)](http://travis-ci.org/husl-colors/husl-python)
[![Package Version](https://img.shields.io/pypi/v/husl.svg)](https://pypi.python.org/pypi/husl/)

A Python implementation of [HUSL](http://www.husl-colors.org) (revision 3).
Expand Down
4 changes: 2 additions & 2 deletions husl.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import operator
import math

__version__ = "4.0.2"
__version__ = "4.0.3"


m = [
Expand Down Expand Up @@ -163,7 +163,7 @@ def rgb_prepare(triple):
# instead of Python 2 which is rounded to 5.0 which caused
# a couple off by one errors in the tests. Tests now all pass
# in Python 2 and Python 3
ret.append(round(ch * 255 + 0.001, 0))
ret.append(round(ch * 255 + 0.001))

return ret

Expand Down
6 changes: 4 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,13 @@
url="http://www.husl-colors.org",
keywords="color hsl cie cieluv colorwheel",
classifiers=[
"Development Status :: 4 - Beta",
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Topic :: Software Development"
"Topic :: Software Development",
"Programming Language :: Python :: 2",
"Programming Language :: Python :: 3"
],
py_modules=["husl"],
test_suite="tests.husl_test"
Expand Down

0 comments on commit bb150e1

Please sign in to comment.