#!/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-wrapper does not support this version of Python.")

# From http://stackoverflow.com/a/7071358/1231454
version_file = "gmusicapi_wrapper/__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-wrapper',
	version=version,
	description='A wrapper interface around gmusicapi.',
	url='https://github.com/thebigmunch/gmusicapi-wrapper',
	license='MIT',
	author='thebigmunch',
	author_email='mail@thebigmunch.me',

	keywords=[],
	classifiers=[
		'License :: OSI Approved :: MIT License',
		'Programming Language :: Python :: 3',
		'Programming Language :: Python :: 3.4',
		'Programming Language :: Python :: 3.5',
	],

	install_requires=[
		'gmusicapi >= 8.0.0',  # Python 3 support
		'mutagen'
	],

	packages=find_packages(),

	zip_safe=False
)

#!/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-wrapper does not support this version of Python.")

# From http://stackoverflow.com/a/7071358/1231454
version_file = "gmusicapi_wrapper/__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-wrapper',
	version=version,
	description='A wrapper interface around gmusicapi.',
	url='https://github.com/thebigmunch/gmusicapi-wrapper',
	license='MIT',
	author='thebigmunch',
	author_email='mail@thebigmunch.me',

	keywords=[],
	classifiers=[
		'License :: OSI Approved :: MIT License',
		'Programming Language :: Python :: 3',
		'Programming Language :: Python :: 3.4',
		'Programming Language :: Python :: 3.5',
	],

	install_requires=[
		'gmusicapi >= 9.0.0',  # Python 3 support, uploading/client_id fixes
		'mutagen'
	],

	packages=find_packages(),

	zip_safe=False
)

Update required gmusicapi version