commit:     099698774d8e22b8183434d941786b7a52381fca
Author:     Takuya Wakazono <pastalian46 <AT> gmail <DOT> com>
AuthorDate: Mon Mar 31 14:58:09 2025 +0000
Commit:     Takuya Wakazono <pastalian46 <AT> gmail <DOT> com>
CommitDate: Mon Mar 31 14:58:09 2025 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=09969877

dev-python/playsound: use PEP517 build

Closes: https://bugs.gentoo.org/921854
Signed-off-by: Takuya Wakazono <pastalian46 <AT> gmail.com>

 .../playsound/files/playsound-1.3.0-pep517.patch   | 125 +++++++++++++++++++++
 ...ound-1.3.0.ebuild => playsound-1.3.0-r1.ebuild} |  11 +-
 2 files changed, 134 insertions(+), 2 deletions(-)

diff --git a/dev-python/playsound/files/playsound-1.3.0-pep517.patch 
b/dev-python/playsound/files/playsound-1.3.0-pep517.patch
new file mode 100644
index 000000000..05f42faf8
--- /dev/null
+++ b/dev-python/playsound/files/playsound-1.3.0-pep517.patch
@@ -0,0 +1,125 @@
+https://bugs.gentoo.org/921854
+https://github.com/TaylorSMarks/playsound/pull/149
+From 92385c78ec05c2fc3afad1afc5edc9d1282aa1e5 Mon Sep 17 00:00:00 2001
+From: taconi <[email protected]>
+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 = "[email protected]" }]
++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     = '[email protected]',
+-      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'])

diff --git a/dev-python/playsound/playsound-1.3.0.ebuild 
b/dev-python/playsound/playsound-1.3.0-r1.ebuild
similarity index 62%
rename from dev-python/playsound/playsound-1.3.0.ebuild
rename to dev-python/playsound/playsound-1.3.0-r1.ebuild
index 4f5e9a6df..93ec13882 100644
--- a/dev-python/playsound/playsound-1.3.0.ebuild
+++ b/dev-python/playsound/playsound-1.3.0-r1.ebuild
@@ -1,9 +1,10 @@
-# Copyright 1999-2024 Gentoo Authors
+# Copyright 1999-2025 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=8
 
-PYTHON_COMPAT=( python3_{11..12} pypy3 )
+DISTUTILS_USE_PEP517=setuptools
+PYTHON_COMPAT=( python3_{11..13} )
 
 inherit distutils-r1 pypi
 
@@ -16,3 +17,9 @@ HOMEPAGE="
 LICENSE="MIT"
 SLOT="0"
 KEYWORDS="~amd64 ~arm ~arm64 ~x86"
+
+RDEPEND="dev-python/gst-python[${PYTHON_USEDEP}]"
+
+PATCHES=(
+       "${FILESDIR}/${P}-pep517.patch"
+)

Reply via email to