Skip to content

Commit ca91979

Browse files
authored
Merge pull request #339 from SAML-Toolkits/add_poetry
Add Poetry file
2 parents 0078a91 + ff3423e commit ca91979

File tree

1 file changed

+187
-0
lines changed

1 file changed

+187
-0
lines changed

pyproject.toml

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

0 commit comments

Comments
 (0)