Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 7 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,14 @@ jobs:
- name: Run the Test Suite
run: |-
set -x
pip install -U setuptools # for Python >=3.12
pip install pytest
python setup.py sdist
python -m pip install build pytest
python -m build
cd dist/
tar xf hsluv-*.tar.gz
cd hsluv-*/
python -m pip install .
pytest -v tests/
cd ..
python -m pip install --force-reinstall hsluv-*.whl
python -c 'import hsluv; from importlib.metadata import version; assert hsluv.__version__ == version("hsluv")'
python -m unittest discover -s hsluv-*/tests -v
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,9 @@ For HPLuv (the pastel variant), use `hpluv_to_hex`, `hpluv_to_rgb`, `hex_to_hplu

## Testing

Run `python setup.py test`.
Run `python -m unittest discover -v`.

## Authors

* Robert McGinley ([mcginleyr1](https://github.com/mcginleyr1))
* Alexei Boronine ([boronine](https://github.com/boronine))

38 changes: 38 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
[build-system]
requires = ["setuptools>=77.0.3"]
build-backend = "setuptools.build_meta"

[project]
name = "hsluv"
dynamic = ["version"]
description = "Human-friendly HSL"
readme = "README.md"
license = "MIT"
license-files = ["LICENSE.txt"]
authors = [{email = "[email protected]"}]
requires-python = ">=3.11"
keywords = ["color", "hsl", "cie", "cieluv", "colorwheel", "hsluv", "hpluv"]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"Operating System :: OS Independent",
"Topic :: Software Development",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Programming Language :: Python :: 3.15",
"Programming Language :: Python :: 3 :: Only",
]

[project.urls]
Homepage = "https://www.hsluv.org"
"Bug Tracker" = "https://github.com/hsluv/hsluv-python/issues"
"Source Code" = "https://github.com/hsluv/hsluv-python"

[tool.setuptools]
py-modules = ["hsluv"]

[tool.setuptools.dynamic]
version = {attr = "hsluv.__version__"}
2 changes: 0 additions & 2 deletions setup.cfg

This file was deleted.

40 changes: 0 additions & 40 deletions setup.py

This file was deleted.