1 Star 0 Fork 0

yzjia/django-stubs

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
setup.py 1.51 KB
一键复制 编辑 原始数据 按行查看 历史
Nikita Sobolev 提交于 2020-06-08 10:55 . Closes #392
import os
from distutils.core import setup
from typing import List
from setuptools import find_packages
def find_stub_files(name: str) -> List[str]:
result = []
for root, dirs, files in os.walk(name):
for file in files:
if file.endswith('.pyi'):
if os.path.sep in root:
sub_root = root.split(os.path.sep, 1)[-1]
file = os.path.join(sub_root, file)
result.append(file)
return result
with open('README.md', 'r') as f:
readme = f.read()
dependencies = [
'mypy>=0.780,<0.790',
'typing-extensions',
'django',
]
setup(
name="django-stubs",
version="1.5.0",
description='Mypy stubs for Django',
long_description=readme,
long_description_content_type='text/markdown',
license='MIT',
url="https://github.com/typeddjango/django-stubs",
author="Maksim Kurnikov",
author_email="maxim.kurnikov@gmail.com",
py_modules=[],
python_requires='>=3.6',
install_requires=dependencies,
packages=['django-stubs', *find_packages(exclude=['scripts'])],
package_data={'django-stubs': find_stub_files('django-stubs')},
classifiers=[
'Development Status :: 3 - Alpha',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8'
],
project_urls={
'Release notes': 'https://github.com/typeddjango/django-stubs/releases',
},
)
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/yzjia0827/django-stubs.git
git@gitee.com:yzjia0827/django-stubs.git
yzjia0827
django-stubs
django-stubs
master

搜索帮助