forked from gmusicproxy/gmusicproxy
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathsetup.py
More file actions
31 lines (28 loc) · 1.04 KB
/
setup.py
File metadata and controls
31 lines (28 loc) · 1.04 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
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
import re
from setuptools import setup
import os
GMUSICPROXYFILE = 'GMusicProxy'
version_line = open(GMUSICPROXYFILE).read()
version_re = r"programVersion = ['\"]([^'\"]*)['\"]"
match = re.search(version_re, version_line, re.M)
if match:
version = match.group(1)
else:
raise RuntimeError("Could not find version in '%s'" % GMUSICPROXYFILE)
setup(
name='gmusicproxy',
version=version,
author='Mario Di Raimondo',
author_email='mario.diraimondo@gmail.com',
url='https://github.com/diraimondo/gmusicproxy',
scripts=[GMUSICPROXYFILE],
license=open('LICENSE.md').read(),
description='Google Play Music Proxy - "Let\'s stream Google Play Music using any media-player"',
long_description=(open('README.md').read()),
install_requires=['gmusicapi>=12.0.0', 'netifaces>=0.10.9',
'eyeD3>=0.8.10', 'python-daemon>=2.2.3',
'mutagen>=1.42.0', 'gpsoauth>=0.4.1',
'oauth2client>=4.1.3' if not os.name == 'nt' else ''],
)