Skip to content

Commit

Permalink
Implement support for Astral's uv.
Browse files Browse the repository at this point in the history
Signed-off-by: Thomas Mansencal <[email protected]>
  • Loading branch information
KelSolaar committed Nov 19, 2024
1 parent f37ca55 commit 31f8862
Show file tree
Hide file tree
Showing 3 changed files with 76 additions and 49 deletions.
6 changes: 4 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ dist*
mastercopy
*.pyc
!*.yml
.vscode
.idea/
.venv/
.vscode/

src/apps/ocioview/poetry.lock
src/apps/ocioview/uv.lock
116 changes: 71 additions & 45 deletions src/apps/ocioview/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,49 +1,75 @@
[tool.poetry]
[project]
name = "ocioview"
version = "0.1.0"
description = "OpenColorIO config visual editor application"
license = "BSD-3-Clause"
authors = ["Contributors to the OpenColorIO Project"]
requires-python = ">=3.10,<3.14"
authors = [
{ name = "Contributors to the OpenColorIO Project" }
]
maintainers = [
{ name = "Contributors to the OpenColorIO Project" }
]
license = { text = "BSD-3-Clause" }
classifiers = [
"Development Status :: 3 - Alpha",
"Environment :: Console",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"License :: OSI Approved",
"Natural Language :: English",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Topic :: Scientific/Engineering",
"Topic :: Software Development",
]
dependencies = [
"colour-science>=0.4.5,<0.5",
"colour-visuals",
"imageio>=2,< 3",
"networkx>=3,<4",
"numpy>=1.24,<3",
"opencolorio>=2,<3",
"pygfx>=0.1,<0.3",
"pygments",
"pyopengl",
"pyside6",
"qtawesome",
"scipy>=1.10,<2",
]

[tool.uv.sources]
"colour-visuals" = { git = "https://github.com/colour-science/colour-visuals.git" }

[tool.poetry.dependencies]
python = ">= 3.9, < 3.12"
colour-science = {git = "https://github.com/colour-science/colour.git"}
colour-visuals = {git = "https://github.com/colour-science/colour-visuals.git"}
imageio = ">= 2, < 3"
networkx = ">= 2.7, < 3"
numpy = ">= 1.22, < 2"
opencolorio = "*"
pygfx = "*"
pygments = "*"
pyopengl = "*"
pyside6 = "*"
qtawesome = "*"
scipy = ">= 1.8, < 2"
wpgu = "*"
[project.optional-dependencies]
docs = [
"restructuredtext-lint",
"sphinx",
]

[tool.poetry.group.dev.dependencies]
black = "*"
blackdoc = "*"
coverage = "!= 6.3"
coveralls = "*"
flynt = "*"
invoke = "*"
jupyter = "*"
pre-commit = "*"
pyright = "*"
pytest = "*"
pytest-cov = "*"
pytest-qt = "*"
pytest-xdist = "*"
ruff = "*"
toml = "*"
twine = "*"
[tool.uv]
package = true
dev-dependencies = [
"black",
"coverage",
"coveralls",
"hatch",
"invoke",
"jupyter",
"pre-commit",
"pyright",
"pytest",
"pytest-cov",
"pytest-xdist",
"toml",
"twine",
]

[tool.poetry.group.docs.dependencies]
pydata-sphinx-theme = "*"
restructuredtext-lint = "*"
sphinx = "*"
sphinxcontrib-bibtex = "*"
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"

[tool.hatch.build.targets.wheel]
packages = [ "ocioview" ]

[tool.black]
line-length = 79
Expand Down Expand Up @@ -85,7 +111,7 @@ filterwarnings = [
]

[tool.ruff]
target-version = "py39"
target-version = "py310"
line-length = 88
select = [
"A", # flake8-builtins
Expand Down Expand Up @@ -128,7 +154,7 @@ select = [
"TRY", # tryceratops
"UP", # pyupgrade
"W", # pydocstyle
"YTT" # flake8-2020
"YTT", # flake8-2020
]
ignore = [
"B008",
Expand Down Expand Up @@ -162,6 +188,7 @@ ignore = [
"RET508",
"TRY003",
"TRY300",
"UP038",
]
typing-modules = ["colour.hints"]
fixable = ["B", "C", "E", "F", "PIE", "RUF", "SIM", "UP", "W"]
Expand All @@ -172,6 +199,5 @@ convention = "numpy"
[tool.ruff.per-file-ignores]
"docs/*" = ["INP"]

[build-system]
requires = ["poetry_core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
[tool.ruff.format]
docstring-code-format = true
3 changes: 1 addition & 2 deletions src/apps/ocioview/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
colour-science @ git+https://github.com/colour-science/colour.git
colour-science
colour-visuals @ git+https://github.com/colour-science/colour-visuals.git
imageio
networkx
Expand All @@ -10,4 +10,3 @@ PyOpenGL
PySide6
QtAwesome
scipy
wgpu

0 comments on commit 31f8862

Please sign in to comment.