-
Notifications
You must be signed in to change notification settings - Fork 37
/
setup.py
56 lines (50 loc) · 1.59 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
import os
import sys
from setuptools import setup, find_packages
def get_version():
code = None
path = os.path.join(
os.path.dirname(os.path.abspath(__file__)),
'dj_elastictranscoder',
'__init__.py',
)
with open(path) as f:
for line in f:
if line.startswith('__version__'):
code = line[len('__version__ = '):]
break
return eval(code)
if sys.argv[-1] == 'wheel':
os.system('pip wheel --wheel-dir=wheelhouse .')
sys.exit()
setup(
name='django-elastic-transcoder',
version=get_version(),
description="Django with AWS elastic transcoder",
long_description=open('README.rst').read(),
author='tzangms',
author_email='[email protected]',
url='http://github.com/StreetVoice/django-elastic-transcoder',
license='MIT',
packages=find_packages(exclude=('testsapp', )),
include_package_data=True,
zip_safe=False,
install_requires=[
"boto3 >= 1.1",
"django >= 1.3, < 2.0",
"qiniu >= 7.0.8",
],
classifiers=[
"Intended Audience :: Developers",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 2",
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.4',
"Topic :: Software Development :: Libraries :: Python Modules",
"Environment :: Web Environment",
"Framework :: Django",
],
keywords='django,aws,elastic,transcoder,qiniu,audio,aliyun',
)