Merge pull request #130 from pebenito/4.5

4.5.1
This commit is contained in:
Chris PeBenito 2024-05-01 13:37:42 -04:00 committed by GitHub
commit 659ec47aba
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 14 additions and 7 deletions

View File

@ -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.

View File

@ -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

View File

@ -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

View File

@ -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,

View File

@ -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