guru/dev-python/playsound/files/playsound-1.3.0-pep517.patch
Takuya Wakazono 099698774d
dev-python/playsound: use PEP517 build
Closes: https://bugs.gentoo.org/921854
Signed-off-by: Takuya Wakazono <pastalian46@gmail.com>
2025-03-31 23:58:09 +09:00

126 lines
4.9 KiB
Diff

https://bugs.gentoo.org/921854
https://github.com/TaylorSMarks/playsound/pull/149
From 92385c78ec05c2fc3afad1afc5edc9d1282aa1e5 Mon Sep 17 00:00:00 2001
From: taconi <igor.taconi@protonmail.com>
Date: Fri, 10 Nov 2023 22:59:23 -0300
Subject: [PATCH 1/2] Update setuptools configuration file for pyproject.toml
---
pyproject.toml | 57 ++++++++++++++++++++++++++++++++++++++++++++++++++
setup.py | 43 -------------------------------------
2 files changed, 57 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..d2b77e3
--- /dev/null
+++ b/pyproject.toml
@@ -0,0 +1,56 @@
+[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 = "MIT"
+authors = [{ name = "Taylor Marks", email = "taylor@marksfam.com" }]
+keywords = [
+ "sound",
+ "playsound",
+ "music",
+ "wave",
+ "wav",
+ "mp3",
+ "media",
+ "song",
+ "play",
+ "audio",
+]
+classifiers = [
+ "Development Status :: 5 - Production/Stable",
+ "Intended Audience :: Developers",
+ "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'])