forked from Mic92/python-mpd2
-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.py
93 lines (75 loc) · 2.65 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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
#! /usr/bin/env python
from setuptools import find_packages
from setuptools import setup
from setuptools.command.test import test as TestCommand
import mpd
import os
import sys
if sys.version_info[0] == 2:
from io import open
VERSION = ".".join(map(str, mpd.VERSION))
CLASSIFIERS = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"License :: OSI Approved :: GNU Library or Lesser General Public License (LGPL)",
"Natural Language :: English",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Topic :: Software Development :: Libraries :: Python Modules",
]
LICENSE = """\
Copyright (C) 2008-2010 J. Alexander Treuman <[email protected]>
Copyright (C) 2012-2017 Joerg Thalheim <[email protected]>
Copyright (C) 2016 Robert Niederreiter <[email protected]>
python-mpd2 is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
python-mpd2 is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License
along with python-mpd2. If not, see <http://www.gnu.org/licenses/>.\
"""
class Tox(TestCommand):
def finalize_options(self):
TestCommand.finalize_options(self)
self.test_args = []
self.test_suite = True
def run_tests(self):
# import here, cause outside the eggs aren't loaded
import tox
errno = tox.cmdline(self.test_args)
sys.exit(errno)
def read(fname):
with open(os.path.join(os.path.dirname(__file__), fname),
encoding="utf8") as fd:
return fd.read()
setup(
name="python-mpd2",
version=VERSION,
python_requires='>=3.6',
description="A Python MPD client library",
long_description=read('README.rst'),
classifiers=CLASSIFIERS,
author="Joerg Thalheim",
author_email="[email protected]",
license="GNU Lesser General Public License v3 (LGPLv3)",
url="https://github.com/Mic92/python-mpd2",
packages=find_packages(),
zip_safe=True,
keywords=["mpd"],
test_suite="mpd.tests",
tests_require=[
'tox',
'Twisted'
],
cmdclass={
'test': Tox
},
extras_require={
'twisted': ['Twisted']
}
)
# vim: set expandtab shiftwidth=4 softtabstop=4 textwidth=79: