mirror of
https://github.com/google/brotli.git
synced 2024-11-24 20:40:13 +00:00
setup.py - include type stubs
This commit is contained in:
parent
4b9484271b
commit
9680040fe2
1
python/__init__.py
Normal file
1
python/__init__.py
Normal file
@ -0,0 +1 @@
|
|||||||
|
from .brotli import *
|
5
setup.py
5
setup.py
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user