-
Notifications
You must be signed in to change notification settings - Fork 11
/
pyproject.toml
156 lines (130 loc) · 3.53 KB
/
pyproject.toml
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
[build-system]
requires = [
"setuptools >= 61.0.0", # Support for setuptools config in pyproject.toml
]
build-backend = "setuptools.build_meta"
[project]
name = "pyspnego"
description = "Windows Negotiate Authentication Client and Server"
readme = "README.md"
requires-python = ">=3.8"
license = {file = "LICENSE"}
authors = [
{ name = "Jordan Borean", email = "[email protected]" }
]
keywords = ["windows", "spnego", "negotiate", "ntlm", "kerberos", "sspi", "gssapi", "auth"]
classifiers = [
"Development Status :: 4 - Beta",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13"
]
dependencies = [
"cryptography",
"sspilib >= 0.1.0; sys_platform == 'win32'"
]
dynamic = ["version"]
[project.optional-dependencies]
kerberos = [
"gssapi >= 1.6.0; sys_platform != 'win32'",
"krb5 >= 0.3.0; sys_platform != 'win32'"
]
yaml = ["ruamel.yaml"]
[project.scripts]
pyspnego-parse = "spnego.__main__:main"
[project.urls]
homepage = "https://github.com/jborean93/pyspnego"
[tool.setuptools]
include-package-data = true
[tool.setuptools.dynamic]
version = {attr = "spnego._version.__version__"}
[tool.setuptools.packages.find]
where = ["src"]
[tool.setuptools.package-data]
spnego = ["py.typed"]
"spnego._sspi_raw" = ["*.pyi"]
[tool.setuptools.exclude-package-data]
"spnego._sspi_raw" = ["*.pxd", "*.pyx"]
[tool.black]
line-length = 120
include = '\.pyi?$'
exclude = '''
/(
\.git
| \.hg
| \.mypy_cache
| \.tox
| \.venv
| _build
| buck-out
| build
| dist
)/
'''
[tool.isort]
profile = "black"
[tool.mypy]
exclude = "build/"
mypy_path = "$MYPY_CONFIG_FILE_DIR/src"
show_error_codes = true
show_column_numbers = true
disallow_any_unimported = true
disallow_untyped_calls = true
disallow_untyped_defs = true
disallow_incomplete_defs = true
check_untyped_defs = true
disallow_untyped_decorators = true
warn_redundant_casts = true
warn_unused_ignores = true
# The ignores in this file are platform dependent so the ignores will not be
# needed on some flagging this rule. Just avoid specifically for this file
[[tool.mypy.overrides]]
module = "spnego.exceptions"
warn_unused_ignores = false
[[tool.mypy.overrides]]
module = "tests.*"
disallow_untyped_defs = false
# Cannot install on Windows so we cannot validate this
[[tool.mypy.overrides]]
module = "spnego._gss"
disallow_any_unimported = false
[[tool.mypy.overrides]]
module = "gssapi.*"
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = "krb5.*"
ignore_missing_imports = true
# Cannot install on non-Windows so we cannot validate this
[[tool.mypy.overrides]]
module = "spnego._sspi"
disallow_any_unimported = false
[[tool.mypy.overrides]]
module = "sspilib.*"
ignore_missing_imports = true
# These types are used in tests, too much effort to create stubs
[[tool.mypy.overrides]]
module = "argcomplete"
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = "k5test"
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = "k5test.realm"
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = "ruamel"
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = "win32net"
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = "win32netcon"
ignore_missing_imports = true
[tool.pytest.ini_options]
testpaths = "tests"
junit_family = "xunit2"