From 28059ed42d26999bef085afadf5df2887c911a14 Mon Sep 17 00:00:00 2001 From: GuardKenzie Date: Mon, 19 Apr 2021 18:08:30 +0000 Subject: [PATCH] Moved to PEP 518 compliant setup --- pyproject.toml | 6 ++++++ setup.cfg | 26 ++++++++++++++++++++++++++ setup.py | 25 +++---------------------- 3 files changed, 35 insertions(+), 22 deletions(-) create mode 100644 pyproject.toml create mode 100644 setup.cfg diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..374b58c --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,6 @@ +[build-system] +requires = [ + "setuptools>=42", + "wheel" +] +build-backend = "setuptools.build_meta" diff --git a/setup.cfg b/setup.cfg new file mode 100644 index 0000000..d022c07 --- /dev/null +++ b/setup.cfg @@ -0,0 +1,26 @@ +[metadata] +name = miniplayer-kenzie +version = 1.1.2 +description = An mpd client with album art and basic functionality. +long_description = file: README.md +long_description_content_type = text/markdown +url = https://github.com/GuardKenzie/miniplayer +author = Tristan Ferrua +author_email = tristanferrua@gmail.com +classifiers = + Programming Language :: Python :: 3 + License :: OSI Approved :: MIT License + Operating System :: OS Independent + + +[options] +scripts = + bin/miniplayer + +install_requires = + python-mpd2 + ffmpeg-python + pixcat + pillow + ueberzug + diff --git a/setup.py b/setup.py index 4759480..4356bfc 100644 --- a/setup.py +++ b/setup.py @@ -1,23 +1,4 @@ -from setuptools import setup - -with open("README.md", "r") as fh: - long_description = fh.read() - -setup(name="miniplayer", - version="1.1.2", - description="An mpd client with album art and basic functionality.", - long_description=long_description, - long_description_content_type="text/markdown", - url="https://github.com/GuardKenzie/miniplayer", - author="Tristan Ferrua", - author_email="tristanferrua@gmail.com", - license="MIT", - scripts=["bin/miniplayer"], - install_requires=[ - "python-mpd2", - "ffmpeg-python", - "pixcat", - "pillow", - "ueberzug" - ]) +import setuptools +if __name__ == '__main__': + setuptools.setup()