-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathsetup.py
More file actions
58 lines (49 loc) · 1.41 KB
/
setup.py
File metadata and controls
58 lines (49 loc) · 1.41 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
57
58
from distutils.core import setup
import os
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
setup(
name='mimi',
version='1.2a-beta',
packages=['mimi'],
# py_modules=['mimi','mode','output','preprocess','generator'], # 將模組的metadata關連到setup函式
author='exeex',
author_email='xray0h@gmail.com',
url='....',
description='beta',
)
here = os.path.abspath(os.path.dirname(__file__))
def get_about():
about = {}
path = os.path.join(here, 'mimi', '__about__.py')
with open(path, 'rt') as aboutfile:
exec(aboutfile.read(), about)
return about
about = get_about()
setup(
name='mimi',
version=about['__version__'],
description='MIDI Objects for Python',
# long_description=open('README.rst', 'rt').read(),
author=about['__author__'],
author_email=about['__author_email__'],
url=about['__url__'],
license=about['__license__'],
# package_data={'soundfont': ['soundfont/*']},
package_dir={'mimi': 'mimi'},
packages=['mimi'],
include_package_data=True,
install_requires=['mido>=1.2.8','numpy>=1.12.0'],
extras_require={
'dev': ['check-manifest>=0.35',
'flake8>=3.4.1',
'pytest>=3.2.2',
'sphinx>=1.6.3',
'tox>=2.8.2'
],
'ports': ['python-rtmidi>=1.1.0']
},
zip_safe=False,
)