New Upstream Snapshot - python-hsluv

Ready changes

Summary

Merged new upstream version: 5.0.3+git20221210.0.03aaa12 (was: 5.0.3+git20220618.1.e08194f).

Resulting package

Built on 2022-12-16T18:20 (took 5m23s)

The resulting binary packages can be installed (if you have the apt repository enabled) by running one of:

apt install -t fresh-snapshots python3-hsluv

Lintian Result

Diff

diff --git a/.gitignore b/.gitignore
deleted file mode 100644
index 66889dd..0000000
--- a/.gitignore
+++ /dev/null
@@ -1,9 +0,0 @@
-*.pyc
-*.pyo
-*.egg-info
-/venv
-/build
-/dist
-# IntelliJ IDEA / PyCharm
-/.idea
-*.iml
diff --git a/.travis.yml b/.travis.yml
deleted file mode 100644
index b3e35ce..0000000
--- a/.travis.yml
+++ /dev/null
@@ -1,7 +0,0 @@
-language: python
-python:
-  - "3.6"
-  - "3.7"
-  - "3.8"
-  - "3.9"
-script: "python setup.py sdist && cd dist/ && tar xf hsluv-*.tar.gz && cd hsluv-*/ && python setup.py test"
diff --git a/PKG-INFO b/PKG-INFO
new file mode 100644
index 0000000..3a854ec
--- /dev/null
+++ b/PKG-INFO
@@ -0,0 +1,71 @@
+Metadata-Version: 2.1
+Name: hsluv
+Version: 5.0.3
+Summary: Human-friendly HSL
+Home-page: https://www.hsluv.org
+Author-email: alexei@boronine.com
+License: MIT
+Project-URL: Bug Tracker, https://github.com/hsluv/hsluv-python/issues
+Project-URL: Source Code, https://github.com/hsluv/hsluv-python
+Keywords: color hsl cie cieluv colorwheel hsluv hpluv
+Classifier: Development Status :: 5 - Production/Stable
+Classifier: Intended Audience :: Developers
+Classifier: License :: OSI Approved :: MIT License
+Classifier: Operating System :: OS Independent
+Classifier: Topic :: Software Development
+Classifier: Programming Language :: Python :: 3
+Classifier: Programming Language :: Python :: 3.7
+Classifier: Programming Language :: Python :: 3.8
+Classifier: Programming Language :: Python :: 3.9
+Classifier: Programming Language :: Python :: 3.10
+Classifier: Programming Language :: Python :: 3 :: Only
+Requires-Python: >=3.7
+Description-Content-Type: text/markdown
+License-File: LICENSE.txt
+
+[![Build Status](https://github.com/hsluv/hsluv-python/actions/workflows/test.yml/badge.svg)](https://github.com/hsluv/hsluv-python/actions/workflows/test.yml)
+[![Package Version](https://img.shields.io/pypi/v/hsluv.svg)](https://pypi.python.org/pypi/hsluv/)
+
+A Python implementation of [HSLuv](https://www.hsluv.org) (revision 4).
+
+## Installation
+
+`pip install hsluv`
+
+Python 2 users: `pip install hsluv==5.0.0`
+
+## Usage
+
+> This library does not hide (clamp) floating point error, e.g. you might receive a value outside
+> of the expected range. If you wish to display the outputs of this library, consider rounding them 
+> for your purpose. The floating point error has not been quantified, but at least 10 decimal digits 
+> should be free of it.
+
+### `hsluv_to_hex([hue, saturation, lightness])`
+
+`hue` is a float between 0 and 360, `saturation` and `lightness` are floats between 0 and 100. This 
+function returns the resulting color as a hex string.
+
+### `hsluv_to_rgb([hue, saturation, lightness])`
+
+Like above, but returns a list of 3 floats between 0 and 1, for each RGB channel.
+
+### `hex_to_hsluv(hex)`
+
+Takes a hex string and returns the HSLuv color as a list of floats as defined above.
+
+### `rgb_to_hsluv([red, green, blue])`
+
+Like above, but `red`, `green` and `blue` are passed as floats between 0 and 1.
+
+For HPLuv (the pastel variant), use `hpluv_to_hex`, `hpluv_to_rgb`, `hex_to_hpluv` and `rgb_to_hpluv`.
+
+## Testing
+
+Run `python setup.py test`.
+
+## Authors
+
+* Robert McGinley ([mcginleyr1](https://github.com/mcginleyr1))
+* Alexei Boronine ([boronine](https://github.com/boronine))
+
diff --git a/README.md b/README.md
index f7b45f0..96ac227 100644
--- a/README.md
+++ b/README.md
@@ -1,4 +1,4 @@
-[![Build Status](https://travis-ci.org/hsluv/hsluv-python.svg?branch=master)](https://travis-ci.org/hsluv/hsluv-python)
+[![Build Status](https://github.com/hsluv/hsluv-python/actions/workflows/test.yml/badge.svg)](https://github.com/hsluv/hsluv-python/actions/workflows/test.yml)
 [![Package Version](https://img.shields.io/pypi/v/hsluv.svg)](https://pypi.python.org/pypi/hsluv/)
 
 A Python implementation of [HSLuv](https://www.hsluv.org) (revision 4).
@@ -7,6 +7,8 @@ A Python implementation of [HSLuv](https://www.hsluv.org) (revision 4).
 
 `pip install hsluv`
 
+Python 2 users: `pip install hsluv==5.0.0`
+
 ## Usage
 
 > This library does not hide (clamp) floating point error, e.g. you might receive a value outside
diff --git a/debian/changelog b/debian/changelog
index 86a25f9..e9aa5aa 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,8 +1,10 @@
-python-hsluv (5.0.2-2) UNRELEASED; urgency=medium
+python-hsluv (5.0.3+git20221210.0.03aaa12-1) UNRELEASED; urgency=medium
 
   * Update standards version to 4.6.1, no changes needed.
+  * New upstream snapshot.
+  * New upstream snapshot.
 
- -- Debian Janitor <janitor@jelmer.uk>  Sat, 03 Sep 2022 11:21:48 -0000
+ -- Debian Janitor <janitor@jelmer.uk>  Fri, 16 Dec 2022 18:16:55 -0000
 
 python-hsluv (5.0.2-1) unstable; urgency=medium
 
diff --git a/hsluv.egg-info/PKG-INFO b/hsluv.egg-info/PKG-INFO
new file mode 100644
index 0000000..3a854ec
--- /dev/null
+++ b/hsluv.egg-info/PKG-INFO
@@ -0,0 +1,71 @@
+Metadata-Version: 2.1
+Name: hsluv
+Version: 5.0.3
+Summary: Human-friendly HSL
+Home-page: https://www.hsluv.org
+Author-email: alexei@boronine.com
+License: MIT
+Project-URL: Bug Tracker, https://github.com/hsluv/hsluv-python/issues
+Project-URL: Source Code, https://github.com/hsluv/hsluv-python
+Keywords: color hsl cie cieluv colorwheel hsluv hpluv
+Classifier: Development Status :: 5 - Production/Stable
+Classifier: Intended Audience :: Developers
+Classifier: License :: OSI Approved :: MIT License
+Classifier: Operating System :: OS Independent
+Classifier: Topic :: Software Development
+Classifier: Programming Language :: Python :: 3
+Classifier: Programming Language :: Python :: 3.7
+Classifier: Programming Language :: Python :: 3.8
+Classifier: Programming Language :: Python :: 3.9
+Classifier: Programming Language :: Python :: 3.10
+Classifier: Programming Language :: Python :: 3 :: Only
+Requires-Python: >=3.7
+Description-Content-Type: text/markdown
+License-File: LICENSE.txt
+
+[![Build Status](https://github.com/hsluv/hsluv-python/actions/workflows/test.yml/badge.svg)](https://github.com/hsluv/hsluv-python/actions/workflows/test.yml)
+[![Package Version](https://img.shields.io/pypi/v/hsluv.svg)](https://pypi.python.org/pypi/hsluv/)
+
+A Python implementation of [HSLuv](https://www.hsluv.org) (revision 4).
+
+## Installation
+
+`pip install hsluv`
+
+Python 2 users: `pip install hsluv==5.0.0`
+
+## Usage
+
+> This library does not hide (clamp) floating point error, e.g. you might receive a value outside
+> of the expected range. If you wish to display the outputs of this library, consider rounding them 
+> for your purpose. The floating point error has not been quantified, but at least 10 decimal digits 
+> should be free of it.
+
+### `hsluv_to_hex([hue, saturation, lightness])`
+
+`hue` is a float between 0 and 360, `saturation` and `lightness` are floats between 0 and 100. This 
+function returns the resulting color as a hex string.
+
+### `hsluv_to_rgb([hue, saturation, lightness])`
+
+Like above, but returns a list of 3 floats between 0 and 1, for each RGB channel.
+
+### `hex_to_hsluv(hex)`
+
+Takes a hex string and returns the HSLuv color as a list of floats as defined above.
+
+### `rgb_to_hsluv([red, green, blue])`
+
+Like above, but `red`, `green` and `blue` are passed as floats between 0 and 1.
+
+For HPLuv (the pastel variant), use `hpluv_to_hex`, `hpluv_to_rgb`, `hex_to_hpluv` and `rgb_to_hpluv`.
+
+## Testing
+
+Run `python setup.py test`.
+
+## Authors
+
+* Robert McGinley ([mcginleyr1](https://github.com/mcginleyr1))
+* Alexei Boronine ([boronine](https://github.com/boronine))
+
diff --git a/hsluv.egg-info/SOURCES.txt b/hsluv.egg-info/SOURCES.txt
new file mode 100644
index 0000000..6f4e2dd
--- /dev/null
+++ b/hsluv.egg-info/SOURCES.txt
@@ -0,0 +1,13 @@
+LICENSE.txt
+MANIFEST.in
+README.md
+hsluv.py
+setup.cfg
+setup.py
+hsluv.egg-info/PKG-INFO
+hsluv.egg-info/SOURCES.txt
+hsluv.egg-info/dependency_links.txt
+hsluv.egg-info/top_level.txt
+tests/__init__.py
+tests/snapshot-rev4.json
+tests/test_hsluv.py
\ No newline at end of file
diff --git a/hsluv.egg-info/dependency_links.txt b/hsluv.egg-info/dependency_links.txt
new file mode 100644
index 0000000..8b13789
--- /dev/null
+++ b/hsluv.egg-info/dependency_links.txt
@@ -0,0 +1 @@
+
diff --git a/hsluv.egg-info/top_level.txt b/hsluv.egg-info/top_level.txt
new file mode 100644
index 0000000..d93f257
--- /dev/null
+++ b/hsluv.egg-info/top_level.txt
@@ -0,0 +1 @@
+hsluv
diff --git a/hsluv.py b/hsluv.py
index 20cee71..30eac00 100644
--- a/hsluv.py
+++ b/hsluv.py
@@ -5,23 +5,24 @@ yourself, clone https://github.com/hsluv/hsluv and run:
     haxe -cp haxe/src hsluv.Hsluv -python hsluv.py
 """
 
+__version__ = '5.0.3'
+
 from functools import wraps as _wraps, partial as _partial  # unexport, see #17
 import math as _math  # unexport, see #17
 
-
-__version__ = '5.0.2'
-
+# XYZ-to-sRGB matrix
 _m = [[3.240969941904521, -1.537383177570093, -0.498610760293],
       [-0.96924363628087, 1.87596750150772, 0.041555057407175],
       [0.055630079696993, -0.20397695888897, 1.056971514242878]]
-_min_v = [[0.41239079926595, 0.35758433938387, 0.18048078840183],
+# sRGB-to-XYZ matrix
+_m_inv = [[0.41239079926595, 0.35758433938387, 0.18048078840183],
           [0.21263900587151, 0.71516867876775, 0.072192315360733],
           [0.019330818715591, 0.11919477979462, 0.95053215224966]]
 _ref_y = 1.0
 _ref_u = 0.19783000664283
 _ref_v = 0.46831999493879
-_kappa = 903.2962962
-_epsilon = 0.0088564516
+_kappa = 903.2962962 # 24389/27 == (29/3)**3
+_epsilon = 0.0088564516 # 216/24389 == (6/29)**3
 
 
 def _normalize_output(conversion):
@@ -125,9 +126,9 @@ def rgb_to_xyz(_hx_tuple):
     rgbl = (_to_linear(_hx_tuple[0]),
             _to_linear(_hx_tuple[1]),
             _to_linear(_hx_tuple[2]))
-    return (_dot_product(_min_v[0], rgbl),
-            _dot_product(_min_v[1], rgbl),
-            _dot_product(_min_v[2], rgbl))
+    return (_dot_product(_m_inv[0], rgbl),
+            _dot_product(_m_inv[1], rgbl),
+            _dot_product(_m_inv[2], rgbl))
 
 
 def xyz_to_luv(_hx_tuple):
diff --git a/setup.cfg b/setup.cfg
index 2a9acf1..adf5ed7 100644
--- a/setup.cfg
+++ b/setup.cfg
@@ -1,2 +1,7 @@
 [bdist_wheel]
 universal = 1
+
+[egg_info]
+tag_build = 
+tag_date = 0
+
diff --git a/setup.py b/setup.py
index a1d1dd2..f01f380 100644
--- a/setup.py
+++ b/setup.py
@@ -20,16 +20,20 @@ setup(
         "Operating System :: OS Independent",
         "Topic :: Software Development",
         "Programming Language :: Python :: 3",
-        "Programming Language :: Python :: 3.6",
         "Programming Language :: Python :: 3.7",
         "Programming Language :: Python :: 3.8",
         "Programming Language :: Python :: 3.9",
+        "Programming Language :: Python :: 3.10",
         "Programming Language :: Python :: 3 :: Only",
     ],
-    python_requires='>=3.6',
+    python_requires='>=3.7',
     setup_requires=[
         'setuptools>=38.6.0',  # for long_description_content_type
     ],
     py_modules=["hsluv"],
-    test_suite="tests.test_hsluv"
+    test_suite="tests.test_hsluv",
+    project_urls={
+        "Bug Tracker": "https://github.com/hsluv/hsluv-python/issues",
+        "Source Code": "https://github.com/hsluv/hsluv-python",
+    }
 )

Debdiff

[The following lists of changes regard files as different if they have different names, permissions or owners.]

Files in second set of .debs but not in first

-rw-r--r--  root/root   /usr/lib/python3/dist-packages/hsluv-5.0.3.egg-info/PKG-INFO
-rw-r--r--  root/root   /usr/lib/python3/dist-packages/hsluv-5.0.3.egg-info/dependency_links.txt
-rw-r--r--  root/root   /usr/lib/python3/dist-packages/hsluv-5.0.3.egg-info/top_level.txt

Files in first set of .debs but not in second

-rw-r--r--  root/root   /usr/lib/python3/dist-packages/hsluv-5.0.2.egg-info/PKG-INFO
-rw-r--r--  root/root   /usr/lib/python3/dist-packages/hsluv-5.0.2.egg-info/dependency_links.txt
-rw-r--r--  root/root   /usr/lib/python3/dist-packages/hsluv-5.0.2.egg-info/top_level.txt

No differences were encountered in the control files

More details

Full run details