Skip to content
Myr

switch to pyproject.toml

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by David Lord · committed by David Lord · parent 048a068 · Browse files · 6 files+97 added−120 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

6 files+97 added−120 removed

  • other:+97 added−120 removed

6 files+97 added−120 removed

modified:.github/workflows/tests.yaml+1 added-1 removed
added:.flake8+25 added
1[flake8]2extend-select =3 # bugbear4 B5 # bugbear opinions6 B97 # implicit str concat8 ISC9extend-ignore =10 # slice notation whitespace, invalid11 E20312 # line length, handled by bugbear B95013 E50114 # bare except, handled by bugbear B00115 E72216 # zip with strict=, requires python >= 3.1017 B90518 # string formatting opinion, B028 renamed to B90719 B02820 B90721# up to 88 allowed by bugbear B95022max-line-length = 8023per-file-ignores =24 # __init__ exports names25 src/jinja2/__init__.py: F401
modified:CHANGES.rst+3 added
3 unmodified lines
4-------------56Unreleased78- Use modern packaging metadata with ``pyproject.toml`` instead of ``setup.cfg``.9 :pr:`1793`101112Version 3.1.213-------------1415Released 2022-04-28
969 unmodified lines
added:pyproject.toml+68 added
deleted:setup.cfg-111 removed
1[metadata]2name = Jinja23version = attr: jinja2.__version__4url = https://palletsprojects.com/p/jinja/5project_urls =6 Donate = https://palletsprojects.com/donate7 Documentation = https://jinja.palletsprojects.com/8 Changes = https://jinja.palletsprojects.com/changes/9 Source Code = https://github.com/pallets/jinja/10 Issue Tracker = https://github.com/pallets/jinja/issues/11 Twitter = https://twitter.com/PalletsTeam12 Chat = https://discord.gg/pallets13license = BSD-3-Clause14license_files = LICENSE.rst15author = Armin Ronacher16author_email = armin.ronacher@active-4.com17maintainer = Pallets18maintainer_email = contact@palletsprojects.com19description = A very fast and expressive template engine.20long_description = file: README.rst21long_description_content_type = text/x-rst22classifiers =23 Development Status :: 5 - Production/Stable24 Environment :: Web Environment25 Intended Audience :: Developers26 License :: OSI Approved :: BSD License27 Operating System :: OS Independent28 Programming Language :: Python29 Topic :: Internet :: WWW/HTTP :: Dynamic Content30 Topic :: Text Processing :: Markup :: HTML3132[options]33packages = find:34package_dir = = src35include_package_data = True36python_requires = >= 3.737# Dependencies are in setup.py for GitHub's dependency graph.3839[options.packages.find]40where = src4142[options.entry_points]43babel.extractors =44 jinja2 = jinja2.ext:babel_extract[i18n]4546[tool:pytest]47testpaths = tests48filterwarnings =49 error50 # Python 3.9 raises a deprecation from internal asyncio code.51 ignore:The loop argument:DeprecationWarning:asyncio[.]base_events:5425253[coverage:run]54branch = True55source =56 jinja257 tests5859[coverage:paths]60source =61 src62 */site-packages6364[flake8]65# B = bugbear66# E = pycodestyle errors67# F = flake8 pyflakes68# W = pycodestyle warnings69# B9 = bugbear opinions70# ISC = implicit str concat71select = B, E, F, W, B9, ISC72ignore =73 # slice notation whitespace, invalid74 E20375 # line length, handled by bugbear B95076 E50177 # bare except, handled by bugbear B00178 E72279 # bin op line break, invalid80 W50381 # zip with strict=, requires python >= 3.1082 B90583# up to 88 allowed by bugbear B95084max-line-length = 8085per-file-ignores =86 # __init__ exports names87 src/jinja2/__init__.py: F4018889[mypy]90files = src/jinja291python_version = 3.792show_error_codes = True93disallow_subclassing_any = True94disallow_untyped_calls = True95disallow_untyped_defs = True96disallow_incomplete_defs = True97no_implicit_optional = True98local_partial_types = True99no_implicit_reexport = True100strict_equality = True101warn_redundant_casts = True102warn_unused_configs = True103warn_unused_ignores = True104warn_return_any = True105warn_unreachable = True106107[mypy-jinja2.defaults]108no_implicit_reexport = False109110[mypy-markupsafe]111no_implicit_reexport = False
deleted:setup.py-8 removed
1from setuptools import setup23# Metadata goes in setup.cfg. These are here for GitHub's dependency graph.4setup(5 name="Jinja2",6 install_requires=["MarkupSafe>=2.0"],7 extras_require={"i18n": ["Babel>=2.7"]},8)