mirror of
https://github.com/davidhalter/django-stubs.git
synced 2025-12-10 22:11:54 +08:00
Release 1.6.0
This commit is contained in:
40
setup.py
40
setup.py
@@ -9,7 +9,7 @@ def find_stub_files(name: str) -> List[str]:
|
|||||||
result = []
|
result = []
|
||||||
for root, dirs, files in os.walk(name):
|
for root, dirs, files in os.walk(name):
|
||||||
for file in files:
|
for file in files:
|
||||||
if file.endswith('.pyi'):
|
if file.endswith(".pyi"):
|
||||||
if os.path.sep in root:
|
if os.path.sep in root:
|
||||||
sub_root = root.split(os.path.sep, 1)[-1]
|
sub_root = root.split(os.path.sep, 1)[-1]
|
||||||
file = os.path.join(sub_root, file)
|
file = os.path.join(sub_root, file)
|
||||||
@@ -17,38 +17,42 @@ def find_stub_files(name: str) -> List[str]:
|
|||||||
return result
|
return result
|
||||||
|
|
||||||
|
|
||||||
with open('README.md', 'r') as f:
|
with open("README.md", "r") as f:
|
||||||
readme = f.read()
|
readme = f.read()
|
||||||
|
|
||||||
dependencies = [
|
dependencies = [
|
||||||
'mypy>=0.782,<0.790',
|
"mypy>=0.782,<0.790",
|
||||||
'typing-extensions',
|
"typing-extensions",
|
||||||
'django',
|
"django",
|
||||||
]
|
]
|
||||||
|
|
||||||
setup(
|
setup(
|
||||||
name="django-stubs",
|
name="django-stubs",
|
||||||
version="1.5.0",
|
version="1.6.0",
|
||||||
description='Mypy stubs for Django',
|
description="Mypy stubs for Django",
|
||||||
long_description=readme,
|
long_description=readme,
|
||||||
long_description_content_type='text/markdown',
|
long_description_content_type="text/markdown",
|
||||||
license='MIT',
|
license="MIT",
|
||||||
url="https://github.com/typeddjango/django-stubs",
|
url="https://github.com/typeddjango/django-stubs",
|
||||||
author="Maksim Kurnikov",
|
author="Maksim Kurnikov",
|
||||||
author_email="maxim.kurnikov@gmail.com",
|
author_email="maxim.kurnikov@gmail.com",
|
||||||
py_modules=[],
|
py_modules=[],
|
||||||
python_requires='>=3.6',
|
python_requires=">=3.6",
|
||||||
install_requires=dependencies,
|
install_requires=dependencies,
|
||||||
packages=['django-stubs', *find_packages(exclude=['scripts'])],
|
packages=["django-stubs", *find_packages(exclude=["scripts"])],
|
||||||
package_data={'django-stubs': find_stub_files('django-stubs')},
|
package_data={"django-stubs": find_stub_files("django-stubs")},
|
||||||
classifiers=[
|
classifiers=[
|
||||||
'Development Status :: 3 - Alpha',
|
"Development Status :: 3 - Alpha",
|
||||||
'License :: OSI Approved :: MIT License',
|
"License :: OSI Approved :: MIT License",
|
||||||
'Programming Language :: Python :: 3.6',
|
"Programming Language :: Python :: 3.6",
|
||||||
'Programming Language :: Python :: 3.7',
|
"Programming Language :: Python :: 3.7",
|
||||||
'Programming Language :: Python :: 3.8'
|
"Programming Language :: Python :: 3.8",
|
||||||
|
"Framework :: Django",
|
||||||
|
"Framework :: Django :: 2.2",
|
||||||
|
"Framework :: Django :: 3.0",
|
||||||
|
"Typing :: Typed",
|
||||||
],
|
],
|
||||||
project_urls={
|
project_urls={
|
||||||
'Release notes': 'https://github.com/typeddjango/django-stubs/releases',
|
"Release notes": "https://github.com/typeddjango/django-stubs/releases",
|
||||||
},
|
},
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user