Skip to content

Commit 659ec47

Browse files
authored
Merge pull request #130 from pebenito/4.5
4.5.1
2 parents c386801 + 16a29fa commit 659ec47

File tree

5 files changed

+14
-7
lines changed

5 files changed

+14
-7
lines changed

ChangeLog

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
*setools-4.5.1 (01 May 2024)
2+
3+
* Correct annotations of NetworkX types to make it optional again.
4+
* Fix packaging issue for apol's style sheet (apol.css).
5+
16
*setools-4.5.0 (21 Mar 2024)
27

38
* Rework apol to fully generate the UI programmatically.

setools/dta.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,7 @@ def results(self) -> Iterable[DTAPath] | Iterable[DomainTransition]:
282282
case _:
283283
raise ValueError(f"Unknown analysis mode: {self.mode}")
284284

285-
def graphical_results(self) -> nx.DiGraph:
285+
def graphical_results(self) -> "nx.DiGraph":
286286

287287
"""
288288
Return the results of the analysis as a NetworkX directed graph.
@@ -846,7 +846,7 @@ class Edge(NetworkXGraphEdge):
846846
The default is False.
847847
"""
848848

849-
G: nx.DiGraph
849+
G: "nx.DiGraph"
850850
source: Type
851851
target: Type
852852
create: InitVar[bool] = False

setools/infoflow.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ def results(self) -> Iterable[InfoFlowPath] | Iterable["InfoFlowStep"]:
207207
case _:
208208
raise ValueError(f"Unknown analysis mode: {self.mode}")
209209

210-
def graphical_results(self) -> nx.DiGraph:
210+
def graphical_results(self) -> "nx.DiGraph":
211211

212212
"""
213213
Return the results of the analysis as a NetworkX directed graph.
@@ -590,7 +590,7 @@ class InfoFlowStep(NetworkXGraphEdge):
590590
The default is False.
591591
"""
592592

593-
G: nx.DiGraph
593+
G: "nx.DiGraph"
594594
source: Type
595595
target: Type
596596
create: InitVar[bool] = False

setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@
6565
installed_data.append((join('share/man', lang, 'man1'), glob.glob(join("man", lang, "*.1"))))
6666

6767
setup(name='setools',
68-
version='4.5.0',
68+
version='4.5.1',
6969
description='SELinux policy analysis tools.',
7070
author='Chris PeBenito',
7171
author_email='[email protected]',
@@ -75,7 +75,7 @@
7575
'setoolsgui.widgets.models', 'setoolsgui.widgets.views'],
7676
scripts=['apol', 'sediff', 'seinfo', 'seinfoflow', 'sesearch', 'sedta', 'sechecker'],
7777
data_files=installed_data,
78-
package_data={'': ['*.html'],
78+
package_data={'': ['*.css', '*.html'],
7979
'setools': ['perm_map', 'policyrep.pyi', 'py.typed']},
8080
ext_modules=cythonize(ext_py_mods, include_path=['setools/policyrep'],
8181
annotate=cython_annotate,

tox.ini

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,9 @@ commands = mypy -p setools -p setoolsgui -p tests -p tests-gui
4141

4242
[testenv:install]
4343
deps = {[testenv]deps}
44-
commands = {envpython} -m pip install --use-pep517 .
44+
allowlist_externals = find
45+
commands = {envpython} -m pip install --use-pep517 --root {envtmpdir}/setools .
46+
find {envtmpdir}/setools
4547

4648
[testenv]
4749
passenv = USERSPACE_SRC

0 commit comments

Comments
 (0)