-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
53 lines (46 loc) · 1.21 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 -*-
#
# setup.py for pymp3utils
from setuptools import setup, find_packages
import os.path
import sys
_pkgname = 'pymp3utils'
def get_version():
ver = 'unknown'
__version__ = ver
if os.path.exists(_pkgname):
f = open(os.path.join(_pkgname, '_version.py'))
for v in f.readlines():
if v.startswith('__version__'):
exec(v)
ver = __version__
return ver
extra = {}
if sys.version_info >= (3,):
extra['use_2to3'] = True
setup(
name=_pkgname,
version=get_version(),
author='Jason Penney',
author_email='[email protected]',
url='http://jasonpenney.net/',
license='GPL',
packages=find_packages(exclude=['test.*']),
install_requires='''
eyeD3 >= 0.6.17
mutagen >= 1.20
argparse
MP3_Tools
''',
entry_points="""
[console_scripts]
mp3sum = pymp3utils.mp3sum.console:main
mp3gainer = pymp3utils.mp3gain.console:main
""",
dependency_links=['http://github.com/kirkeby/python-mp3/tarball/mas'
'ter#egg=MP3_Tools-0.1'],
include_package_data=True,
exclude_package_data={'': ['test/*']},
**extra
)