-
Notifications
You must be signed in to change notification settings - Fork 56
Expand file tree
/
Copy pathpyproject.toml
More file actions
147 lines (135 loc) · 3.8 KB
/
pyproject.toml
File metadata and controls
147 lines (135 loc) · 3.8 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
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
# Copyright 2018 The Batfish Open Source Project
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
[build-system]
requires = ["setuptools>=42", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "pybatfish"
version = "0.36.0"
description = "Python API and utilities for Batfish"
readme = "README.md"
requires-python = ">=3.10"
license = {text = "Apache License 2.0"}
authors = [
{name = "The Batfish Open Source Project", email = "pybatfish-dev@intentionet.com"}
]
classifiers = [
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"Topic :: Software Development :: Libraries :: Python Modules",
"License :: OSI Approved :: Apache Software License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"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",
]
keywords = ["network", "configuration", "verification"]
dependencies = [
"attrs>=18.1.0",
"deepdiff",
"pandas",
"python-dateutil",
"PyYAML",
"requests",
"requests-toolbelt",
"setuptools",
"simplejson",
"urllib3>=1.26.0",
]
[project.urls]
Homepage = "https://github.com/batfish/pybatfish"
Documentation = "https://pybatfish.readthedocs.io/en/latest/"
Repository = "https://github.com/batfish/pybatfish"
[project.optional-dependencies]
capirca = [
"capirca",
"absl-py>=0.8.0",
]
mcp = [
"mcp>=1.23.0",
]
dev = [
"ruff",
"cerberus",
"check-manifest",
"coverage",
"inflection",
"jupyter",
"mypy",
"nbconvert",
"nbsphinx",
"progressbar2",
"pytest>=4.2.0",
"pytest-cov",
"pytz",
"recommonmark",
"requests_mock",
"responses",
"sphinx>=1.8.0",
"sphinx-notfound-page",
"sphinx_rtd_theme",
"types-decorator",
"types-python-dateutil",
"types-pytz",
"types-PyYAML",
"types-requests",
"types-setuptools",
"types-simplejson",
"capirca",
"absl-py>=0.8.0",
"mcp>=1.23.0",
]
[project.entry-points."batfish_session"]
bf = "pybatfish.client.session:Session"
[project.scripts]
batfish-mcp = "pybatfish.mcp.__main__:main"
[tool.setuptools]
packages = {find = {exclude = ["contrib", "docs", "tests"]}}
package-data = {"pybatfish" = ["py.typed"]}
zip-safe = false
[tool.pytest.ini_options]
testpaths = ["tests"]
addopts = "--ignore tests/integration --cov=pybatfish"
doctest_encoding = "utf8"
doctest_optionflags = ["NORMALIZE_WHITESPACE", "ALLOW_UNICODE", "ALLOW_BYTES"]
log_level = "INFO"
[tool.build_sphinx]
source-dir = "docs/source"
all-files = true
build-dir = "docs/build"
warning-is-error = 1
[tool.ruff]
line-length = 120
target-version = "py310"
exclude = ["*.ipynb"]
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"I", # isort
"UP", # pyupgrade
]
ignore = [
"F403", # Star imports used in notebook generation
"E402", # Import not at top (acceptable in sphinx conf.py)
"F822", # Undefined name in __all__ (may be dynamically generated)
"E501", # Long line length -> let the formatter do the right thing but don't lint what it leaves
]
[tool.ruff.format]
quote-style = "double"
indent-style = "space"