2022-05-13 09:44:23 +00:00
|
|
|
[build-system]
|
|
|
|
requires = ["poetry>=1.0.0"]
|
|
|
|
build-backend = "poetry.masonry.api"
|
|
|
|
|
|
|
|
[tool]
|
|
|
|
[tool.poetry]
|
|
|
|
name = "Canaille"
|
2023-01-28 15:01:15 +00:00
|
|
|
version = "0.0.20"
|
2022-05-13 09:44:23 +00:00
|
|
|
description = "Minimalistic identity provider"
|
|
|
|
license = "MIT"
|
|
|
|
keywords = ["oidc", "oauth", "oauth2", "openid", "identity"]
|
|
|
|
classifiers = [
|
|
|
|
"Intended Audience :: Developers",
|
|
|
|
"Programming Language :: Python :: 3.7",
|
|
|
|
"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",
|
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 team <contact@yaal.coop>"]
|
|
|
|
maintainers = [
|
|
|
|
"Éloi Rivard <eloi@yaal.coop>",
|
|
|
|
]
|
2022-06-21 12:30:31 +00:00
|
|
|
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.7, <4"
|
|
|
|
authlib = ">1,<2"
|
|
|
|
click = "<9"
|
|
|
|
email_validator = "<2"
|
|
|
|
flask = "<3"
|
2023-03-01 14:30:07 +00:00
|
|
|
flask-babel = "^3.0.0"
|
2022-05-13 09:44:23 +00:00
|
|
|
flask-themer = "<2"
|
|
|
|
flask-wtf = "<2"
|
2023-01-28 15:23:02 +00:00
|
|
|
pycountry = "^22.3.5"
|
2022-05-13 09:44:23 +00:00
|
|
|
python-ldap = "<4"
|
|
|
|
toml = "<1"
|
|
|
|
wtforms = "<4"
|
|
|
|
|
|
|
|
"sentry-sdk" = {version = "<2", optional=true, extras=["flask"]}
|
|
|
|
|
2022-07-20 09:16:38 +00:00
|
|
|
"sphinx" = {version = "*", optional=true}
|
|
|
|
"sphinx-rtd-theme" = {version = "*", optional=true}
|
|
|
|
"sphinx-issues" = {version = "*", optional=true}
|
|
|
|
|
2022-05-13 09:44:23 +00:00
|
|
|
[tool.poetry.extras]
|
|
|
|
sentry = ["sentry-sdk"]
|
2022-07-20 09:16:38 +00:00
|
|
|
doc = [
|
|
|
|
"sphinx",
|
|
|
|
"sphinx-rtd-theme",
|
|
|
|
"sphinx-issues",
|
|
|
|
]
|
2022-05-13 09:44:23 +00:00
|
|
|
|
|
|
|
[tool.poetry.dev-dependencies]
|
2023-01-28 15:23:02 +00:00
|
|
|
coverage = {version = "*", extras=["toml"]}
|
2023-02-26 18:48:07 +00:00
|
|
|
faker = "^17.3.0"
|
2023-01-28 15:23:02 +00:00
|
|
|
flask-webtest = "*"
|
|
|
|
freezegun = "*"
|
|
|
|
mock = "*"
|
|
|
|
pdbpp = "*"
|
|
|
|
pre-commit = "*"
|
|
|
|
pyquery = "*"
|
|
|
|
pytest = "*"
|
|
|
|
pytest-coverage = "*"
|
2022-12-20 19:18:37 +00:00
|
|
|
pytest-httpserver = "*"
|
2023-01-28 15:23:02 +00:00
|
|
|
slapd = "*"
|
|
|
|
smtpdfix = "*"
|
2022-05-13 09:44:23 +00:00
|
|
|
|
2022-08-09 13:54:01 +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.tox]
|
|
|
|
legacy_tox_ini = """
|
|
|
|
[tox]
|
|
|
|
isolated_build = true
|
|
|
|
skipsdist = true
|
|
|
|
envlist =
|
|
|
|
style
|
|
|
|
py37
|
|
|
|
py38
|
|
|
|
py39
|
|
|
|
py310
|
2022-11-01 10:49:26 +00:00
|
|
|
py311
|
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
|
|
|
|
poetry run pytest --showlocals --full-trace {posargs}
|
|
|
|
|
|
|
|
[testenv:style]
|
|
|
|
commands =
|
2023-01-30 19:08:52 +00:00
|
|
|
poetry install
|
2022-05-13 09:44:23 +00:00
|
|
|
poetry run pre-commit run --all-files
|
|
|
|
|
|
|
|
[testenv:doc]
|
|
|
|
commands =
|
2022-07-20 09:16:38 +00:00
|
|
|
poetry install --extras doc
|
2022-05-13 09:44:23 +00:00
|
|
|
poetry run sphinx-build doc build/sphinx/html
|
|
|
|
|
|
|
|
[testenv:coverage]
|
|
|
|
commands =
|
|
|
|
poetry install
|
2023-03-01 14:44:18 +00:00
|
|
|
poetry run pytest --cov --cov-fail-under=100 --cov-report term:skip-covered {posargs}
|
2022-05-13 09:44:23 +00:00
|
|
|
poetry run coverage html
|
|
|
|
"""
|