-
Notifications
You must be signed in to change notification settings - Fork 106
/
setup.py
53 lines (45 loc) · 1.51 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
#!/usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
import os
from setuptools import find_packages, setup
from rest_framework_bulk import __version__, __author__
def read(fname):
return (open(os.path.join(os.path.dirname(__file__), fname), 'rb')
.read().decode('utf-8'))
authors = read('AUTHORS.rst')
history = read('HISTORY.rst').replace('.. :changelog:', '')
licence = read('LICENSE.rst')
readme = read('README.rst')
requirements = read('requirements.txt').splitlines() + [
'setuptools',
]
test_requirements = (
read('requirements.txt').splitlines()
+ read('requirements-dev.txt').splitlines()[1:]
)
setup(
name='djangorestframework-bulk',
version=__version__,
author=__author__,
author_email='[email protected]',
description='Django REST Framework bulk CRUD view mixins',
long_description='\n\n'.join([readme, history, authors, licence]),
url='https://github.com/miki725/django-rest-framework-bulk',
license='MIT',
keywords='django',
packages=find_packages(),
install_requires=requirements,
tests_require=test_requirements,
classifiers=[
'Development Status :: 3 - Alpha',
'Framework :: Django',
'Intended Audience :: Developers',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 3',
'Topic :: Utilities',
'Topic :: Internet :: WWW/HTTP',
'License :: OSI Approved :: MIT License',
],
)