forked from DavisRayM/django-filter-stubs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
47 lines (39 loc) · 1.31 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
import os
from pathlib import Path
from setuptools import setup
name = "django-filter-stubs"
def find_stub_files(name):
result = []
for root, dirs, files in os.walk(name):
for f in files:
if f.endswith(".pyi"):
if os.path.sep in root:
sub_root = root.split(os.path.sep, 1)[-1]
f = os.path.join(sub_root, f)
result.append(f)
return result
long_description = (Path(__file__).parent / "README.md").read_text()
setup(
name="django-filter-stubs",
version="0.1.3",
description="PEP-484 stubs for django-filter",
long_description=long_description,
long_description_content_type="text/markdown",
license="MIT",
url="https://github.com/DavisRayM/django-filter-stubs",
author="Davis Raymond Muro",
author_email="[email protected]",
packages=['django_filters-stubs'],
package_data={"django_filters-stubs": find_stub_files('django_filters-stubs')},
install_requires=[
"mypy>=0.750",
"django-stubs>=1.3.0",
"djangorestframework-stubs>=0.4.0",
"typing-extensions>=3.7.4",
],
classifiers=[
"Development Status :: 1 - Planning",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3.7",
],
)