Skip to content

Commit 4716c0a

Browse files
committed
Use *uv* and enable *Python* 3.13.
1 parent f613501 commit 4716c0a

File tree

6 files changed

+48
-61
lines changed

6 files changed

+48
-61
lines changed

.gitignore

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,8 @@
44
.DS_Store
55
.coverage*
66
.idea
7+
.python-version
8+
79
__pycache__
8-
poetry.lock
10+
11+
uv.lock

apps/common.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@
7575

7676
def nuke_format_matrix(M: ArrayLike, decimals: int = 10) -> str:
7777
"""
78-
Format given matrix for usage in *The Foundry Nuke*, i.e. *TCL* code for
78+
Format given matrix for usage in *The Foundry Nuke*, i.e., *TCL* code for
7979
a *ColorMatrix* node.
8080
8181
Parameters

apps/rgb_colourspace_chromatically_adapted_primaries.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848

4949
APP_PATH: str = f"/apps/{__name__.split('.')[-1]}"
5050
"""
51-
App path, i.e. app url.
51+
App path, i.e., app url.
5252
"""
5353

5454
APP_DESCRIPTION: str = (
@@ -206,7 +206,7 @@ def _uid(id_):
206206
className="row",
207207
)
208208
"""
209-
App layout, i.e. :class:`Div` class instance.
209+
App layout, i.e., :class:`Div` class instance.
210210
211211
LAYOUT : Div
212212
"""

apps/rgb_colourspace_transformation_matrix.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252

5353
APP_PATH: str = f"/apps/{__name__.split('.')[-1]}"
5454
"""
55-
App path, i.e. app url.
55+
App path, i.e., app url.
5656
"""
5757

5858
APP_DESCRIPTION: str = (
@@ -221,7 +221,7 @@ def _uid(id_):
221221
className="row",
222222
)
223223
"""
224-
App layout, i.e. :class:`Div` class instance.
224+
App layout, i.e., :class:`Div` class instance.
225225
226226
LAYOUT : Div
227227
"""

pyproject.toml

Lines changed: 37 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,16 @@
1-
[tool.poetry]
1+
[project]
22
name = "colour-dash"
33
version = "0.2.7"
44
description = "Various colour science Dash apps built on top of Colour"
5-
license = "BSD-3-Clause"
6-
authors = [ "Colour Developers <colour-developers@colour-science.org>" ]
7-
maintainers = [ "Colour Developers <colour-developers@colour-science.org>" ]
8-
readme = 'README.rst'
9-
repository = "https://github.com/colour-science/colour-dash"
10-
homepage = "https://www.colour-science.org/"
5+
readme = "README.rst"
6+
requires-python = ">=3.10,<3.14"
7+
authors = [
8+
{ name = "Colour Developers", email = "colour-developers@colour-science.org" },
9+
]
10+
maintainers = [
11+
{ name = "Colour Developers", email = "colour-developers@colour-science.org" }
12+
]
13+
license = { text = "BSD-3-Clause" }
1114
keywords = [
1215
"color",
1316
"color-science",
@@ -37,47 +40,37 @@ classifiers = [
3740
"Topic :: Scientific/Engineering",
3841
"Topic :: Software Development"
3942
]
43+
dependencies = [
44+
"colour-science>=0.4.5",
45+
"dash",
46+
"dash-renderer",
47+
"gunicorn",
48+
"imageio>=2,<3",
49+
"numpy>=1.24,<3",
50+
"plotly",
51+
"scipy>=1.10,<2",
52+
"typing-extensions>=4,<5",
53+
]
4054

41-
[tool.poetry.dependencies]
42-
python = ">= 3.9, < 3.12"
43-
colour-science = ">= 0.4.3"
44-
imageio = ">= 2, < 3"
45-
numpy = ">= 1.22, < 2"
46-
scipy = ">= 1.8, < 2"
47-
dash = "*"
48-
dash-renderer = "*"
49-
gunicorn = "*"
50-
plotly = "*"
51-
52-
[tool.poetry.group.dev.dependencies]
53-
black = "*"
54-
blackdoc = "*"
55-
coverage = ">= 6, < 7"
56-
coveralls = "*"
57-
flynt = "*"
58-
invoke = "*"
59-
jupyter = "*"
60-
pre-commit = ">= 3.5"
61-
pyright = "*"
62-
pytest = "*"
63-
pytest-cov = "*"
64-
pytest-xdist = "*"
65-
ruff = "*"
66-
toml = "*"
67-
twine = "*"
55+
[project.urls]
56+
Homepage = "https://www.colour-science.org"
57+
Repository = "https://github.com/colour-science/colour-dash"
58+
Issues = "https://github.com/colour-science/colour-dash/issues"
59+
Changelog = "https://github.com/colour-science/colour-dash/releases"
6860

69-
[tool.black]
70-
line-length = 79
71-
exclude = '''
72-
/(
73-
\.git
74-
| build
75-
| dist
76-
)/
77-
'''
61+
[tool.uv]
62+
dev-dependencies = [
63+
"coverage",
64+
"coveralls",
65+
"invoke",
66+
"pre-commit",
67+
"pyright",
68+
"toml",
69+
"twine",
70+
]
7871

7972
[tool.codespell]
80-
skip = 'BIBLIOGRAPHY.bib,CONTRIBUTORS.rst,*.ipynb'
73+
skip = "BIBLIOGRAPHY.bib,CONTRIBUTORS.rst,*.ipynb"
8174

8275
[tool.flynt]
8376
line_length=999
@@ -194,7 +187,3 @@ convention = "numpy"
194187

195188
[tool.ruff.format]
196189
docstring-code-format = true
197-
198-
[build-system]
199-
requires = [ "poetry_core>=1.0.0" ]
200-
build-backend = "poetry.core.masonry.api"

tasks.py

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ def clean(ctx: Context, bytecode: bool = False):
5454
Parameters
5555
----------
5656
bytecode : bool, optional
57-
Whether to clean the bytecode files, e.g. *.pyc* files.
57+
Whether to clean the bytecode files, e.g., *.pyc* files.
5858
"""
5959

6060
message_box("Cleaning project...")
@@ -117,12 +117,7 @@ def requirements(ctx: Context):
117117
"""
118118

119119
message_box('Exporting "requirements.txt" file...')
120-
ctx.run(
121-
"poetry export -f requirements.txt "
122-
"--without-hashes "
123-
"--with dev "
124-
"--output requirements.txt"
125-
)
120+
ctx.run('uv export --no-hashes --all-extras | grep -v "-e \\." > requirements.txt')
126121

127122

128123
@task(requirements)

0 commit comments

Comments
 (0)