Skip to content

Commit dead7a5

Browse files
committed
Implement support for Astral's uv.
Signed-off-by: Thomas Mansencal <thomas.mansencal@gmail.com>
1 parent 6fa40a4 commit dead7a5

File tree

3 files changed

+76
-49
lines changed

3 files changed

+76
-49
lines changed

.gitignore

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ dist*
1010
mastercopy
1111
*.pyc
1212
!*.yml
13-
.vscode
13+
.idea/
14+
.venv/
15+
.vscode/
1416

15-
src/apps/ocioview/poetry.lock
17+
src/apps/ocioview/uv.lock

src/apps/ocioview/pyproject.toml

Lines changed: 71 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -1,49 +1,75 @@
1-
[tool.poetry]
1+
[project]
22
name = "ocioview"
33
version = "0.1.0"
44
description = "OpenColorIO config visual editor application"
5-
license = "BSD-3-Clause"
6-
authors = ["Contributors to the OpenColorIO Project"]
5+
requires-python = ">=3.10,<3.14"
6+
authors = [
7+
{ name = "Contributors to the OpenColorIO Project" }
8+
]
9+
maintainers = [
10+
{ name = "Contributors to the OpenColorIO Project" }
11+
]
12+
license = { text = "BSD-3-Clause" }
13+
classifiers = [
14+
"Development Status :: 3 - Alpha",
15+
"Environment :: Console",
16+
"Intended Audience :: Developers",
17+
"Intended Audience :: Science/Research",
18+
"License :: OSI Approved",
19+
"Natural Language :: English",
20+
"Operating System :: OS Independent",
21+
"Programming Language :: Python :: 3",
22+
"Topic :: Scientific/Engineering",
23+
"Topic :: Software Development",
24+
]
25+
dependencies = [
26+
"colour-science>=0.4.5,<0.5",
27+
"colour-visuals",
28+
"imageio>=2,< 3",
29+
"networkx>=3,<4",
30+
"numpy>=1.24,<3",
31+
"opencolorio>=2,<3",
32+
"pygfx>=0.1,<0.3",
33+
"pygments",
34+
"pyopengl",
35+
"pyside6",
36+
"qtawesome",
37+
"scipy>=1.10,<2",
38+
]
39+
40+
[tool.uv.sources]
41+
"colour-visuals" = { git = "https://github.com/colour-science/colour-visuals.git" }
742

8-
[tool.poetry.dependencies]
9-
python = ">= 3.9, < 3.12"
10-
colour-science = {git = "https://github.com/colour-science/colour.git"}
11-
colour-visuals = {git = "https://github.com/colour-science/colour-visuals.git"}
12-
imageio = ">= 2, < 3"
13-
networkx = ">= 2.7, < 3"
14-
numpy = ">= 1.22, < 2"
15-
opencolorio = "*"
16-
pygfx = "*"
17-
pygments = "*"
18-
pyopengl = "*"
19-
pyside6 = "*"
20-
qtawesome = "*"
21-
scipy = ">= 1.8, < 2"
22-
wpgu = "*"
43+
[project.optional-dependencies]
44+
docs = [
45+
"restructuredtext-lint",
46+
"sphinx",
47+
]
2348

24-
[tool.poetry.group.dev.dependencies]
25-
black = "*"
26-
blackdoc = "*"
27-
coverage = "!= 6.3"
28-
coveralls = "*"
29-
flynt = "*"
30-
invoke = "*"
31-
jupyter = "*"
32-
pre-commit = "*"
33-
pyright = "*"
34-
pytest = "*"
35-
pytest-cov = "*"
36-
pytest-qt = "*"
37-
pytest-xdist = "*"
38-
ruff = "*"
39-
toml = "*"
40-
twine = "*"
49+
[tool.uv]
50+
package = true
51+
dev-dependencies = [
52+
"black",
53+
"coverage",
54+
"coveralls",
55+
"hatch",
56+
"invoke",
57+
"jupyter",
58+
"pre-commit",
59+
"pyright",
60+
"pytest",
61+
"pytest-cov",
62+
"pytest-xdist",
63+
"toml",
64+
"twine",
65+
]
4166

42-
[tool.poetry.group.docs.dependencies]
43-
pydata-sphinx-theme = "*"
44-
restructuredtext-lint = "*"
45-
sphinx = "*"
46-
sphinxcontrib-bibtex = "*"
67+
[build-system]
68+
requires = ["hatchling"]
69+
build-backend = "hatchling.build"
70+
71+
[tool.hatch.build.targets.wheel]
72+
packages = [ "ocioview" ]
4773

4874
[tool.black]
4975
line-length = 79
@@ -85,7 +111,7 @@ filterwarnings = [
85111
]
86112

87113
[tool.ruff]
88-
target-version = "py39"
114+
target-version = "py310"
89115
line-length = 88
90116
select = [
91117
"A", # flake8-builtins
@@ -128,7 +154,7 @@ select = [
128154
"TRY", # tryceratops
129155
"UP", # pyupgrade
130156
"W", # pydocstyle
131-
"YTT" # flake8-2020
157+
"YTT", # flake8-2020
132158
]
133159
ignore = [
134160
"B008",
@@ -162,6 +188,7 @@ ignore = [
162188
"RET508",
163189
"TRY003",
164190
"TRY300",
191+
"UP038",
165192
]
166193
typing-modules = ["colour.hints"]
167194
fixable = ["B", "C", "E", "F", "PIE", "RUF", "SIM", "UP", "W"]
@@ -172,6 +199,5 @@ convention = "numpy"
172199
[tool.ruff.per-file-ignores]
173200
"docs/*" = ["INP"]
174201

175-
[build-system]
176-
requires = ["poetry_core>=1.0.0"]
177-
build-backend = "poetry.core.masonry.api"
202+
[tool.ruff.format]
203+
docstring-code-format = true

src/apps/ocioview/requirements.txt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
colour-science @ git+https://github.com/colour-science/colour.git
1+
colour-science
22
colour-visuals @ git+https://github.com/colour-science/colour-visuals.git
33
imageio
44
networkx
@@ -10,4 +10,3 @@ PyOpenGL
1010
PySide6
1111
QtAwesome
1212
scipy
13-
wgpu

0 commit comments

Comments
 (0)