From 0767d1d675ef2b327870b6f85f305d196d7d41e2 Mon Sep 17 00:00:00 2001 From: taconi Date: Fri, 10 Nov 2023 22:56:58 -0300 Subject: [PATCH] Update setuptools configuration file for pyproject.toml --- pyproject.toml | 58 ++++++++++++++++++++++++++++++++++++++++++++++++++ setup.py | 43 ------------------------------------- 2 files changed, 58 insertions(+), 43 deletions(-) create mode 100644 pyproject.toml delete mode 100644 setup.py diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..1e1d40b --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,58 @@ +[project] +name = "playsound" +version = "1.3.0" +description = "Pure Python, cross platform, single function module with no dependencies for playing sounds." +readme = "README.rst" +license = { text = "MIT" } +authors = [{ name = "Taylor Marks", email = "taylor@marksfam.com" }] +requires-python = ">=3.8" +keywords = [ + "sound", + "playsound", + "music", + "wave", + "wav", + "mp3", + "media", + "song", + "play", + "audio", +] +classifiers = [ + "Development Status :: 5 - Production/Stable", + "Intended Audience :: Developers", + "License :: OSI Approved :: MIT License", + "Operating System :: OS Independent", + "Programming Language :: Python :: 2", + "Programming Language :: Python :: 2.3", + "Programming Language :: Python :: 2.4", + "Programming Language :: Python :: 2.5", + "Programming Language :: Python :: 2.6", + "Programming Language :: Python :: 2.7", + "Programming Language :: Python :: 3", + "Programming Language :: Python :: 3.1", + "Programming Language :: Python :: 3.2", + "Programming Language :: Python :: 3.3", + "Programming Language :: Python :: 3.4", + "Programming Language :: Python :: 3.5", + "Programming Language :: Python :: 3.6", + "Programming Language :: Python :: 3.7", + "Programming Language :: Python :: 3.8", + "Programming Language :: Python :: 3.9", + "Topic :: Multimedia :: Sound/Audio :: MIDI", + "Topic :: Multimedia :: Sound/Audio :: Players", + "Topic :: Multimedia :: Sound/Audio :: Players :: MP3", +] + +[project.urls] +Homepage = "https://github.com/TaylorSMarks/playsound" +Documentation = "https://github.com/TaylorSMarks/playsound/blob/master/README.rst" +Repository = "https://github.com/TaylorSMarks/playsound" +"Issue tracker" = "https://github.com/TaylorSMarks/playsound/issues" + +[tool.setuptools] +py-modules = ["playsound"] + +[build-system] +requires = ["setuptools", "setuptools-scm"] +build-backend = "setuptools.build_meta" diff --git a/setup.py b/setup.py deleted file mode 100644 index 909a3ff..0000000 --- a/setup.py +++ /dev/null @@ -1,43 +0,0 @@ -from codecs import open -from inspect import getsource -from os.path import abspath, dirname, join -from setuptools import setup - -here = abspath(dirname(getsource(lambda:0))) - -with open(join(here, 'README.rst'), encoding='utf-8') as f: - long_description = f.read() - -setup(name = 'playsound', - version = '1.3.0', - description = long_description.splitlines()[2][1:-1], - long_description = long_description, - url = 'https://github.com/TaylorSMarks/playsound', - author = 'Taylor Marks', - author_email = 'taylor@marksfam.com', - license = 'MIT', - classifiers = ['Development Status :: 5 - Production/Stable', - 'Intended Audience :: Developers', - 'License :: OSI Approved :: MIT License', - 'Operating System :: OS Independent', - 'Programming Language :: Python :: 2', - 'Programming Language :: Python :: 2.3', - 'Programming Language :: Python :: 2.4', - 'Programming Language :: Python :: 2.5', - 'Programming Language :: Python :: 2.6', - 'Programming Language :: Python :: 2.7', - 'Programming Language :: Python :: 3', - 'Programming Language :: Python :: 3.1', - 'Programming Language :: Python :: 3.2', - 'Programming Language :: Python :: 3.3', - 'Programming Language :: Python :: 3.4', - 'Programming Language :: Python :: 3.5', - 'Programming Language :: Python :: 3.6', - 'Programming Language :: Python :: 3.7', - 'Programming Language :: Python :: 3.8', - 'Programming Language :: Python :: 3.9', - 'Topic :: Multimedia :: Sound/Audio :: MIDI', - 'Topic :: Multimedia :: Sound/Audio :: Players', - 'Topic :: Multimedia :: Sound/Audio :: Players :: MP3'], - keywords = 'sound playsound music wave wav mp3 media song play audio', - py_modules = ['playsound'])