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
Provenance
- Commit
6d6d986- Tree
9f2f568- Author
David Lord <davidism@gmail.com>- Committer
David Lord <davidism@gmail.com>- Parent
9da947a
6 files changed+123 added−141 removed
modified:.github/workflows/tests.yaml+1 added-1 removed
50 unmodified lines51525354555556575850 unmodified lines - name: cache mypy uses: actions/cache@v3.2.2 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+26 added
1+[flake8]2+# B = bugbear3+# E = pycodestyle errors4+# F = flake8 pyflakes5+# W = pycodestyle warnings6+# B9 = bugbear opinions7+# ISC = implicit str concat8+select = B, E, F, W, B9, ISC9+ignore =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 B95023+max-line-length = 8024+per-file-ignores =25+ # __init__ exports names26+ src/flask/__init__.py: F401modified:CHANGES.rst+2 added
1 unmodified line2 -------------3 4 Unreleased5 6+- Use modern packaging metadata with ``pyproject.toml`` instead of ``setup.cfg``.7+ :pr:`4947`8 - Ensure subdomains are applied with nested blueprints. :issue:`4834`9 10 11 Version 2.2.31418 unmodified linesadded:pyproject.toml+94 added
1+[project]2+name = "Flask"3+description = "A simple framework for building complex web applications."4+readme = "README.rst"5+license = {text = "BSD-3-Clause"}6+maintainers = [{name = "Pallets", email = "contact@palletsprojects.com"}]7+authors = [{name = "Armin Ronacher", email = "armin.ronacher@active-4.com"}]8+classifiers = [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+]21+requires-python = ">=3.7"22+dependencies = [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+]29+dynamic = ["version"]30+31+[project.urls]32+Donate = "https://palletsprojects.com/donate"33+Documentation = "https://flask.palletsprojects.com/"34+Changes = "https://flask.palletsprojects.com/changes/"35+"Source Code" = "https://github.com/pallets/flask/"36+"Issue Tracker" = "https://github.com/pallets/flask/issues/"37+Twitter = "https://twitter.com/PalletsTeam"38+Chat = "https://discord.gg/pallets"39+40+[project.optional-dependencies]41+async = ["asgiref>=3.2"]42+dotenv = ["python-dotenv"]43+44+[project.scripts]45+flask = "flask.cli:main"46+47+[build-system]48+requires = ["setuptools"]49+build-backend = "setuptools.build_meta"50+51+[tool.setuptools.dynamic]52+version = {attr = "flask.__version__"}53+54+[tool.pytest.ini_options]55+testpaths = ["tests"]56+filterwarnings = ["error"]57+58+[tool.coverage.run]59+branch = true60+source = ["flask", "tests"]61+62+[tool.coverage.paths]63+source = ["src", "*/site-packages"]64+65+[tool.mypy]66+python_version = "3.7"67+files = ["src/flask"]68+show_error_codes = true69+pretty = true70+#strict = true71+allow_redefinition = true72+disallow_subclassing_any = true73+#disallow_untyped_calls = true74+#disallow_untyped_defs = true75+#disallow_incomplete_defs = true76+no_implicit_optional = true77+local_partial_types = true78+#no_implicit_reexport = true79+strict_equality = true80+warn_redundant_casts = true81+warn_unused_configs = true82+warn_unused_ignores = true83+#warn_return_any = true84+#warn_unreachable = true85+86+[[tool.mypy.overrides]]87+module = [88+ "asgiref.*",89+ "blinker.*",90+ "dotenv.*",91+ "cryptography.*",92+ "importlib_metadata",93+]94+ignore_missing_imports = truedeleted:setup.cfg-123 removed
1-[metadata]2-name = Flask3-version = attr: flask.__version__4-url = https://palletsprojects.com/p/flask5-project_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/pallets13-license = BSD-3-Clause14-author = Armin Ronacher15-author_email = armin.ronacher@active-4.com16-maintainer = Pallets17-maintainer_email = contact@palletsprojects.com18-description = A simple framework for building complex web applications.19-long_description = file: README.rst20-long_description_content_type = text/x-rst21-classifiers =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 Frameworks33-34-[options]35-packages = find:36-package_dir = = src37-include_package_data = True38-python_requires = >= 3.739-# Dependencies are in setup.py for GitHub's dependency graph.40-41-[options.packages.find]42-where = src43-44-[options.entry_points]45-console_scripts =46- flask = flask.cli:main47-48-[tool:pytest]49-testpaths = tests50-filterwarnings =51- error52-53-[coverage:run]54-branch = True55-source =56- flask57- 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- # 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 B95086-max-line-length = 8087-per-file-ignores =88- # __init__ exports names89- src/flask/__init__.py: F40190-91-[mypy]92-files = src/flask, tests/typing93-python_version = 3.794-show_error_codes = True95-allow_redefinition = True96-disallow_subclassing_any = True97-# disallow_untyped_calls = True98-# disallow_untyped_defs = True99-# disallow_incomplete_defs = True100-no_implicit_optional = True101-local_partial_types = True102-# no_implicit_reexport = True103-strict_equality = True104-warn_redundant_casts = True105-warn_unused_configs = True106-warn_unused_ignores = True107-# warn_return_any = True108-# warn_unreachable = True109-110-[mypy-asgiref.*]111-ignore_missing_imports = True112-113-[mypy-blinker.*]114-ignore_missing_imports = True115-116-[mypy-dotenv.*]117-ignore_missing_imports = True118-119-[mypy-cryptography.*]120-ignore_missing_imports = True121-122-[mypy-importlib_metadata]123-ignore_missing_imports = Truedeleted:setup.py-17 removed
1-from setuptools import setup2-3-# Metadata goes in setup.cfg. These are here for GitHub's dependency graph.4-setup(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-)