File tree 2 files changed +27
-4
lines changed
2 files changed +27
-4
lines changed Original file line number Diff line number Diff line change
1
+ [bdist_wheel]
2
+ universal = 1
Original file line number Diff line number Diff line change
1
+ import os
2
+ import sys
3
+
1
4
from setuptools import setup , find_packages
2
- from dj_elastictranscoder import __version__
3
5
4
6
7
+ def get_version ():
8
+ code = None
9
+ path = os .path .join (
10
+ os .path .dirname (os .path .abspath (__file__ )),
11
+ 'dj_elastictranscoder' ,
12
+ '__init__.py' ,
13
+ )
14
+ with open (path ) as f :
15
+ for line in f :
16
+ if line .startswith ('__version__' ):
17
+ code = line [len ('__version__ = ' ):]
18
+ break
19
+ return eval (code )
20
+
21
+
22
+ if sys .argv [- 1 ] == 'wheel' :
23
+ os .system ('pip wheel .' )
24
+ sys .exit ()
25
+
5
26
setup (
6
27
name = 'django-elastic-transcoder' ,
7
- version = __version__ ,
28
+ version = get_version () ,
8
29
description = "Django with AWS elastic transcoder" ,
9
- long_description = open (" README.rst" ).read (),
30
+ long_description = open (' README.rst' ).read (),
10
31
author = 'tzangms' ,
11
32
author_email = 'tzangms@streetvoice.com' ,
12
33
url = 'http://github.com/StreetVoice/django-elastic-transcoder' ,
13
34
license = 'MIT' ,
14
- packages = find_packages (),
35
+ packages = find_packages (exclude = ( 'testsapp' , ) ),
15
36
include_package_data = True ,
16
37
zip_safe = False ,
17
38
install_requires = [
You can’t perform that action at this time.
0 commit comments