-
Notifications
You must be signed in to change notification settings - Fork 51
/
Copy pathpyproject.toml
157 lines (135 loc) · 3.18 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
157
[build-system]
requires = [
"setuptools >= 61.0.0", # Support for setuptools config in pyproject.toml
]
build-backend = "setuptools.build_meta"
[project]
name = "pypsrp"
version = "1.0.0b2"
description = "PowerShell Remoting Protocol and WinRM for Python"
readme = "README.md"
requires-python = ">=3.8"
license = {file = "LICENSE"}
authors = [
{ name = "Jordan Borean", email = "[email protected]" }
]
keywords = ["winrm", "psrp", "winrs", "windows", "powershell"]
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"
]
dependencies = [
"cryptography",
"httpcore < 1.0.0",
"httpx < 1.0.0",
"psrpcore >= 0.1.2",
"pyspnego >= 0.7.0, < 1.0.0",
"requests >= 2.9.1" # Old pypsrp namespace
]
[project.urls]
homepage = "https://github.com/jborean93/pypsrp"
[project.optional-dependencies]
credssp = [
"requests-credssp >= 2.0.0"
]
kerberos = [
"pyspnego[kerberos]"
]
named_pipe = [
"psutil"
]
ssh = [
"asyncssh"
]
[tool.setuptools]
include-package-data = true
[tool.setuptools.packages.find]
where = ["src"]
[tool.setuptools.package-data]
psrp = ["py.typed"]
"psrp._pwsh" = ["*.ps1"]
pypsrp = ["py.typed"]
"pypsrp.pwsh_scripts" = ["*.ps1"]
[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_incomplete_defs = true
disallow_untyped_decorators = true
no_implicit_reexport = true
warn_redundant_casts = true
warn_unused_ignores = true
[[tool.mypy.overrides]]
module = "psrp.*"
disallow_untyped_decorators = true
disallow_untyped_defs = true
check_untyped_defs = true
warn_return_any = true
warn_unreachable = true
[[tool.mypy.overrides]]
module = "psrp._connection.named_pipe"
warn_unused_ignores = false
[[tool.mypy.overrides]]
module = "psrp._connection._win32"
warn_unused_ignores = false
[[tool.mypy.overrides]]
module = "asyncssh.*"
implicit_reexport = true # asyncssh does not explicitly export these symbols
[[tool.mypy.overrides]]
module = "requests.packages.urllib3.*"
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = "requests_credssp"
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = "xmldiff"
ignore_missing_imports = true
[tool.pytest.ini_options]
asyncio_mode = "auto"
testpaths = "tests"
junit_family = "xunit2"
[tool.tox]
legacy_tox_ini = """
[tox]
envlist = lint,py36,py37,py38,py39,py310
skip_missing_interpreters = true
isolated_build = True
[testenv]
deps =
-r{toxinidir}/requirements-dev.txt
commands =
python -m pytest tests/tests_psrp -v --cov psrp --cov-report term-missing
passenv =
PYPSRP_*
[testenv:lint]
commands =
python -m black . --check
python -m isort . --check-only
python -m mypy .
"""