Skip to content

Commit 9680040

Browse files
K0lb3eustas
authored andcommitted
setup.py - include type stubs
1 parent 4b94842 commit 9680040

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

python/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
from .brotli import *

setup.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -114,8 +114,6 @@ def build_extension(self, ext):
114114

115115
PACKAGE_DIR = {'': 'python'}
116116

117-
PY_MODULES = ['brotli']
118-
119117
class VersionedExtension(Extension):
120118
def __init__(self, *args, **kwargs):
121119
define_macros = []
@@ -268,7 +266,8 @@ def get_tag(self):
268266
platforms=PLATFORMS,
269267
classifiers=CLASSIFIERS,
270268
package_dir=PACKAGE_DIR,
271-
py_modules=PY_MODULES,
269+
packages=[''],
270+
package_data={'': ['__init__.py', 'brotli.py', 'brotli.pyi', 'py.typed']},
272271
ext_modules=EXT_MODULES,
273272
test_suite=TEST_SUITE,
274273
cmdclass=CMD_CLASS)

0 commit comments

Comments
 (0)