-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.py
executable file
·43 lines (38 loc) · 1.2 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
#!/usr/bin/env python3
import re
import setuptools
with open("README.md", "r") as fh:
long_description = fh.read()
package_name = "soundpad"
VERSIONFILE="%s/_version.py" % package_name
verstrline = open(VERSIONFILE, "rt").read()
VSRE = r"^__version__ = ['\"]([^'\"]*)['\"]"
mo = re.search(VSRE, verstrline, re.M)
if mo:
verstr = mo.group(1)
print("found version %s" % verstr)
else:
raise RuntimeError("Unable to find version string in %s." % (VERSIONFILE,))
setuptools.setup(
name=package_name,
version=verstr,
author="Florian Streibelt",
author_email="[email protected]",
description="A small tool to use a novation launchpad mini as soundboard.",
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/mutax/soundpad",
packages=setuptools.find_packages(),
install_requires=['pygame', 'launchpad-py'],
classifiers=[
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
],
entry_points={
'console_scripts': [
'soundpad=soundpad.soundpad:main',
],
},
python_requires='>=3.5',
)