5109b6505c
Convert both pyproject.toml files to the uv_build backend and turn the repo into a proper uv workspace (plotstyle moved to src layout, since uv_build requires the module in its own subdirectory). Dev tooling moves from an optional-dependencies extra to a dependency-group, and plotstyle's matplotlib dependency is now its own rather than a gallery "plotting" extra. Gitea Actions workflows and the Dockerfile now use astral-sh/setup-uv, uv sync, uv run, uv build, and uv publish throughout instead of pip, build, and twine. Also fixes .dockerignore, which was excluding uv.lock, deploy/, and README.md and would have broken even the previous Dockerfile's COPY of deploy/entrypoint.sh. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
69 lines
1.4 KiB
TOML
69 lines
1.4 KiB
TOML
[build-system]
|
|
requires = ["uv_build>=0.11.19,<0.12.0"]
|
|
build-backend = "uv_build"
|
|
|
|
[project]
|
|
name = "gallery"
|
|
version = "0.1.3"
|
|
description = "Scientific Gallery Generator - Create responsive HTML galleries from plot collections"
|
|
readme = "README.md"
|
|
requires-python = ">=3.8"
|
|
license = {text = "MIT"}
|
|
authors = [
|
|
{name = "K. Schmidt"},
|
|
]
|
|
keywords = [
|
|
"gallery",
|
|
"plots",
|
|
"scientific-computing",
|
|
"html-generation",
|
|
"pdf-to-png",
|
|
]
|
|
classifiers = [
|
|
"Development Status :: 3 - Alpha",
|
|
"Intended Audience :: Science/Research",
|
|
"License :: OSI Approved :: MIT License",
|
|
"Operating System :: OS Independent",
|
|
"Programming Language :: Python :: 3",
|
|
"Programming Language :: Python :: 3.8",
|
|
"Programming Language :: Python :: 3.9",
|
|
"Programming Language :: Python :: 3.10",
|
|
"Programming Language :: Python :: 3.11",
|
|
"Programming Language :: Python :: 3.12",
|
|
"Topic :: Scientific/Engineering :: Visualization",
|
|
]
|
|
|
|
dependencies = [
|
|
"Jinja2>=3.0.0",
|
|
"PyYAML>=5.0",
|
|
"argcomplete>=3.0",
|
|
"platformdirs>=3.0",
|
|
"pymupdf>=1.23",
|
|
"pytest",
|
|
"textual>=0.50",
|
|
]
|
|
|
|
[project.scripts]
|
|
gallery = "gallery.cli:main"
|
|
|
|
[dependency-groups]
|
|
dev = [
|
|
"pytest>=7.0",
|
|
"ruff>=0.6",
|
|
"ty>=0.0.1",
|
|
"pip-audit>=2.7",
|
|
]
|
|
|
|
[tool.uv.workspace]
|
|
members = ["plotstyle"]
|
|
|
|
[tool.uv.build-backend]
|
|
module-root = ""
|
|
|
|
[tool.ruff]
|
|
line-length = 120
|
|
target-version = "py38"
|
|
|
|
[tool.ruff.lint]
|
|
select = ["E", "F", "I"]
|