1
0
Fork 0

Merging upstream version 0.52+dfsg.

Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
Daniel Baumann 2025-03-17 07:24:48 +01:00
parent a21a6899db
commit accdada880
Signed by: daniel
GPG key ID: FBB4F0E80A80222F
11 changed files with 863 additions and 705 deletions

View file

@ -1,18 +1,16 @@
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
requires = ["setuptools"]
[tool.poetry]
[project]
name = "jinjax"
version = "0.48"
version = "0.52"
description = "Replace your HTML templates with Python server-Side components"
authors = ["Juan-Pablo Scaletti <juanpablo@jpscaletti.com>"]
license = "MIT"
authors = [
{name = "Juan Pablo Scaletti", email = "juanpablo@jpscaletti.com"},
]
license = { "file" = "MIT-LICENSE" }
readme = "README.md"
homepage = "https://jinjax.scaletti.dev/"
repository = "https://github.com/jpsca/jinjax"
documentation = "https://jinjax.scaletti.dev/guides/"
classifiers = [
"Development Status :: 4 - Beta",
"Environment :: Web Environment",
@ -22,6 +20,7 @@ classifiers = [
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Topic :: Internet :: WWW/HTTP :: Dynamic Content",
"Topic :: Software Development :: Libraries",
"Topic :: Software Development :: Libraries :: Python Modules",
@ -29,33 +28,40 @@ classifiers = [
"Topic :: Text Processing :: Markup :: HTML",
"Typing :: Typed",
]
requires-python = ">=3.11,<4"
dependencies = [
"jinja2 >= 3.0",
"markupsafe >= 2.0",
]
[tool.poetry.dependencies]
python = "^3.10"
jinja2 = ">=3.0"
markupsafe = ">=2.0"
whitenoise = { version = ">=5.3", optional = true }
[tool.poetry.extras]
[project.optional-dependencies]
whitenoise = ["whitenoise"]
[tool.poetry.group.dev]
optional = true
[project.urls]
homepage = "https://jinjax.scaletti.dev/"
repository = "https://github.com/jpsca/jinjax"
documentation = "https://jinjax.scaletti.dev/guides/"
[tool.poetry.group.dev.dependencies]
pyright = ">=1.1.282"
pre-commit = "*"
tox = "*"
typing-extensions = "^4.11.0"
[tool.poetry.group.test]
optional = true
[dependency-groups]
dev = [
"ipdb >= 0.13",
"pyright >= 1.1",
"pre-commit",
"ruff >= 0.2.0",
"tox-uv",
]
test = [
"pytest >= 7.2",
"pytest-cov",
"ruff > 0.3",
"whitenoise >= 5.3",
]
[tool.setuptools.packages.find]
where = ["src"]
[tool.poetry.group.test.dependencies]
pytest = "^8.1.1"
pytest-cov = "*"
ruff = ">0.3"
whitenoise = ">=5.3"
[tool.coverage.run]
branch = true
@ -71,8 +77,18 @@ exclude_lines = [
"if __name__ == .__main__.:"
]
[tool.coverage.html]
directory = "covreport"
exclude_lines = [
"pragma: no cover",
"TYPE_CHECKING",
"def __repr__",
"def __str__",
"raise AssertionError",
"raise NotImplementedError",
"if __name__ == .__main__.:"
]
[tool.pyright]
@ -82,7 +98,6 @@ exclude = [
"**/__pycache__",
"**/tests",
]
ignore = []
reportPrivateImportUsage = false
reportWildcardImportFromLibrary = false
@ -94,15 +109,20 @@ addopts = "--doctest-modules"
[tool.tox]
legacy_tox_ini = """
[tox]
skipsdist = True
envlist = py310,py311,py312,pypy3.10
env_list =
3.11
3.12
3.13
3.14
[testenv]
skip_install = true
allowlist_externals = poetry
runner = uv-venv-lock-runner
dependency_groups =
dev
test
extras =
whitenoise
commands =
pip install -U pip wheel
poetry install --with test
pytest -x src/jinjax tests
"""
@ -111,17 +131,16 @@ commands =
line-length = 90
indent-width = 4
target-version = "py311"
exclude = [
".*",
"_build",
"build",
"covreport",
"dist",
"benchmark",
]
include = ["*.py"]
[tool.ruff.format]
# Like Black, use double quotes for strings.
quote-style = "double"
@ -149,7 +168,6 @@ docstring-code-format = false
# enabled.
docstring-code-line-length = "dynamic"
[tool.ruff.lint]
fixable = ["ALL"]
@ -184,9 +202,9 @@ select = [
"W",
]
[tool.ruff.lint.isort]
known-first-party = ["jinjax"]
known-local-folder = ["src/jinjax"]
# Use two line after imports.
lines-after-imports = 2