Skip to content

Commit

Permalink
Merge pull request #130 from pebenito/4.5
Browse files Browse the repository at this point in the history
4.5.1
  • Loading branch information
pebenito authored May 1, 2024
2 parents c386801 + 16a29fa commit 659ec47
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 7 deletions.
5 changes: 5 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
4 changes: 2 additions & 2 deletions setools/dta.py
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ def results(self) -> Iterable[DTAPath] | Iterable[DomainTransition]:
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.
Expand Down Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions setools/infoflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ def results(self) -> Iterable[InfoFlowPath] | Iterable["InfoFlowStep"]:
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.
Expand Down Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@
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='[email protected]',
Expand All @@ -75,7 +75,7 @@
'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,
Expand Down
4 changes: 3 additions & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 659ec47

Please sign in to comment.