| 1 |
[project] |
| 2 |
name = "Flask-Security" |
| 3 |
description = "Quickly add security features to your Flask application." |
| 4 |
readme.content-type = "text/x-rst" |
| 5 |
readme.file = "README.rst" |
| 6 |
keywords = ["flask security"] |
| 7 |
license = { file = "LICENSE.txt" } |
| 8 |
maintainers = [{ name = "Chris Wagner", email = "[email protected]"}] |
| 9 |
authors = [{ name = "Matt Wright"}, { name = "Chris Wagner", email = "[email protected]"}] |
| 10 |
requires-python = ">=3.11" |
| 11 |
urls.Documentation = "https://flask-security.readthedocs.io" |
| 12 |
urls.Homepage = "https://github.com/pallets-eco/flask-security" |
| 13 |
urls.Source = "https://github.com/pallets-eco/flask-security" |
| 14 |
urls.Tracker = "https://github.com/pallets-eco/flask-security/issues" |
| 15 |
urls.Releases = "https://pypi.org/project/Flask-Security/" |
| 16 |
classifiers=[ |
| 17 |
"Environment :: Web Environment", |
| 18 |
"Framework :: Flask", |
| 19 |
"Intended Audience :: Developers", |
| 20 |
"License :: OSI Approved :: MIT License", |
| 21 |
"Operating System :: OS Independent", |
| 22 |
"Programming Language :: Python", |
| 23 |
"Topic :: Internet :: WWW/HTTP :: Dynamic Content", |
| 24 |
"Topic :: Software Development :: Libraries :: Python Modules", |
| 25 |
"Programming Language :: Python :: Implementation :: CPython", |
| 26 |
"Programming Language :: Python :: Implementation :: PyPy", |
| 27 |
"Development Status :: 5 - Production/Stable", |
| 28 |
] |
| 29 |
dynamic = [ |
| 30 |
"version", |
| 31 |
] |
| 32 |
dependencies = [ |
| 33 |
# flask dependencies include werkzeug, jinja2, itsdangerous, click, blinker |
| 34 |
"Flask>=3.1.1", |
| 35 |
"Flask-Login>=0.6.3", |
| 36 |
"Flask-Principal>=0.4.0", |
| 37 |
"Flask-WTF>=1.1.2", |
| 38 |
"email-validator>=2.3.0", |
| 39 |
"markupsafe>=2.1.0", |
| 40 |
"libpass>=1.9.3", |
| 41 |
"wtforms>=3.2.1", # for form-level errors |
| 42 |
] |
| 43 |
|
| 44 |
[project.optional-dependencies] |
| 45 |
babel = ["babel>=2.17.0", "flask_babel>=4.0.0", "humanize>=4.12.0"] |
| 46 |
fsqla = ["flask_sqlalchemy>=3.1.1", "sqlalchemy>=2.0.41"] |
| 47 |
common = ["argon2_cffi>=25.1.0", "bcrypt>=4.3.0", "flask_mail>=0.10.0", "nh3>=0.2.15"] |
| 48 |
mfa = ["cryptography>=46.0.7", "qrcode>=8.2", "phonenumberslite>=8.13.11", "webauthn>=2.8.0"] |
| 49 |
|
| 50 |
[dependency-groups] |
| 51 |
tests = [ |
| 52 |
"Flask-Babel", |
| 53 |
"Babel", |
| 54 |
"Flask-Mail", |
| 55 |
"Flask-SQLAlchemy", |
| 56 |
"Flask-SQLAlchemy-Lite", |
| 57 |
"argon2-cffi", |
| 58 |
"authlib", |
| 59 |
"bcrypt", |
| 60 |
"cbor2", |
| 61 |
"coverage", |
| 62 |
"cryptography", |
| 63 |
"djlint", |
| 64 |
"freezegun", |
| 65 |
"humanize", |
| 66 |
"mongoengine", |
| 67 |
"mongomock", |
| 68 |
"msgcheck", |
| 69 |
"nh3", |
| 70 |
"peewee", |
| 71 |
"phonenumberslite", |
| 72 |
"pydocstyle", |
| 73 |
"pytest-cache", |
| 74 |
"pytest-cov", |
| 75 |
"pytest", |
| 76 |
"qrcode", |
| 77 |
# authlib requires requests |
| 78 |
"requests", |
| 79 |
"sqlalchemy<2.1", |
| 80 |
"sqlalchemy-utils", |
| 81 |
"webauthn", |
| 82 |
"zxcvbn", |
| 83 |
] |
| 84 |
dev = [ |
| 85 |
"flit", |
| 86 |
"check-wheel-contents", |
| 87 |
"psycopg2-binary", |
| 88 |
"pymysql", |
| 89 |
"pre-commit", |
| 90 |
"tox", |
| 91 |
# for dev - might not install Flask-Security - list those dependencies here |
| 92 |
"flask", |
| 93 |
"flask-wtf", |
| 94 |
"flask-login", |
| 95 |
"flask-principal", |
| 96 |
"markupsafe", |
| 97 |
"libpass", |
| 98 |
"email_validator", |
| 99 |
] |
| 100 |
low = [ |
| 101 |
# Lowest supported versions |
| 102 |
"Flask==3.1.1", |
| 103 |
"Flask-SQLAlchemy==3.1.1", |
| 104 |
"Flask-SQLAlchemy-Lite==0.1.0", |
| 105 |
"Flask-Babel==4.0.0", |
| 106 |
"Flask-Mail==0.10.0", |
| 107 |
"Flask-Login==0.6.3", |
| 108 |
"Flask-WTF==1.1.2", |
| 109 |
"peewee==3.17.9", |
| 110 |
"argon2_cffi==21.3.0", |
| 111 |
"authlib==1.6.0", |
| 112 |
"babel==2.16.0", |
| 113 |
"bcrypt==4.3.0", |
| 114 |
"nh3==0.2.15", |
| 115 |
"freezegun", |
| 116 |
"humanize", |
| 117 |
"jinja2==3.1.2", |
| 118 |
"itsdangerous==2.2.0", |
| 119 |
"markupsafe==2.1.2", |
| 120 |
"mongoengine==0.29.1", |
| 121 |
"mongomock==4.3.0", |
| 122 |
"phonenumberslite==8.13.11", |
| 123 |
"qrcode==8.2.0", |
| 124 |
# authlib requires requests |
| 125 |
"requests", |
| 126 |
"sqlalchemy==2.0.41", |
| 127 |
"sqlalchemy-utils==0.42.0", |
| 128 |
"webauthn==2.8.0", |
| 129 |
"werkzeug==3.1.3", |
| 130 |
"zxcvbn==4.4.28" |
| 131 |
] |
| 132 |
docs = [ |
| 133 |
"Pallets-Sphinx-Themes", |
| 134 |
"Sphinx", |
| 135 |
"sphinx-issues", |
| 136 |
"packaging", |
| 137 |
"Flask-SQLAlchemy", |
| 138 |
"sqlalchemy", |
| 139 |
"sqlalchemy-utils", |
| 140 |
] |
| 141 |
|
| 142 |
typing = [ |
| 143 |
"basedpyright", |
| 144 |
"types-requests", |
| 145 |
"mypy", |
| 146 |
] |
| 147 |
|
| 148 |
[build-system] |
| 149 |
requires = ["flit_core >=3.8,<4"] |
| 150 |
build-backend = "flit_core.buildapi" |
| 151 |
|
| 152 |
[tool.flit.module] |
| 153 |
name = "flask_security" |
| 154 |
|
| 155 |
[tool.flit.sdist] |
| 156 |
include = [ |
| 157 |
"AUTHORS", |
| 158 |
"CHANGES.rst", |
| 159 |
"CONTRIBUTING.rst", |
| 160 |
"LICENSE.txt", |
| 161 |
".djlintrc", |
| 162 |
".git-blame-ignore-revs", |
| 163 |
".gitignore", |
| 164 |
".pre-commit-config.yaml", |
| 165 |
".readthedocs.yml", |
| 166 |
"pyproject-too.toml", |
| 167 |
"babel.ini", |
| 168 |
"codecov.yml", |
| 169 |
"mypy.ini", |
| 170 |
"pytest.ini", |
| 171 |
"tox.ini", |
| 172 |
"docs/", |
| 173 |
"examples/", |
| 174 |
"tests/", |
| 175 |
] |
| 176 |
exclude = ["docs/_build/"] |
| 177 |
|
| 178 |
[tool.djlint] |
| 179 |
ignore="H005,H006" # lang, img height/width |
| 180 |
|
| 181 |
[tool.basedpyright] |
| 182 |
include=["flask_security", "tests/view_scaffold.py"] |
| 183 |
analyzeUnannotatedFunctions = false |
| 184 |
reportMissingImports = false |
| 185 |
reportAny = false |
| 186 |
reportPrivateUsage = false |
| 187 |
failOnWarnings = false |