mirror of
https://github.com/SELinuxProject/setools
synced 2025-01-29 19:22:42 +00:00
commit
659ec47aba
@ -1,3 +1,8 @@
|
||||
*setools-4.5.1 (01 May 2024)
|
||||
|
||||
* Correct annotations of NetworkX types to make it optional again.
|
||||
* Fix packaging issue for apol's style sheet (apol.css).
|
||||
|
||||
*setools-4.5.0 (21 Mar 2024)
|
||||
|
||||
* Rework apol to fully generate the UI programmatically.
|
||||
|
@ -282,7 +282,7 @@ class DomainTransitionAnalysis(DirectedGraphAnalysis):
|
||||
case _:
|
||||
raise ValueError(f"Unknown analysis mode: {self.mode}")
|
||||
|
||||
def graphical_results(self) -> nx.DiGraph:
|
||||
def graphical_results(self) -> "nx.DiGraph":
|
||||
|
||||
"""
|
||||
Return the results of the analysis as a NetworkX directed graph.
|
||||
@ -846,7 +846,7 @@ class Edge(NetworkXGraphEdge):
|
||||
The default is False.
|
||||
"""
|
||||
|
||||
G: nx.DiGraph
|
||||
G: "nx.DiGraph"
|
||||
source: Type
|
||||
target: Type
|
||||
create: InitVar[bool] = False
|
||||
|
@ -207,7 +207,7 @@ class InfoFlowAnalysis(DirectedGraphAnalysis):
|
||||
case _:
|
||||
raise ValueError(f"Unknown analysis mode: {self.mode}")
|
||||
|
||||
def graphical_results(self) -> nx.DiGraph:
|
||||
def graphical_results(self) -> "nx.DiGraph":
|
||||
|
||||
"""
|
||||
Return the results of the analysis as a NetworkX directed graph.
|
||||
@ -590,7 +590,7 @@ class InfoFlowStep(NetworkXGraphEdge):
|
||||
The default is False.
|
||||
"""
|
||||
|
||||
G: nx.DiGraph
|
||||
G: "nx.DiGraph"
|
||||
source: Type
|
||||
target: Type
|
||||
create: InitVar[bool] = False
|
||||
|
4
setup.py
4
setup.py
@ -65,7 +65,7 @@ for lang in linguas:
|
||||
installed_data.append((join('share/man', lang, 'man1'), glob.glob(join("man", lang, "*.1"))))
|
||||
|
||||
setup(name='setools',
|
||||
version='4.5.0',
|
||||
version='4.5.1',
|
||||
description='SELinux policy analysis tools.',
|
||||
author='Chris PeBenito',
|
||||
author_email='pebenito@ieee.org',
|
||||
@ -75,7 +75,7 @@ setup(name='setools',
|
||||
'setoolsgui.widgets.models', 'setoolsgui.widgets.views'],
|
||||
scripts=['apol', 'sediff', 'seinfo', 'seinfoflow', 'sesearch', 'sedta', 'sechecker'],
|
||||
data_files=installed_data,
|
||||
package_data={'': ['*.html'],
|
||||
package_data={'': ['*.css', '*.html'],
|
||||
'setools': ['perm_map', 'policyrep.pyi', 'py.typed']},
|
||||
ext_modules=cythonize(ext_py_mods, include_path=['setools/policyrep'],
|
||||
annotate=cython_annotate,
|
||||
|
4
tox.ini
4
tox.ini
@ -41,7 +41,9 @@ commands = mypy -p setools -p setoolsgui -p tests -p tests-gui
|
||||
|
||||
[testenv:install]
|
||||
deps = {[testenv]deps}
|
||||
commands = {envpython} -m pip install --use-pep517 .
|
||||
allowlist_externals = find
|
||||
commands = {envpython} -m pip install --use-pep517 --root {envtmpdir}/setools .
|
||||
find {envtmpdir}/setools
|
||||
|
||||
[testenv]
|
||||
passenv = USERSPACE_SRC
|
||||
|
Loading…
Reference in New Issue
Block a user