Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
branch: master
73 lines (61 sloc) 2.458 kb
#! /usr/bin/env python
from distutils.core import setup
from setuptools import Extension
from setuptools.command.test import test as TestCommand
import sys,os
import mpd
if sys.version_info[0] == 2:
from io import open
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 <jat@spatialrift.net>
Copyright (C) 2012 J. Thalheim <joerg@higgsboson.tk>
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):
return open(os.path.join(os.path.dirname(__file__), fname), encoding="utf8").read()
VERSION = ".".join(map(str, mpd.VERSION))
setup(
name="python-mpd2",
version=VERSION,
description="A Python MPD client library",
long_description=read('README.rst'),
author="J. Thalheim",
author_email="jthalheim@gmail.com",
url="https://github.com/Mic92/python-mpd2",
download_url="https://github.com/Mic92/python-mpd2/archive/v%s.zip" % VERSION,
py_modules=["mpd"],
classifiers=CLASSIFIERS,
#license=LICENSE,
keywords=["mpd"],
tests_require=['tox'],
cmdclass = {'test': Tox},
)
# vim: set expandtab shiftwidth=4 softtabstop=4 textwidth=79:
Jump to Line
Something went wrong with that request. Please try again.