From 6678aeaaa0b57c4e9d640177b3de560c72d664c9 Mon Sep 17 00:00:00 2001 From: Kaliko Jack Date: Tue, 16 Feb 2021 17:42:38 +0100 Subject: [PATCH] Move everything to setup.cfg --- setup.cfg | 24 +++++++++++++++++++++++- setup.py | 39 +-------------------------------------- 2 files changed, 24 insertions(+), 39 deletions(-) diff --git a/setup.cfg b/setup.cfg index 94f2f39..76d5632 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,9 +1,31 @@ [sdist] formats = gztar,zip - [metadata] +name = python-musicpd +description = An MPD (Music Player Daemon) client library written in pure Python. +version = attr: musicpd.VERSION +long_description = file: README.rst +long_description_content_type = text/x-rst +license = LGPLv3 license_file = LICENSE.txt +author = 'Kaliko Jack' +author_email = 'kaliko@azylum.org' +url = 'https://kaliko.me/python-musicpd/' +download_url = 'https://pypi.org/project/python-musicpd/' +keywords = mpd, Music Player Daemon +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 :: 3", + "Topic :: Software Development :: Libraries :: Python Modules" + +[options] +python_requires = >=3.6 +py_modules = musicpd [bdist_wheel] universal = 0 diff --git a/setup.py b/setup.py index 9b6a127..e2e8805 100755 --- a/setup.py +++ b/setup.py @@ -3,43 +3,6 @@ from setuptools import setup -from musicpd import VERSION - -DESCRIPTION = """\ -An MPD (Music Player Daemon) client library written in pure Python.\ -""" - - -with open('README.rst', encoding='UTF-8') as file: - LONG_DESCRIPTION = file.read() - -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 :: 3", - "Topic :: Software Development :: Libraries :: Python Modules", -] - - -setup( - name='python-musicpd', - version=VERSION, - description=DESCRIPTION, - long_description=LONG_DESCRIPTION, - long_description_content_type='text/x-rst', - author='Kaliko Jack', - author_email='kaliko@azylum.org', - url='https://kaliko.me/python-musicpd/', - download_url='https://pypi.org/project/python-musicpd/', - py_modules=['musicpd'], - classifiers=CLASSIFIERS, - license='LGPLv3+', - keywords=['mpd', 'Music Player Daemon'], - platforms=['Independant'], -) - +setup() # vim: set expandtab shiftwidth=4 softtabstop=4 textwidth=79: -- 2.39.5