This repository has been archived by the owner on Jan 3, 2022. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
90 lines (79 loc) · 2.02 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
#!/usr/bin/env python
"""The setup script."""
from setuptools import find_packages, setup
with open("README.rst") as readme_file:
readme = readme_file.read()
with open("HISTORY.rst") as history_file:
history = history_file.read()
deploy_requires = [
"bump2version",
"readme_renderer[md]",
"changes",
"git-changelog",
"twine",
"wheel",
]
docs_requires = [
"watchdog[watchmedo]",
"Sphinx",
]
install_requires = [
"django",
"djangorestframework",
]
test_requires = [
"pytest>=3",
"tox",
"tox-gh-actions",
"coverage",
"codacy-coverage",
]
lint_requires = [
"flake8",
"yamllint",
"isort",
"black",
"mypy",
]
extras_require = {
"development": [
install_requires,
deploy_requires,
test_requires,
lint_requires,
],
"test": test_requires,
"lint": lint_requires,
"deploy": deploy_requires,
"docs": docs_requires,
}
setup(
author="Tonye Jack",
author_email="[email protected]",
python_requires=">=3.6",
classifiers=[
"Development Status :: 2 - Pre-Alpha",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Natural Language :: English",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
],
description="Restrict fields returned by DRF serializers",
install_requires=install_requires,
license="MIT license",
long_description=readme,
long_description_content_type="text/x-rst",
include_package_data=False,
keywords=["drf_restricted_fields", "restricted_fields"],
name="drf_restricted_fields",
packages=find_packages(include=["restricted_fields", "restricted_fields.*"]),
test_suite="tests",
tests_require=test_requires,
extras_require=extras_require,
url="https://github.com/tj-django/drf-restricted-fields",
version="0.0.1",
zip_safe=False,
)