This repository was archived by the owner on Oct 20, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 19
/
Copy pathsetup.py
executable file
·56 lines (46 loc) · 1.41 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
#!/usr/bin/env python3
# coding=utf-8
import re
import sys
from setuptools import find_packages, setup
if sys.version_info[:3] < (3, 4):
sys.exit("gmusicapi-scripts does not support this version of Python.")
# From http://stackoverflow.com/a/7071358/1231454
version_file = "gmusicapi_scripts/__init__.py"
version_re = r"^__version__ = ['\"]([^'\"]*)['\"]"
version_file_contents = open(version_file).read()
match = re.search(version_re, version_file_contents, re.M)
if match:
version = match.group(1)
else:
raise RuntimeError("Could not find version in '{}'".format(version_file))
setup(
name='gmusicapi_scripts',
version=version,
description='A collection of scripts using gmusicapi-wrapper and gmusicapi.',
url='https://github.com/thebigmunch/gmusicapi-scripts',
license='MIT',
author='thebigmunch',
author_email='[email protected]',
keywords=[],
classifiers=[
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
],
install_requires=[
'gmusicapi-wrapper >= 0.5.0',
'docopt-unicode'
],
packages=find_packages(),
entry_points={
'console_scripts': [
'gmdelete=gmusicapi_scripts.gmdelete:main',
'gmdownload=gmusicapi_scripts.gmdownload:main',
'gmsearch=gmusicapi_scripts.gmsearch:main',
'gmsync=gmusicapi_scripts.gmsync:main',
'gmupload=gmusicapi_scripts.gmupload:main'
]
},
)