forked from miki725/django-rest-framework-bulk
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathsetup.py
More file actions
56 lines (48 loc) · 1.49 KB
/
Copy pathsetup.py
File metadata and controls
56 lines (48 loc) · 1.49 KB
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
#!/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="drf-bulk",
version=__version__,
author=__author__,
author_email="devs@101loop.com",
description="Django REST Framework bulk CRUD view mixins",
long_description="\n\n".join([readme, history, authors, licence]),
url="https://github.com/101loop/drf-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",
],
)