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 9da947a · Browse files · 6 files+123 added−141 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+123 added−141 removed

  • other:+123 added−141 removed

6 files+123 added−141 removed

modified:.github/workflows/tests.yaml+1 added-1 removed
added:.flake8+26 added
1[flake8]2# B = bugbear3# E = pycodestyle errors4# F = flake8 pyflakes5# W = pycodestyle warnings6# B9 = bugbear opinions7# ISC = implicit str concat8select = B, E, F, W, B9, ISC9ignore =10 # slice notation whitespace, invalid11 E20312 # import at top, too many circular import fixes13 E40214 # line length, handled by bugbear B95015 E50116 # bare except, handled by bugbear B00117 E72218 # bin op line break, invalid19 W50320 # requires Python 3.1021 B90522# up to 88 allowed by bugbear B95023max-line-length = 8024per-file-ignores =25 # __init__ exports names26 src/flask/__init__.py: F401
modified:CHANGES.rst+2 added
1 unmodified line
2-------------34Unreleased56- Use modern packaging metadata with ``pyproject.toml`` instead of ``setup.cfg``.7 :pr:`4947`8- Ensure subdomains are applied with nested blueprints. :issue:`4834`91011Version 2.2.3
1418 unmodified lines
added:pyproject.toml+94 added
1[project]2name = "Flask"3description = "A simple framework for building complex web applications."4readme = "README.rst"5license = {text = "BSD-3-Clause"}6maintainers = [{name = "Pallets", email = "contact@palletsprojects.com"}]7authors = [{name = "Armin Ronacher", email = "armin.ronacher@active-4.com"}]8classifiers = [9 "Development Status :: 5 - Production/Stable",10 "Environment :: Web Environment",11 "Framework :: Flask",12 "Intended Audience :: Developers",13 "License :: OSI Approved :: BSD License",14 "Operating System :: OS Independent",15 "Programming Language :: Python",16 "Topic :: Internet :: WWW/HTTP :: Dynamic Content",17 "Topic :: Internet :: WWW/HTTP :: WSGI",18 "Topic :: Internet :: WWW/HTTP :: WSGI :: Application",19 "Topic :: Software Development :: Libraries :: Application Frameworks",20]21requires-python = ">=3.7"22dependencies = [23 "Werkzeug>=2.2.2",24 "Jinja2>=3.0",25 "itsdangerous>=2.0",26 "click>=8.0",27 "importlib-metadata>=3.6.0; python_version < '3.10'",28]29dynamic = ["version"]3031[project.urls]32Donate = "https://palletsprojects.com/donate"33Documentation = "https://flask.palletsprojects.com/"34Changes = "https://flask.palletsprojects.com/changes/"35"Source Code" = "https://github.com/pallets/flask/"36"Issue Tracker" = "https://github.com/pallets/flask/issues/"37Twitter = "https://twitter.com/PalletsTeam"38Chat = "https://discord.gg/pallets"3940[project.optional-dependencies]41async = ["asgiref>=3.2"]42dotenv = ["python-dotenv"]4344[project.scripts]45flask = "flask.cli:main"4647[build-system]48requires = ["setuptools"]49build-backend = "setuptools.build_meta"5051[tool.setuptools.dynamic]52version = {attr = "flask.__version__"}5354[tool.pytest.ini_options]55testpaths = ["tests"]56filterwarnings = ["error"]5758[tool.coverage.run]59branch = true60source = ["flask", "tests"]6162[tool.coverage.paths]63source = ["src", "*/site-packages"]6465[tool.mypy]66python_version = "3.7"67files = ["src/flask"]68show_error_codes = true69pretty = true70#strict = true71allow_redefinition = true72disallow_subclassing_any = true73#disallow_untyped_calls = true74#disallow_untyped_defs = true75#disallow_incomplete_defs = true76no_implicit_optional = true77local_partial_types = true78#no_implicit_reexport = true79strict_equality = true80warn_redundant_casts = true81warn_unused_configs = true82warn_unused_ignores = true83#warn_return_any = true84#warn_unreachable = true8586[[tool.mypy.overrides]]87module = [88 "asgiref.*",89 "blinker.*",90 "dotenv.*",91 "cryptography.*",92 "importlib_metadata",93]94ignore_missing_imports = true
deleted:setup.cfg-123 removed
1[metadata]2name = Flask3version = attr: flask.__version__4url = https://palletsprojects.com/p/flask5project_urls =6 Donate = https://palletsprojects.com/donate7 Documentation = https://flask.palletsprojects.com/8 Changes = https://flask.palletsprojects.com/changes/9 Source Code = https://github.com/pallets/flask/10 Issue Tracker = https://github.com/pallets/flask/issues/11 Twitter = https://twitter.com/PalletsTeam12 Chat = https://discord.gg/pallets13license = BSD-3-Clause14author = Armin Ronacher15author_email = armin.ronacher@active-4.com16maintainer = Pallets17maintainer_email = contact@palletsprojects.com18description = A simple framework for building complex web applications.19long_description = file: README.rst20long_description_content_type = text/x-rst21classifiers =22 Development Status :: 5 - Production/Stable23 Environment :: Web Environment24 Framework :: Flask25 Intended Audience :: Developers26 License :: OSI Approved :: BSD License27 Operating System :: OS Independent28 Programming Language :: Python29 Topic :: Internet :: WWW/HTTP :: Dynamic Content30 Topic :: Internet :: WWW/HTTP :: WSGI31 Topic :: Internet :: WWW/HTTP :: WSGI :: Application32 Topic :: Software Development :: Libraries :: Application Frameworks3334[options]35packages = find:36package_dir = = src37include_package_data = True38python_requires = >= 3.739# Dependencies are in setup.py for GitHub's dependency graph.4041[options.packages.find]42where = src4344[options.entry_points]45console_scripts =46 flask = flask.cli:main4748[tool:pytest]49testpaths = tests50filterwarnings =51 error5253[coverage:run]54branch = True55source =56 flask57 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 # import at top, too many circular import fixes76 E40277 # line length, handled by bugbear B95078 E50179 # bare except, handled by bugbear B00180 E72281 # bin op line break, invalid82 W50383 # requires Python 3.1084 B90585# up to 88 allowed by bugbear B95086max-line-length = 8087per-file-ignores =88 # __init__ exports names89 src/flask/__init__.py: F4019091[mypy]92files = src/flask, tests/typing93python_version = 3.794show_error_codes = True95allow_redefinition = True96disallow_subclassing_any = True97# disallow_untyped_calls = True98# disallow_untyped_defs = True99# disallow_incomplete_defs = True100no_implicit_optional = True101local_partial_types = True102# no_implicit_reexport = True103strict_equality = True104warn_redundant_casts = True105warn_unused_configs = True106warn_unused_ignores = True107# warn_return_any = True108# warn_unreachable = True109110[mypy-asgiref.*]111ignore_missing_imports = True112113[mypy-blinker.*]114ignore_missing_imports = True115116[mypy-dotenv.*]117ignore_missing_imports = True118119[mypy-cryptography.*]120ignore_missing_imports = True121122[mypy-importlib_metadata]123ignore_missing_imports = True
deleted:setup.py-17 removed
1from setuptools import setup23# Metadata goes in setup.cfg. These are here for GitHub's dependency graph.4setup(5 name="Flask",6 install_requires=[7 "Werkzeug >= 2.2.2",8 "Jinja2 >= 3.0",9 "itsdangerous >= 2.0",10 "click >= 8.0",11 "importlib-metadata >= 3.6.0; python_version < '3.10'",12 ],13 extras_require={14 "async": ["asgiref >= 3.2"],15 "dotenv": ["python-dotenv"],16 },17)