From: David Lord Date: Tue, 27 Jun 2023 14:37:41 +0000 (-0700) Subject: Merge branch '3.1.x' X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c0e4f69ff3d7b52d8af8231aee9eabe4994d5f6b;p=thirdparty%2Fjinja.git Merge branch '3.1.x' --- c0e4f69ff3d7b52d8af8231aee9eabe4994d5f6b diff --cc .github/workflows/tests.yaml index 73611f87,0a839517..9b2aae6a --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@@ -32,11 -32,11 +32,11 @@@ jobs - {name: '3.9', python: '3.9', os: ubuntu-latest, tox: py39} - {name: '3.8', python: '3.8', os: ubuntu-latest, tox: py38} - {name: '3.7', python: '3.7', os: ubuntu-latest, tox: py37} - - {name: 'PyPy', python: 'pypy-3.9', os: ubuntu-latest, tox: pypy39} + - {name: 'PyPy', python: 'pypy-3.10', os: ubuntu-latest, tox: pypy310} - {name: Typing, python: '3.11', os: ubuntu-latest, tox: typing} steps: - - uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c - - uses: actions/setup-python@5ccb29d8773c3f3f653e1705f474dfaa8a06a912 + - uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab + - uses: actions/setup-python@bd6b4b6205c4dbad673328db7b31b7fab9e241c0 with: python-version: ${{ matrix.python }} cache: 'pip' diff --cc pyproject.toml index 42bfb441,00000000..8ccdc139 mode 100644,000000..100644 --- a/pyproject.toml +++ b/pyproject.toml @@@ -1,70 -1,0 +1,68 @@@ +[project] +name = "Jinja2" +description = "A very fast and expressive template engine." +readme = "README.rst" +license = {text = "BSD-3-Clause"} +maintainers = [{name = "Pallets", email = "contact@palletsprojects.com"}] +classifiers = [ + "Development Status :: 5 - Production/Stable", + "Environment :: Web Environment", + "Intended Audience :: Developers", + "License :: OSI Approved :: BSD License", + "Operating System :: OS Independent", + "Programming Language :: Python", + "Topic :: Internet :: WWW/HTTP :: Dynamic Content", + "Topic :: Text Processing :: Markup :: HTML", +] +requires-python = ">=3.7" +dependencies = ["MarkupSafe>=2.0"] +dynamic = ["version"] + +[project.urls] +Donate = "https://palletsprojects.com/donate" +Documentation = "https://jinja.palletsprojects.com/" +Changes = "https://jinja.palletsprojects.com/changes/" +"Source Code" = "https://github.com/pallets/jinja/" +"Issue Tracker" = "https://github.com/pallets/jinja/issues/" +Chat = "https://discord.gg/pallets" + +[project.optional-dependencies] +i18n = ["Babel>=2.7"] + +[project.entry-points."babel.extractors"] + +[build-system] +requires = ["setuptools"] +build-backend = "setuptools.build_meta" + +[tool.setuptools.dynamic] +version = {attr = "jinja2.__version__"} + +[tool.pytest.ini_options] +testpaths = ["tests"] +filterwarnings = [ + "error", - # change in Python 3.12 beta causes warning from inside pytest - "ignore:ast:DeprecationWarning", +] + +[tool.coverage.run] +branch = true +source = ["jinja2", "tests"] + +[tool.coverage.paths] +source = ["src", "*/site-packages"] + +[tool.mypy] +python_version = "3.7" +files = ["src/jinja2"] +show_error_codes = true +pretty = true +strict = true +local_partial_types = true +warn_unreachable = true + +[[tool.mypy.overrides]] +module = [ + "jinja2.defaults", + "markupsafe", +] +no_implicit_reexport = false