-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathsetup.py
31 lines (25 loc) · 932 Bytes
/
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
import os
import re
from setuptools import find_packages, setup
here = os.path.abspath(os.path.dirname(__file__))
README = open(os.path.join(here, 'README.md')).read()
def get_version(package):
"""Return package version as listed in `__version__` in `init.py`."""
init_py = open(os.path.join(package, '__init__.py')).read()
return re.search("__version__ = ['\"]([^'\"]+)['\"]", init_py).group(1)
setup(
name='drf-problems',
version=get_version('drf_problems'),
description='Never liked DRF plain old errors? Forget that and accept RFC 7807 - Problem Details!',
long_description=README,
long_description_content_type="text/markdown",
author='shivanshs9',
author_email='[email protected]',
url='https://github.com/shivanshs9/drf-problems/',
packages=find_packages(),
license='MIT',
install_requires=[
'Django>=1.6',
'djangorestframework>=3.0.0'
]
)