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
1 change: 0 additions & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ concurrency: pypi-publish
jobs:
publish:
runs-on: ubuntu-24.04
environment: pypi
permissions:
contents: read
id-token: write
Expand Down
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,13 @@ For HPLuv (the pastel variant), use `hpluv_to_hex`, `hpluv_to_rgb`, `hex_to_hplu

Run `python -m unittest discover -v`.

## Publishing to PyPI

* On PyPI, open the `hsluv` project's **Manage → Publishing** page and configure a GitHub Trusted Publisher: owner **`hsluv`**, repository **`hsluv-python`**, workflow **`publish.yml`**.
* Update `__version__` in `hsluv.py` to an unused version (e.g. `5.0.5rc1` for a pre-release) and push the commit to the branch you want to publish.
* Open **Actions → Publish to PyPI → Run workflow**, select that branch, and run it to build and upload to production PyPI. No tag or GitHub release is needed.
* Verify the release on [PyPI](https://pypi.org/project/hsluv/). Published versions cannot be reused.

## Authors

* Robert McGinley ([mcginleyr1](https://github.com/mcginleyr1))
Expand Down
2 changes: 1 addition & 1 deletion hsluv.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
haxe -cp haxe/src hsluv.Hsluv -python hsluv.py
"""

__version__ = '5.0.4'
__version__ = '5.0.5rc1'

from functools import wraps as _wraps, partial as _partial # unexport, see #17
import math as _math # unexport, see #17
Expand Down