mirror of
https://github.com/nonebot/nonebot2.git
synced 2025-02-22 02:25:56 +08:00
Fix setup.py to include stub files
This commit is contained in:
parent
347318aaaa
commit
218a6c5665
8
setup.py
8
setup.py
@ -1,12 +1,14 @@
|
|||||||
from setuptools import setup, find_packages
|
from setuptools import setup, find_packages, findall
|
||||||
|
|
||||||
with open('README.md', 'r', encoding='utf-8') as f:
|
with open('README.md', 'r', encoding='utf-8') as f:
|
||||||
long_description = f.read()
|
long_description = f.read()
|
||||||
|
|
||||||
|
packages = find_packages(include=('nonebot', 'nonebot.*'))
|
||||||
|
stub_files = list(filter(lambda x: x.endswith('.pyi'), findall('nonebot')))
|
||||||
|
|
||||||
setup(
|
setup(
|
||||||
name='nonebot',
|
name='nonebot',
|
||||||
version='1.1.0',
|
version='1.1.0',
|
||||||
packages=find_packages(include=('nonebot', 'nonebot.*')),
|
|
||||||
url='https://github.com/richardchien/nonebot',
|
url='https://github.com/richardchien/nonebot',
|
||||||
license='MIT License',
|
license='MIT License',
|
||||||
author='Richard Chien',
|
author='Richard Chien',
|
||||||
@ -14,6 +16,8 @@ setup(
|
|||||||
description='An asynchronous QQ bot framework based on CoolQ.',
|
description='An asynchronous QQ bot framework based on CoolQ.',
|
||||||
long_description=long_description,
|
long_description=long_description,
|
||||||
long_description_content_type='text/markdown',
|
long_description_content_type='text/markdown',
|
||||||
|
packages=packages,
|
||||||
|
data_files=stub_files,
|
||||||
install_requires=['aiocqhttp>=0.6.7', 'aiocache>=0.10'],
|
install_requires=['aiocqhttp>=0.6.7', 'aiocache>=0.10'],
|
||||||
extras_require={
|
extras_require={
|
||||||
'scheduler': ['apscheduler>=1.2'],
|
'scheduler': ['apscheduler>=1.2'],
|
||||||
|
Loading…
x
Reference in New Issue
Block a user