1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186
|
[tool.poetry]
name = "python3-saml"
version = "1.16.0"
description = "Saml Python Toolkit. Add SAML support to your Python software using this library"
license = "Apache-2.0"
authors = ["SAML-Toolkits <contact@iamdigitalservices.com>"]
maintainers = ["Sixto Martin <sixto.martin.garcia@gmail.com>"]
readme = "README.md"
homepage = "https://saml.info"
repository = "https://github.com/SAML-Toolkits/python3-saml"
keywords = [
"saml",
"saml2",
"sso",
"xmlsec",
"federation",
"identity",
]
classifiers = [
"Topic :: Software Development :: Build Tools",
"Topic :: Software Development :: Libraries :: Python Modules",
]
packages = [
{ include = "onelogin", from = "src" },
{ include = "onelogin/saml2", from = "src" },
]
include = [
{ path = "src/onelogin/saml2/schemas"},
{ path = "tests", format = "sdist" }
]
[tool.poetry.urls]
"Bug Tracker" = "https://github.com/SAML-Toolkits/python3-saml/issues"
[tool.poetry.dependencies]
python = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*"
lxml = ">=4.6.5, !=4.7.0"
xmlsec = ">=1.3.9"
isodate = ">=0.6.1"
#[tool.poetry.group.dev]
#optional = true
#[tool.poetry.group.dev.dependencies]
#black = "*"
#isort = {version = "^5.10.1", extras = ["pyproject"]}
flake8 = { version = ">=3.6.0, <=5.0.0", optional = true}
#Flake8-pyproject = "^1.1.0.post0"
#flake8-bugbear = "^22.8.23"
#flake8-logging-format = "^0.7.5"
#ipdb = "^0.13.9"
#[tool.poetry.group.test.dependencies]
freezegun= { version = ">=0.3.11, <=1.1.0", optional = true}
pytest = { version = ">=4.6.11", optional = true}
coverage = { version = ">=4.5.2", optional = true}
#pylint = ">=1.9.4"
[tool.poetry.extras]
test = ["flake8", "freezegun", "pytest", "coverage"]
#[tool.poetry.group.test]
#optional = true
#[tool.poetry.group.coverage]
#optional = true
#[tool.poetry.group.coverage.dependencies]
#coverage = ">=4.5.2"
#pytest-cov = "*"
#[tool.poetry.group.docs]
#optional = true
#[tool.poetry.group.docs.dependencies]
#sphinx = "*"
[build-system]
requires = [
"poetry>=1.1.15",
"setuptools >= 40.1.0",
"wheel"
]
build-backend = "poetry.core.masonry.api"
[tool.pytest.ini_options]
minversion = "4.6.11"
addopts = "-ra -vvv"
testpaths = [
"tests",
]
pythonpath = [
"tests",
]
[tool.coverage.run]
branch = true
source = ["src/onelogin/saml2"]
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"def __repr__",
"def __str__",
"raise AssertionError",
"raise NotImplementedError",
"if __name__ == .__main__.:",
"if TYPE_CHECKING:",
"if typing.TYPE_CHECKING:",
]
ignore_errors = true
[tool.coverage.html]
directory = "cov_html"
[tool.flake8]
max-line-length = 210
max-complexity = 22
count = true
show-source = true
statistics = true
disable-noqa = false
# 'ignore' defaults to: E121,E123,E126,E226,E24,E704,W503,W504
extend-ignore = [
'B904',
'B006',
'B950',
'B017',
'C901',
'E501',
'E731',
]
per-file-ignores = [
'__init__.py:F401',
]
# 'select' defaults to: E,F,W,C90
extend-select = [
# * Default warnings reported by flake8-bugbear (B) -
# https://github.com/PyCQA/flake8-bugbear#list-of-warnings
'B',
# * The B950 flake8-bugbear opinionated warnings -
# https://github.com/PyCQA/flake8-bugbear#opinionated-warnings
'B9',
]
extend-exclude = [
'.github', '.gitlab',
'.Python', '.*.pyc', '.*.pyo', '.*.pyd', '.*.py.class', '*.egg-info',
'venv*', '.venv*', '.*_cache',
'lib', 'lib64', '.*.so',
'build', 'dist', 'sdist', 'wheels',
]
[tool.black]
line-length = 200
extend-exclude = '''
# A regex preceded with ^/ will apply only to files and directories
# in the root of the project.
(
\.pytest_cache
)
'''
[tool.isort]
profile = 'black'
# The 'black' profile means:
# multi_line_output = 3
# include_trailing_comma = true
# force_grid_wrap = 0
# use_parentheses = true
# ensure_newline_before_comments = true
# line_length = 88
line_length = 200 # override black provile line_length
force_single_line = true # override black profile multi_line_output
star_first = true
group_by_package = true
force_sort_within_sections = true
lines_after_imports = 2
honor_noqa = true
atomic = true
ignore_comments = true
skip_gitignore = true
src_paths = [
'src',
'tests',
]
|