-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsetup.py
47 lines (41 loc) · 1.24 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
#!/usr/bin/env python
import os
from setuptools import find_packages, setup
here = os.path.dirname(os.path.abspath(__file__))
f = open(os.path.join(here, 'README.md'))
long_description = f.read().strip()
f.close()
about = {}
with open('drf_handlers/__version__.py', 'r', encoding="utf8") as f:
exec(f.read(), about)
setup(
name='drf-errors-formatter',
version=about['__version__'],
author='Thomas',
author_email='imichael@pm.me',
url='https://github.com/thomas545/drf-errors-formatter',
description='Format errors in Django Rest Framework',
license='MIT',
packages=find_packages(),
long_description=long_description,
long_description_content_type='text/markdown',
keywords='django rest errors format-errors api',
zip_safe=False,
install_requires=[
'Django>=2.0',
'djangorestframework>=3.7.0',
],
tests_require=[
'coveralls>=1.11.1',
],
test_suite='runtests.runtests',
include_package_data=True,
python_requires='>=3.6',
classifiers=[
'Framework :: Django',
'Intended Audience :: Developers',
'Intended Audience :: System Administrators',
'Operating System :: OS Independent',
'Topic :: Software Development'
],
)