Merge pull request #94 from pebenito/py-typed

Install policyrep typing.
This commit is contained in:
Chris PeBenito 2023-04-14 10:42:06 -04:00 committed by GitHub
commit 676d22e6e6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 2 deletions

0
py.typed Normal file
View File

View File

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

View File

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