mirror of
https://github.com/davidhalter/django-stubs.git
synced 2025-12-06 12:14:28 +08:00
update setup.py
This commit is contained in:
9
setup.py
9
setup.py
@@ -1,10 +1,11 @@
|
||||
import os
|
||||
from distutils.core import setup
|
||||
from typing import List
|
||||
|
||||
from setuptools import find_packages
|
||||
|
||||
|
||||
def find_stub_files(name):
|
||||
def find_stub_files(name: str) -> List[str]:
|
||||
result = []
|
||||
for root, dirs, files in os.walk(name):
|
||||
for file in files:
|
||||
@@ -30,17 +31,17 @@ dependencies = [
|
||||
setup(
|
||||
name="django-stubs",
|
||||
version="1.0.0",
|
||||
description='Django mypy stubs',
|
||||
description='Mypy stubs for Django',
|
||||
long_description=readme,
|
||||
long_description_content_type='text/markdown',
|
||||
license='MIT',
|
||||
url="https://github.com/mkurnikov/django-stubs",
|
||||
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()],
|
||||
packages=['django-stubs', *find_packages(exclude=['scripts'])],
|
||||
package_data={'django-stubs': find_stub_files('django-stubs')},
|
||||
classifiers=[
|
||||
'Development Status :: 3 - Alpha',
|
||||
|
||||
Reference in New Issue
Block a user