Skip to content

Commit

Permalink
Removed webcolors dependency
Browse files Browse the repository at this point in the history
Signed-off-by: tinytengu <[email protected]>
  • Loading branch information
tinytengu committed Sep 8, 2022
1 parent c072459 commit 4f43658
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 18 deletions.
14 changes: 1 addition & 13 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "tinydenticon"
version = "0.1.0"
version = "0.1.1"
description = "identicon.js compatible Identicon implementation in Python 3"
authors = ["tinytengu <[email protected]>"]
license = "GPL-3.0-only"
Expand All @@ -10,7 +10,6 @@ repository = "https://github.com/tinytengu/tinydenticon"
[tool.poetry.dependencies]
python = "^3.10"
Pillow = "^9.2.0"
webcolors = "^1.12"
pycryptodomex = "^3.15.0"


Expand Down
1 change: 0 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
Pillow==9.2.0
pycryptodomex==3.15.0
webcolors==1.12
3 changes: 1 addition & 2 deletions tinydenticon/utils.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import webcolors
from Cryptodome.Hash import SHA512


Expand Down Expand Up @@ -64,7 +63,7 @@ def hue_to_rgb(hue):


def rgb_percent_to_rgb(rgb_percent: tuple[str]) -> tuple[float]:
return webcolors.rgb_percent_to_rgb(["%i%%" % (p * 100) for p in rgb_percent])
return [(percent * 100) / 255 for percent in rgb_percent]


def hsl_to_rgb_percent(hue, saturation, lightness):
Expand Down

0 comments on commit 4f43658

Please sign in to comment.