diff --git a/py.typed b/py.typed new file mode 100644 index 0000000..e69de29 diff --git a/setools/policyrep.pyi b/setools/policyrep.pyi index 7b31be8..752a22c 100644 --- a/setools/policyrep.pyi +++ b/setools/policyrep.pyi @@ -7,7 +7,6 @@ from typing import Any, Callable, Dict, FrozenSet, Iterable, Iterator, List, Nam import enum import ipaddress import setools.exception -import typing import weakref AnyConstraint = Union["Constraint", "Validatetrans"] diff --git a/setup.py b/setup.py index 41cee76..f8b680d 100644 --- a/setup.py +++ b/setup.py @@ -142,7 +142,9 @@ setup(name='setools', packages=['setools', 'setools.checker', 'setools.diff', 'setoolsgui', 'setoolsgui.apol'], scripts=['apol', 'sediff', 'seinfo', 'seinfoflow', 'sesearch', 'sedta', 'sechecker'], data_files=installed_data, - package_data={'': ['*.ui', '*.qhc', '*.qch'], 'setools': ['perm_map']}, + package_data={'': ['*.ui', '*.qhc', '*.qch'], 'setools': ['perm_map', + 'policyrep.pyi', + 'py.typed']}, ext_modules=cythonize(ext_py_mods, include_path=['setools/policyrep'], annotate=cython_annotate, compiler_directives={"language_level": 3,