Skip to content

Commit 8bb1291

Browse files
committed
Merge branch 'release/v0.2.6'
2 parents 4ca52f1 + 3608b43 commit 8bb1291

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

62 files changed

+878
-1162
lines changed

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ is available to guide the process: https://www.colour-science.org/contributing/.
1818
- [ ] Pyright static checking has been run and passed.
1919
- [ ] Pre-commit hooks have been run and passed.
2020

21-
<!-- The unit tests can be invoked with `poetry run invoke tests` -->
22-
<!-- Pyright can be started with `pyright --skipunannotated` -->
21+
<!-- The unit tests can be invoked with `uv run invoke tests` -->
22+
<!-- Pyright can be started with `pyright --threads --skipunannotated` -->
2323

2424
**Documentation**
2525

.github/workflows/continuous-integration-documentation.yml

Lines changed: 9 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@ jobs:
77
name: ${{ matrix.os }} - Python ${{ matrix.python-version }}
88
strategy:
99
matrix:
10-
os: [ubuntu-22.04]
11-
python-version: [3.12]
10+
os: [ubuntu-latest]
11+
python-version: [3.13]
1212
fail-fast: false
1313
runs-on: ${{ matrix.os }}
1414
steps:
15-
- uses: actions/checkout@v1
15+
- uses: actions/checkout@v4
1616
- name: Environment Variables
1717
run: |
1818
echo "CI_PYTHON_VERSION=${{ matrix.python-version }}" >> $GITHUB_ENV
@@ -22,27 +22,23 @@ jobs:
2222
echo "COLOUR_SCIENCE__DOCUMENTATION_BUILD=True" >> $GITHUB_ENV
2323
shell: bash
2424
- name: Set up Python ${{ matrix.python-version }}
25-
uses: actions/setup-python@v4
25+
uses: actions/setup-python@v5
2626
with:
2727
python-version: ${{ matrix.python-version }}
2828
- name: Install Dependencies
2929
run: |
3030
sudo apt-get update
3131
sudo apt-get --yes install latexmk texlive-full
32-
- name: Install Poetry
33-
env:
34-
POETRY_VERSION: 1.4.0
32+
- name: Install uv
3533
run: |
36-
curl -sSL https://install.python-poetry.org | POETRY_HOME=$HOME/.poetry python3 -
37-
echo "$HOME/.poetry/bin" >> $GITHUB_PATH
34+
pip install uv
3835
shell: bash
3936
- name: Install Package Dependencies
4037
run: |
41-
poetry run python -m pip install --upgrade pip
42-
poetry install
43-
poetry run python -c "import imageio;imageio.plugins.freeimage.download()"
38+
uv sync --all-extras --no-dev
39+
uv run python -c "import imageio;imageio.plugins.freeimage.download()"
4440
shell: bash
4541
- name: Build Documentation
4642
run: |
47-
poetry run invoke docs
43+
uv run invoke docs
4844
shell: bash

.github/workflows/continuous-integration-quality-unit-tests.yml

Lines changed: 15 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -7,52 +7,49 @@ jobs:
77
name: ${{ matrix.os }} - Python ${{ matrix.python-version }}
88
strategy:
99
matrix:
10-
os: [ubuntu-22.04]
11-
python-version: [3.12]
10+
os: [ubuntu-latest]
11+
python-version: [3.13]
1212
fail-fast: false
1313
runs-on: ${{ matrix.os }}
1414
steps:
15-
- uses: actions/checkout@v1
15+
- uses: actions/checkout@v4
1616
- name: Environment Variables
1717
run: |
1818
echo "CI_PYTHON_VERSION=${{ matrix.python-version }}" >> $GITHUB_ENV
1919
echo "CI_PACKAGE=colour_datasets" >> $GITHUB_ENV
2020
echo "CI_SHA=${{ github.sha }}" >> $GITHUB_ENV
2121
echo "COVERALLS_REPO_TOKEN=${{ secrets.COVERALLS_REPO_TOKEN }}" >> $GITHUB_ENV
2222
shell: bash
23-
- name: Set up Python 3.9 for Pre-Commit
24-
uses: actions/setup-python@v4
23+
- name: Set up Python 3.10 for Pre-Commit
24+
uses: actions/setup-python@v5
2525
with:
26-
python-version: 3.9
26+
python-version: "3.10"
2727
- name: Set up Python ${{ matrix.python-version }}
28-
uses: actions/setup-python@v4
28+
uses: actions/setup-python@v5
2929
with:
3030
python-version: ${{ matrix.python-version }}
31-
- name: Install Poetry
32-
env:
33-
POETRY_VERSION: 1.4.0
31+
- name: Install uv
3432
run: |
35-
curl -sSL https://install.python-poetry.org | POETRY_HOME=$HOME/.poetry python3 -
36-
echo "$HOME/.poetry/bin" >> $GITHUB_PATH
33+
pip install uv
3734
shell: bash
3835
- name: Install Package Dependencies
3936
run: |
40-
poetry run python -m pip install --upgrade pip
41-
poetry install
37+
uv sync --all-extras --no-dev
38+
uv run python -c "import imageio;imageio.plugins.freeimage.download()"
4239
shell: bash
4340
- name: Pre-Commit (All Files)
4441
run: |
45-
poetry run pre-commit run --all-files
42+
uv run pre-commit run --all-files
4643
shell: bash
4744
- name: Test Optimised Python Execution
4845
run: |
49-
poetry run python -OO -c "import $CI_PACKAGE"
46+
uv run python -OO -c "import $CI_PACKAGE"
5047
shell: bash
5148
- name: Test with Pytest
5249
run: |
53-
poetry run python -W ignore -m pytest --doctest-modules --ignore=$CI_PACKAGE/examples --cov=$CI_PACKAGE $CI_PACKAGE
50+
uv run python -W ignore -m pytest --doctest-modules --ignore=$CI_PACKAGE/examples --cov=$CI_PACKAGE $CI_PACKAGE
5451
shell: bash
5552
- name: Upload Coverage to coveralls.io
5653
run: |
57-
if [ -z "$COVERALLS_REPO_TOKEN" ]; then echo \"COVERALLS_REPO_TOKEN\" secret is undefined!; else poetry run coveralls; fi
54+
if [ -z "$COVERALLS_REPO_TOKEN" ]; then echo \"COVERALLS_REPO_TOKEN\" secret is undefined!; else uv run coveralls; fi
5855
shell: bash

.github/workflows/continuous-integration-static-type-checking.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,18 +12,18 @@ jobs:
1212
fail-fast: false
1313
runs-on: ${{ matrix.os }}
1414
steps:
15-
- uses: actions/checkout@v1
15+
- uses: actions/checkout@v4
1616
- name: Environment Variables
1717
run: |
1818
echo "CI_PACKAGE=colour_datasets" >> $GITHUB_ENV
1919
shell: bash
2020
- name: Set up Python ${{ matrix.python-version }}
21-
uses: actions/setup-python@v4
21+
uses: actions/setup-python@v5
2222
with:
2323
python-version: ${{ matrix.python-version }}
2424
- name: Install Package Dependencies
2525
run: |
26-
pip install -r requirements.txt
26+
cat requirements.txt | grep -Eo '(^[^#]+)' | xargs -n 1 pip install || true
2727
- name: Static Type Checking
2828
run: |
29-
pyright --skipunannotated
29+
pyright --threads --skipunannotated

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
.fleet
77
.idea
88
.ipynb_checkpoints
9+
.python-version
910
.sandbox
1011
.vs
1112
.vscode
@@ -18,4 +19,4 @@ docs/_build
1819
docs/generated
1920
references
2021
zenodo
21-
poetry.lock
22+
uv.lock

.pre-commit-config.yaml

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -26,28 +26,23 @@ repos:
2626
- id: flynt
2727
args: [--verbose]
2828
- repo: https://github.com/PyCQA/isort
29-
rev: "5.12.0"
29+
rev: "5.13.2"
3030
hooks:
3131
- id: isort
3232
- repo: https://github.com/astral-sh/ruff-pre-commit
33-
rev: "v0.1.6"
33+
rev: "v0.1.14"
3434
hooks:
35+
- id: ruff-format
3536
- id: ruff
36-
- repo: https://github.com/psf/black-pre-commit-mirror
37-
rev: 23.11.0
38-
hooks:
39-
- id: black
40-
language_version: python3.9
4137
- repo: https://github.com/adamchainz/blacken-docs
4238
rev: 1.16.0
4339
hooks:
4440
- id: blacken-docs
45-
language_version: python3.9
41+
language_version: python3.10
4642
- repo: https://github.com/pre-commit/mirrors-prettier
4743
rev: "v3.1.0"
4844
hooks:
4945
- id: prettier
50-
exclude: config-aces-reference.ocio.yaml
5146
- repo: https://github.com/pre-commit/pygrep-hooks
5247
rev: "v1.10.0"
5348
hooks:

CONTRIBUTORS.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Contributors
44
Development & Technical Support
55
-------------------------------
66

7-
- **Thomas Mansencal**, *Technology Supervisor @ Wētā FX*
7+
- **Thomas Mansencal**, *Principal Pipeline Programmer @ Epic Games*
88

99
Project coordination, overall development.
1010

README.rst

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Colour - Datasets
1212
:target: https://coveralls.io/r/colour-science/colour-datasets
1313
:alt: Coverage Status
1414
.. |codacy| image:: https://img.shields.io/codacy/grade/83345fbde65545d2a4499f32e72866ed/develop.svg?style=flat-square
15-
:target: https://www.codacy.com/app/colour-science/colour-datasets
15+
:target: https://app.codacy.com/gh/colour-science/colour-datasets
1616
:alt: Code Grade
1717
.. |version| image:: https://img.shields.io/pypi/v/colour-datasets.svg?style=flat-square
1818
:target: https://pypi.org/project/colour-datasets
@@ -44,7 +44,7 @@ when trying to access or use colour science datasets:
4444

4545
- No straightforward ingestion path for dataset content.
4646
- No simple loading mechanism for dataset content.
47-
- Unavailability of the dataset, e.g. download url is down, dataset content is
47+
- Unavailability of the dataset, e.g., download url is down, dataset content is
4848
passed directly from hand to hand.
4949
- No information regarding the definitive origination of the dataset.
5050

@@ -160,14 +160,14 @@ Primary Dependencies
160160

161161
**Colour - Datasets** requires various dependencies in order to run:
162162

163-
- `python >= 3.9, < 4 <https://www.python.org/download/releases>`__
163+
- `python >= 3.10, < 3.14 <https://www.python.org/download/releases>`__
164164
- `cachetools <https://pypi.org/project/cachetools>`__
165-
- `colour-science >= 4.3 <https://pypi.org/project/colour-science>`__
165+
- `colour-science >= 4.4 <https://pypi.org/project/colour-science>`__
166166
- `imageio >= 2, < 3 <https://imageio.github.io>`__
167-
- `numpy >= 1.22, < 2 <https://pypi.org/project/numpy>`__
168-
- `scipy >= 1.8, < 2 <https://pypi.org/project/scipy>`__
167+
- `numpy >= 1.24, < 3 <https://pypi.org/project/numpy>`__
168+
- `scipy >= 1.10, < 2 <https://pypi.org/project/scipy>`__
169169
- `tqdm <https://pypi.org/project/tqdm>`__
170-
- `xlrd <https://pypi.org/project/xlrd>`__
170+
- `xlrd >=1.2, <2 <https://pypi.org/project/xlrd>`__
171171

172172
Pypi
173173
~~~~

TODO.rst

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,34 +6,34 @@ TODO
66

77
- colour_datasets/__init__.py
88

9-
- Line 78 : # TODO: Remove legacy printing support when deemed appropriate.
9+
- Line 74 : # TODO: Remove legacy printing support when deemed appropriate.
1010

1111

1212
- colour_datasets/records/zenodo.py
1313

14-
- Line 450 : # TODO: Remove the following space escaping: The new Zenodo API is not quoting filenames properly thus we are temporarily escaping spaces for now. https://github.com/colour-science/colour-datasets/issues/ 36issuecomment-1773464695
14+
- Line 433 : # TODO: Remove the following space escaping: The new Zenodo API is not quoting filenames properly thus we are temporarily escaping spaces for now. https://github.com/colour-science/colour-datasets/issues/ 36issuecomment-1773464695
1515

1616

1717
- colour_datasets/utilities/common.py
1818

19-
- Line 42 : # TODO: Use *colour* definition.
19+
- Line 43 : # TODO: Use *colour* definition.
2020

2121

2222
- colour_datasets/loaders/kuopio.py
2323

24-
- Line 310 : # TODO: Implement support for *Natural Colors*: https://sandbox.zenodo.org/record/315640 http://www.uef.fi/web/spectral/natural-colors
24+
- Line 304 : # TODO: Implement support for *Natural Colors*: https://sandbox.zenodo.org/record/315640 http://www.uef.fi/web/spectral/natural-colors
2525

2626

2727
- colour_datasets/loaders/xrite2016.py
2828

29-
- Line 109 : # TODO: Implement support for "CGATS" file format in "Colour": https://github.com/colour-science/colour/issues/354
29+
- Line 108 : # TODO: Implement support for "CGATS" file format in "Colour": https://github.com/colour-science/colour/issues/354
3030

3131

3232
- colour_datasets/loaders/dyer2017.py
3333

3434
- Line 141 : # TODO: Re-instate "manufacturer", "model", "illuminant" and "type" attributes according to outcome of https://github.com/ampas/rawtoaces/issues/114. Those attributes are currently stored in "self._kwargs".
35-
- Line 928 : # TODO: Re-instate "manufacturer", "model", "illuminant" and "type" attributes according to outcome of https://github.com/ampas/rawtoaces/issues/114.
36-
- Line 1430 : # TODO: Re-instate "manufacturer", "model", "illuminant" and "type" attributes according to outcome of https://github.com/ampas/rawtoaces/issues/114.
35+
- Line 923 : # TODO: Re-instate "manufacturer", "model", "illuminant" and "type" attributes according to outcome of https://github.com/ampas/rawtoaces/issues/114.
36+
- Line 1420 : # TODO: Re-instate "manufacturer", "model", "illuminant" and "type" attributes according to outcome of https://github.com/ampas/rawtoaces/issues/114.
3737

3838
About
3939
-----

colour_datasets/__init__.py

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -51,10 +51,8 @@
5151

5252
__major_version__ = "0"
5353
__minor_version__ = "2"
54-
__change_version__ = "5"
55-
__version__ = ".".join(
56-
(__major_version__, __minor_version__, __change_version__)
57-
)
54+
__change_version__ = "6"
55+
__version__ = ".".join((__major_version__, __minor_version__, __change_version__))
5856

5957
try:
6058
_version = (
@@ -69,9 +67,7 @@
6967
except Exception:
7068
_version = __version__
7169

72-
colour.utilities.ANCILLARY_COLOUR_SCIENCE_PACKAGES[ # pyright: ignore
73-
"colour-datasets"
74-
] = _version
70+
colour.utilities.ANCILLARY_COLOUR_SCIENCE_PACKAGES["colour-datasets"] = _version # pyright: ignore
7571

7672
del _version
7773

0 commit comments

Comments
 (0)