-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
executable file
·75 lines (64 loc) · 1.98 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
#!/usr/bin/env python
# -*- coding: UTF-8 -*-
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
# from __future__ import unicode_literals
__author__ = "d01 <Florian Jung>"
__email__ = "jungflor@gmail.com"
__copyright__ = "Copyright (C) 2015-16, Florian JUNG"
__license__ = "MIT"
__version__ = "0.1.2"
__date__ = "2016-03-31"
# Created: 2015-09-20 05:30
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
import sys
import os
if sys.argv[-1] == "build":
os.system("python setup.py clean sdist bdist bdist_egg bdist_wheel")
def get_version():
"""
Parse the version information from the init file
"""
import os
import re
version_file = os.path.join("paps_soundmix", "__init__.py")
initfile_lines = open(version_file, 'rt').readlines()
vsre = r"^__version__ = ['\"]([^'\"]*)['\"]"
for line in initfile_lines:
mo = re.search(vsre, line, re.M)
if mo:
return mo.group(1)
raise RuntimeError("Unable to find version string in {}".format(version_file))
def get_file(path):
with open(path, "r") as f:
return f.read()
version = get_version()
readme = get_file("README.rst")
requirements = open("requirements.txt", "r").read().split("\n")
setup(
name="paps-soundmix",
version=version,
description="Soundmix plugin for paps",
long_description=readme,
author=__author__,
author_email=__email__,
url="https://github.com/the01/paps-soundmix",
packages=[
"paps_soundmix"
],
install_requires=requirements,
license=__license__,
keywords="paps audience participation pygame sound mix audio",
classifiers=[
"Development Status :: 2 - Pre-Alpha",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Natural Language :: English",
"Programming Language :: Python :: 2",
"Programming Language :: Python :: 2.7"
]
)