forked from jodal/pyspotify
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
49 lines (40 loc) · 1.55 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
from __future__ import unicode_literals
import re
from setuptools import find_packages, setup
def read_file(filename):
with open(filename) as fh:
return fh.read()
def get_version(filename):
init_py = read_file(filename)
metadata = dict(re.findall("__([a-z]+)__ = '([^']+)'", init_py))
return metadata['version']
setup(
name='pyspotify',
version=get_version('spotify/__init__.py'),
url='http://pyspotify.mopidy.com/',
license='Apache License, Version 2.0',
author='Stein Magnus Jodal',
author_email='stein.magnus@jodal.no',
description='Python wrapper for libspotify',
long_description=read_file('README.rst'),
packages=find_packages(exclude=['tests', 'tests.*']),
zip_safe=False,
include_package_data=True,
setup_requires=['cffi >= 1.0.0'],
cffi_modules=['spotify/_spotify_build.py:ffi'],
install_requires=['cffi >= 1.0.0'],
classifiers=[
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
'License :: OSI Approved :: Apache Software License',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.2',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: Implementation :: CPython',
'Programming Language :: Python :: Implementation :: PyPy',
'Topic :: Software Development :: Libraries',
],
)