| 1 |
[project] |
| 2 |
name = "Flask-SQLAlchemy" |
| 3 |
version = "3.1.1" |
| 4 |
description = "Add SQLAlchemy support to your Flask application." |
| 5 |
readme = "README.rst" |
| 6 |
license = { file = "LICENSE.rst" } |
| 7 |
maintainers = [{name = "Pallets", email = "[email protected]"},] |
| 8 |
classifiers = [ |
| 9 |
"Development Status :: 5 - Production/Stable", |
| 10 |
"Environment :: Web Environment", |
| 11 |
"Intended Audience :: Developers", |
| 12 |
"License :: OSI Approved :: BSD License", |
| 13 |
"Operating System :: OS Independent", |
| 14 |
"Programming Language :: Python", |
| 15 |
"Topic :: Internet :: WWW/HTTP :: Dynamic Content", |
| 16 |
] |
| 17 |
requires-python = ">=3.8" |
| 18 |
dependencies = [ |
| 19 |
"flask>=2.2.5", |
| 20 |
"sqlalchemy>=2.0.16", |
| 21 |
] |
| 22 |
|
| 23 |
[project.urls] |
| 24 |
Donate = "https://palletsprojects.com/donate" |
| 25 |
Documentation = "https://flask-sqlalchemy.palletsprojects.com" |
| 26 |
Changes = "https://flask-sqlalchemy.palletsprojects.com/changes/" |
| 27 |
"Source Code" = "https://github.com/pallets-eco/flask-sqlalchemy/" |
| 28 |
"Issue Tracker" = "https://github.com/pallets-eco/flask-sqlalchemy/issues/" |
| 29 |
Chat = "https://discord.gg/pallets" |
| 30 |
|
| 31 |
[build-system] |
| 32 |
requires = ["flit_core<4"] |
| 33 |
build-backend = "flit_core.buildapi" |
| 34 |
|
| 35 |
[tool.flit.module] |
| 36 |
name = "flask_sqlalchemy" |
| 37 |
|
| 38 |
[tool.flit.sdist] |
| 39 |
include = [ |
| 40 |
"docs/", |
| 41 |
"requirements/", |
| 42 |
"tests/", |
| 43 |
"CHANGES.rst", |
| 44 |
"tox.ini", |
| 45 |
] |
| 46 |
exclude = [ |
| 47 |
"docs/_build/", |
| 48 |
] |
| 49 |
|
| 50 |
[tool.pytest.ini_options] |
| 51 |
testpaths = ["tests"] |
| •52 |
filterwarnings = [ |
| 53 |
"error", |
| 54 |
"ignore:unclosed database in <sqlite3.Connection:ResourceWarning", |
| 55 |
] |
| 56 |
|
| 57 |
[tool.coverage.run] |
| 58 |
branch = true |
| 59 |
source = ["flask_sqlalchemy", "tests"] |
| 60 |
|
| 61 |
[tool.coverage.paths] |
| 62 |
source = ["src", "*/site-packages"] |
| 63 |
|
| 64 |
[tool.mypy] |
| 65 |
python_version = "3.8" |
| 66 |
files = ["src/flask_sqlalchemy", "tests"] |
| 67 |
show_error_codes = true |
| 68 |
pretty = true |
| 69 |
strict = true |
| 70 |
# db.Model attribute doesn't recognize subclassing |
| 71 |
disable_error_code = ["name-defined"] |
| 72 |
# db.Model is Any |
| 73 |
disallow_subclassing_any = false |
| 74 |
|
| 75 |
[[tool.mypy.overrides]] |
| 76 |
module = [ |
| 77 |
"cryptography.*", |
| 78 |
"importlib_metadata.*", |
| 79 |
] |
| 80 |
ignore_missing_imports = true |