canaille-globuzma/pyproject.toml

199 lines
4.1 KiB
TOML
Raw Normal View History

2022-05-13 09:44:23 +00:00
[build-system]
requires = ["poetry>=1.0.0", "babel"]
2022-05-13 09:44:23 +00:00
build-backend = "poetry.masonry.api"
[tool]
[tool.poetry]
name = "Canaille"
2023-10-02 12:06:13 +00:00
version = "0.0.34"
2022-05-13 09:44:23 +00:00
description = "Minimalistic identity provider"
license = "MIT"
keywords = ["oidc", "oauth", "oauth2", "openid", "identity"]
classifiers = [
"Intended Audience :: Developers",
"Development Status :: 3 - Alpha",
2022-05-13 09:44:23 +00:00
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
2022-11-01 10:49:26 +00:00
"Programming Language :: Python :: 3.11",
2023-11-01 19:22:26 +00:00
"Programming Language :: Python :: 3.12",
2022-05-13 09:44:23 +00:00
"Programming Language :: Python :: Implementation :: CPython",
"License :: OSI Approved :: MIT License",
"Environment :: Web Environment",
"Programming Language :: Python",
"Operating System :: OS Independent",
"Topic :: System :: Systems Administration :: Authentication/Directory",
"Topic :: System :: Systems Administration :: Authentication/Directory :: LDAP",
]
authors = ["Yaal Coop <contact@yaal.coop>"]
2022-05-13 09:44:23 +00:00
maintainers = [
"Éloi Rivard <eloi@yaal.coop>",
]
homepage = "https://canaille.yaal.coop"
2022-05-13 09:44:23 +00:00
documentation = "https://canaille.readthedocs.io/en/latest/"
repository = "https://gitlab.com/yaal/canaille"
readme = "README.md"
2022-11-25 20:39:22 +00:00
include = ["canaille/translations/*/LC_MESSAGES/*.mo"]
2022-05-13 09:44:23 +00:00
[tool.poetry.dependencies]
python = "^3.8"
2023-08-13 12:52:29 +00:00
flask = ">=2.2.2 <2.3"
flask-wtf = "^1.1.1"
2023-11-22 11:21:32 +00:00
wtforms = "^3.1.1"
2023-08-13 12:52:29 +00:00
werkzeug = ">=2.2.2 <2.3"
2022-05-13 09:44:23 +00:00
# extra : front
email_validator = {version = "^2.0.0", optional=true}
2023-10-23 17:36:21 +00:00
flask-babel = {version = "^4.0.0", optional=true}
flask-themer = {version = "^2.0.0", optional=true}
pycountry = {version = ">=22.1.10", optional=true}
pytz = {version = ">=2022.7", optional=true}
toml = {version = "^0.10.0", optional=true}
# extra : oidc
authlib = {version = "^1.2.1", optional=true}
# extra : ldap
python-ldap = {version = "^3.4.0", optional=true}
# extra : sentry
sentry-sdk = {version = "<2", optional=true, extras=["flask"]}
2022-05-13 09:44:23 +00:00
2023-03-11 23:13:09 +00:00
[tool.poetry.group.doc]
optional = true
2022-07-20 09:16:38 +00:00
2023-03-11 23:13:09 +00:00
[tool.poetry.group.doc.dependencies]
2023-08-17 13:55:41 +00:00
sphinx = "^7.0.0"
2023-08-23 12:36:22 +00:00
sphinx-rtd-theme = "^1.3.0"
2023-08-17 13:55:41 +00:00
sphinx-issues = "^3.0.0"
2022-05-13 09:44:23 +00:00
2023-03-11 23:13:09 +00:00
[tool.poetry.group.dev.dependencies]
2023-01-28 15:23:02 +00:00
coverage = {version = "*", extras=["toml"]}
2023-03-11 23:13:09 +00:00
faker = "*"
2023-01-28 15:23:02 +00:00
flask-webtest = "*"
freezegun = "*"
pre-commit = "*"
pyquery = "*"
pytest = "*"
pytest-coverage = "*"
2023-10-23 17:36:21 +00:00
pytest-flask = "==1.3.0"
pytest-httpserver = "*"
pytest-lazy-fixture = "==0.6.3"
2023-11-14 17:41:49 +00:00
pytest-xdist = "^3.3.1"
2023-01-28 15:23:02 +00:00
slapd = "*"
smtpdfix = "*"
2022-05-13 09:44:23 +00:00
2023-03-11 23:13:09 +00:00
[tool.poetry.group.demo]
optional = true
[tool.poetry.group.demo.dependencies]
faker = "*"
honcho = "*"
slapd = "*"
requests = "*"
[tool.poetry.extras]
front = [
"click",
"email_validator",
"flask-babel",
"flask-themer",
"pycountry",
"pytz",
"toml",
]
ldap = [
"python-ldap",
]
oidc = [
"authlib",
]
sentry = [
"sentry-sdk",
]
all = [
"click",
"email_validator",
"flask-babel",
"flask-themer",
"pycountry",
"pytz",
"toml",
"python-ldap",
"authlib",
"sentry-sdk",
]
2023-03-11 23:13:09 +00:00
[tool.poetry.scripts]
canaille = "canaille.commands:cli"
2022-05-13 09:44:23 +00:00
[options.packages.find]
exclude = [
"tests",
"tests.*",
"doc",
"doc.*",
]
2022-05-14 21:58:26 +00:00
[tool.poetry.build]
generate-setup-file = false
script = "build.py"
2022-05-13 09:44:23 +00:00
[tool.coverage.run]
source = [
"canaille",
"tests",
]
omit = [".tox/*"]
2022-12-22 16:14:46 +00:00
branch = true
2022-05-13 09:44:23 +00:00
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"raise NotImplementedError",
"except ImportError",
"if app.debug",
]
2023-05-25 11:37:58 +00:00
[tool.ruff]
ignore = ["E501", "E722"]
2022-05-13 09:44:23 +00:00
[tool.tox]
legacy_tox_ini = """
[tox]
isolated_build = true
skipsdist = true
envlist =
style
py38
py39
py310
2022-11-01 10:49:26 +00:00
py311
2023-11-01 19:22:26 +00:00
py312
2022-05-13 09:44:23 +00:00
doc
coverage
[testenv]
2022-12-09 23:19:04 +00:00
allowlist_externals = poetry
2022-05-13 09:44:23 +00:00
commands =
poetry install --extras all
2023-11-24 11:51:17 +00:00
poetry run pytest --showlocals --full-trace {posargs}
2022-05-13 09:44:23 +00:00
[testenv:style]
commands =
2023-08-15 11:57:05 +00:00
pip install pre-commit
pre-commit run --all-files
2022-05-13 09:44:23 +00:00
[testenv:doc]
commands =
2023-08-17 13:55:41 +00:00
poetry install --with doc --without dev --extras oidc
2022-05-13 09:44:23 +00:00
poetry run sphinx-build doc build/sphinx/html
[testenv:coverage]
commands =
poetry install --extras all
2023-07-06 07:07:52 +00:00
poetry run pytest --cov --cov-fail-under=100 --cov-report term:skip-covered {posargs:-n auto}
2022-05-13 09:44:23 +00:00
poetry run coverage html
"""