From 1c4666d713b407b7e1dbffcf5ea86c668208baea Mon Sep 17 00:00:00 2001
From: Chris PeBenito <chpebeni@linux.microsoft.com>
Date: Fri, 14 Apr 2023 10:22:00 -0400
Subject: [PATCH] Install policyrep typing.

Signed-off-by: Chris PeBenito <chpebeni@linux.microsoft.com>
---
 py.typed              | 0
 setools/policyrep.pyi | 1 -
 setup.py              | 4 +++-
 3 files changed, 3 insertions(+), 2 deletions(-)
 create mode 100644 py.typed

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,