-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
113 lines (94 loc) · 3.04 KB
/
Copy pathpyproject.toml
File metadata and controls
113 lines (94 loc) · 3.04 KB
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
[project]
name = "nitlsconfig"
version = "1.0.0a3"
license = "MIT"
description = "Python API for reading nitlsconfig configurations and creating NI gRPC Device client channels from them"
authors = [{name = "NI", email = "opensource@ni.com"}]
maintainers = [
{name = "Philip Thong", email = "philip.thong@emerson.com"},
]
readme = "README.md"
keywords = ["nitlsconfig", "tls", "mtls", "grpc", "configuration"]
classifiers = [
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Operating System :: Microsoft :: Windows",
"Operating System :: POSIX",
"Programming Language :: Python :: 3",
"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",
"Programming Language :: Python :: 3.14",
]
requires-python = ">=3.9"
dynamic = ["dependencies"]
# Reading NI TLS configuration is pure Python. Only nitlsconfig.grpc_channel
# needs grpcio, so the binary wheel is opt-in. pywin32 rides along with it
# because audit records are only produced when a channel is created, and the
# Windows Event Log logging handler cannot be written to without it.
[project.optional-dependencies]
grpc = ["grpcio>=1.49.0,<2.0", "pywin32>=306; sys_platform == 'win32'"]
[project.urls]
repository = "https://github.com/ni/nitlsconfig-python"
documentation = "https://nitlsconfig-python.readthedocs.io"
[project.scripts]
nitlsconfig-read = "nitlsconfig.cli:nitlsconfig_main"
[build-system]
requires = ["poetry-core>=1.9.0"]
build-backend = "poetry.core.masonry.api"
[tool.poetry]
packages = [{ include = "nitlsconfig", from = "src" }]
requires-poetry = '>=2.1,<3.0'
[tool.poetry.dependencies]
python = ">=3.9,<4.0"
[tool.poetry.group.lint.dependencies]
bandit = { version = ">=1.7", extras = ["toml"] }
ni-python-styleguide = ">=0.4.1"
mypy = ">=1.0"
pyright = { version = ">=1.1.400", extras = ["nodejs"] }
[tool.poetry.group.test.dependencies]
pytest = ">=7.2"
pytest-cov = ">=4.0"
pytest-mock = ">=3.0"
pytest-env = ">=1.0,<2.0"
cryptography = ">=41.0"
[tool.poetry.group.docs]
optional = true
[tool.poetry.group.docs.dependencies]
# The latest Sphinx requires a recent Python version.
Sphinx = [
{ version = ">=8.1", python = ">=3.10,<3.11" },
{ version = ">=8.2", python = "^3.11" },
]
sphinx-rtd-theme = ">=1.0.0"
sphinx-autoapi = ">=1.8.4"
m2r2 = ">=0.3.2"
toml = ">=0.10.2"
[tool.pytest_env]
env_files = [".env"]
[tool.ni-python-styleguide]
extend_exclude = ".tox,docs"
application-import-names = "nitlsconfig,tests"
[tool.black]
extend-exclude = '\.tox/|docs/'
line-length = 100
[tool.mypy]
files = "src/nitlsconfig/,tests/"
namespace_packages = true
strict = true
[[tool.mypy.overrides]]
# grpcio does not ship a py.typed marker.
module = "grpc.*"
ignore_missing_imports = true
[tool.bandit]
skips = [
"B101", # assert_used
]
[tool.pytest.ini_options]
addopts = "--doctest-modules --strict-markers"
testpaths = ["src/nitlsconfig", "tests"]
[tool.pyright]
include = ["src/", "tests/"]