-
Notifications
You must be signed in to change notification settings - Fork 2
/
setup.py
76 lines (63 loc) · 2.2 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
"""
Django API commons packaging module.
See: https://packaging.python.org/en/latest/distributing.html
"""
from setuptools import setup, find_packages
from codecs import open
from os import path
version = "1.0.6"
root_dir = path.abspath(path.dirname(__file__))
src_dir = root_dir
# Get the long description from the README file
with open(path.join(root_dir, 'README.MD'), encoding='utf-8') as f:
# long_description = f.read()
long_description = '''Common library for building django based web api applications'''
setup(
name='django_api_commons',
# Semantic versioning should be used:
# https://packaging.python.org/distributing/?highlight=entry_points#semantic-versioning-preferred
version=version,
description='Common library for building django based web api applications',
long_description=long_description,
long_description_content_type="text/markdown",
url='https://github.com/Logicify/python-api',
keywords='django webservices api rest djangorestframework json jsonapi',
# Author
author='Dmitry Berezovsky',
# License
license='MIT',
# Technical meta
# See https://pypi.python.org/pypi?%3Aaction=list_classifiers
classifiers=[
# How mature is this project? Common values are
# 3 - Alpha
# 4 - Beta
# 5 - Production/Stable
'Development Status :: 3 - Alpha',
# Who your project is intended for
'Intended Audience :: Developers',
'Topic :: Software Development :: Build Tools',
# License (should match "license" above)
'License :: OSI Approved :: MIT License',
# Python versions support
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
],
# Structure
packages=find_packages(include=['api_commons']),
install_requires=[
'Django>=1.11',
'djangorestframework>=3.5.4',
'typing>=3.5.3.0'
],
# Extra dependencies might be installed with:
# pip install -e .[dev,test]
extras_require={
'dev': [],
'test': [],
},
package_data={
'examples': [path.join(root_dir, 'example_service')],
},
)