setup.py - include type stubs

This commit is contained in:
Rudolf Kolbe 2024-10-06 01:31:58 +02:00 committed by Eugene Kliuchnikov
parent 4b9484271b
commit 9680040fe2
2 changed files with 3 additions and 3 deletions

1
python/__init__.py Normal file
View File

@ -0,0 +1 @@
from .brotli import *

View File

@ -114,8 +114,6 @@ CLASSIFIERS = [
PACKAGE_DIR = {'': 'python'} PACKAGE_DIR = {'': 'python'}
PY_MODULES = ['brotli']
class VersionedExtension(Extension): class VersionedExtension(Extension):
def __init__(self, *args, **kwargs): def __init__(self, *args, **kwargs):
define_macros = [] define_macros = []
@ -268,7 +266,8 @@ setup(
platforms=PLATFORMS, platforms=PLATFORMS,
classifiers=CLASSIFIERS, classifiers=CLASSIFIERS,
package_dir=PACKAGE_DIR, package_dir=PACKAGE_DIR,
py_modules=PY_MODULES, packages=[''],
package_data={'': ['__init__.py', 'brotli.py', 'brotli.pyi', 'py.typed']},
ext_modules=EXT_MODULES, ext_modules=EXT_MODULES,
test_suite=TEST_SUITE, test_suite=TEST_SUITE,
cmdclass=CMD_CLASS) cmdclass=CMD_CLASS)