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
Provenance
- Commit
a9c8111- Tree
5f7e92b- Author
David Lord <davidism@gmail.com>- Committer
David Lord <davidism@gmail.com>- Parent
048a068
6 files changed+97 added−120 removed
modified:.github/workflows/tests.yaml+1 added-1 removed
48 unmodified lines49505152535354555648 unmodified lines - name: cache mypy uses: actions/cache@v3 with: path: ./.mypy_cache key: mypy|${{ matrix.python }}|${{ hashFiles('setup.cfg') }} key: mypy|${{ matrix.python }}|${{ hashFiles('pyproject.toml') }} if: matrix.tox == 'typing' - run: pip install tox - run: tox run -e ${{ matrix.tox }}added:.flake8+25 added
1+[flake8]2+extend-select =3+ # bugbear4+ B5+ # bugbear opinions6+ B97+ # implicit str concat8+ ISC9+extend-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 B95022+max-line-length = 8023+per-file-ignores =24+ # __init__ exports names25+ src/jinja2/__init__.py: F401modified:CHANGES.rst+3 added
3 unmodified lines4 -------------5 6 Unreleased7 8+- Use modern packaging metadata with ``pyproject.toml`` instead of ``setup.cfg``.9+ :pr:`1793`10 11+12 Version 3.1.213 -------------14 15 Released 2022-04-28969 unmodified linesadded:pyproject.toml+68 added
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768[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"}]authors = [{name = "Armin Ronacher", email = "armin.ronacher@active-4.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/"Twitter = "https://twitter.com/PalletsTeam"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"]
[tool.coverage.run]branch = truesource = ["jinja2", "tests"]
[tool.coverage.paths]source = ["src", "*/site-packages"]
[tool.mypy]python_version = "3.7"files = ["src/jinja2"]show_error_codes = truepretty = truestrict = truelocal_partial_types = truewarn_unreachable = true
[[tool.mypy.overrides]]module = [ "jinja2.defaults", "markupsafe",]no_implicit_reexport = falsedeleted:setup.cfg-111 removed
1-[metadata]2-name = Jinja23-version = attr: jinja2.__version__4-url = https://palletsprojects.com/p/jinja/5-project_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/pallets13-license = BSD-3-Clause14-license_files = LICENSE.rst15-author = Armin Ronacher16-author_email = armin.ronacher@active-4.com17-maintainer = Pallets18-maintainer_email = contact@palletsprojects.com19-description = A very fast and expressive template engine.20-long_description = file: README.rst21-long_description_content_type = text/x-rst22-classifiers =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 :: HTML31-32-[options]33-packages = find:34-package_dir = = src35-include_package_data = True36-python_requires = >= 3.737-# Dependencies are in setup.py for GitHub's dependency graph.38-39-[options.packages.find]40-where = src41-42-[options.entry_points]43-babel.extractors =44- jinja2 = jinja2.ext:babel_extract[i18n]45-46-[tool:pytest]47-testpaths = tests48-filterwarnings =49- error50- # Python 3.9 raises a deprecation from internal asyncio code.51- ignore:The loop argument:DeprecationWarning:asyncio[.]base_events:54252-53-[coverage:run]54-branch = True55-source =56- jinja257- tests58-59-[coverage:paths]60-source =61- src62- */site-packages63-64-[flake8]65-# B = bugbear66-# E = pycodestyle errors67-# F = flake8 pyflakes68-# W = pycodestyle warnings69-# B9 = bugbear opinions70-# ISC = implicit str concat71-select = B, E, F, W, B9, ISC72-ignore =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 B95084-max-line-length = 8085-per-file-ignores =86- # __init__ exports names87- src/jinja2/__init__.py: F40188-89-[mypy]90-files = src/jinja291-python_version = 3.792-show_error_codes = True93-disallow_subclassing_any = True94-disallow_untyped_calls = True95-disallow_untyped_defs = True96-disallow_incomplete_defs = True97-no_implicit_optional = True98-local_partial_types = True99-no_implicit_reexport = True100-strict_equality = True101-warn_redundant_casts = True102-warn_unused_configs = True103-warn_unused_ignores = True104-warn_return_any = True105-warn_unreachable = True106-107-[mypy-jinja2.defaults]108-no_implicit_reexport = False109-110-[mypy-markupsafe]111-no_implicit_reexport = Falsedeleted:setup.py-8 removed
1-from setuptools import setup2-3-# Metadata goes in setup.cfg. These are here for GitHub's dependency graph.4-setup(5- name="Jinja2",6- install_requires=["MarkupSafe>=2.0"],7- extras_require={"i18n": ["Babel>=2.7"]},8-)