summaryrefslogtreecommitdiff
path: root/packages/responsive-image/pyproject.toml
diff options
context:
space:
mode:
authorDennis Fink2026-11-11 19:57:38 +0100
committerDennis Fink2026-11-11 19:57:38 +0100
commite6215f84bf2cab0bbd8bb0a42ddae0ee6de3cfd6 (patch)
tree83910d7fee66d210464318bc7ad568c713e25e2d /packages/responsive-image/pyproject.toml
parent8963ed31ce537a736ddba99baf68b31858b319b8 (diff)
downloaddennisfink.me-main.tar.gz
dennisfink.me-main.zip
Vendor responsive image plugin locallyHEADmain
This adds the responsive-image plugin directly to the project, including its source code, documentation, and tests, allowing it to be maintained locally. It also configures responsive image sizes, updates gallery images to use srcset, and preserves original image URLs for full-resolution viewing. Markdown images gain lazy loading while retaining compatibility with the existing image viewer.
Diffstat (limited to 'packages/responsive-image/pyproject.toml')
-rw-r--r--packages/responsive-image/pyproject.toml107
1 files changed, 107 insertions, 0 deletions
diff --git a/packages/responsive-image/pyproject.toml b/packages/responsive-image/pyproject.toml
new file mode 100644
index 0000000..c3f192c
--- /dev/null
+++ b/packages/responsive-image/pyproject.toml
@@ -0,0 +1,107 @@
+[build-system]
+requires = ["pdm-backend"]
+build-backend = "pdm.backend"
+
+[project]
+name = "lektor-responsive-image"
+dynamic = ["version", "readme"]
+description = "Lektor plugin to help with multi-resolution responsive images"
+urls.Home = "https://github.com/dairiki/lektor-responsive-image"
+keywords = [
+ "Lektor plugin",
+ "responsive images",
+ "multi-resolution images",
+ "srcset",
+]
+license.file = "LICENSE"
+authors = [
+ {name = "Jeff Dairiki", email = "dairiki@dairiki.org"},
+]
+classifiers = [
+ "Development Status :: 5 - Production/Stable",
+ "Environment :: Plugins",
+ "Environment :: Web Environment",
+ "Framework :: Lektor",
+ "Intended Audience :: Developers",
+ "License :: OSI Approved :: MIT License",
+ "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 :: Text Processing :: Markup :: HTML",
+]
+requires-python = ">=3.8"
+
+[project.entry-points."lektor.plugins"]
+responsive-image = "lektor_responsive_image:ResponsiveImagePlugin"
+
+[tool.pdm.build]
+excludes = ["pdm_build.py"]
+source-includes = ["CHANGES.md", "tests/", "tox.ini"]
+
+[tool.pdm.version]
+source = "scm"
+
+[tool.pdm.dev-dependencies]
+dev = [
+ "lektor>=3.4.0a0",
+ "pytest>=7.4.4",
+ "ruff>=0.1.14",
+]
+
+[tool.pdm.scripts]
+tests = "pytest tests -ra"
+
+[tool.coverage.run]
+parallel = true
+source_pkgs = [
+ "lektor_responsive_image",
+]
+
+[tool.coverage.paths]
+paths = [
+ "lektor-responsive-image",
+ ".tox/py*/*/lektor-responsive-image",
+]
+
+[tool.coverage.report]
+exclude_lines = [
+ "pragma: no cover",
+ '^\s*\.\.\.\s*$',
+ '^\s*raise\s+NotImplementedError\(\)\s*$',
+]
+
+[tool.ruff]
+extend-exclude = [".pdm-build"]
+explicit-preview-rules = true
+allowed-confusables = ["’", "–"]
+
+[tool.ruff.lint]
+select = [
+ "F", # pyflakes
+ "E", "W", # pycodestyle
+ "UP", # pyupgrade
+ "B", # flake8-bugbear
+ "Q", # flake8-quotes
+ "YTT", # flake8-2020
+ "C4", # flake8-comprehensions
+ "T10", # flake8-debugger
+ "EM", # flake8-errmsg
+ "FA", # flake8-future-annotations
+ "T20", # flake8-print
+ "RSE", # flake8-raise
+ "I", # isort
+ "C90", # mccabe
+ "PGH", # pygrep-hooks
+ #"PL", # pylint
+]
+
+[tool.ruff.lint.isort]
+force-single-line = true
+order-by-type = false
+known-first-party = [
+ "conftest",
+ "lektor_responsive_images",
+]