[neon/neon-packaging/ytmusicapi/Neon/unstable] debian: add setup.cfg in a quilt patch to allow outdated setuptools to be able to build it

Carlos De Maine null at kde.org
Sun Jan 15 20:27:39 GMT 2023


Git commit 8bf053f0a1c063c3a1a5136b8ae864ef1d78d55b by Carlos De Maine.
Committed on 15/01/2023 at 20:27.
Pushed by carlosdem into branch 'Neon/unstable'.

add setup.cfg in a quilt patch to allow outdated setuptools to be able to build it

M  +2    -1    debian/control
A  +31   -0    debian/patches/01-add-setup.cfg-for-outdated-setuptools
A  +1    -0    debian/patches/series

https://invent.kde.org/neon/neon-packaging/ytmusicapi/commit/8bf053f0a1c063c3a1a5136b8ae864ef1d78d55b

diff --git a/debian/control b/debian/control
index 0973c1f..d6a5b81 100644
--- a/debian/control
+++ b/debian/control
@@ -7,11 +7,12 @@ Build-Depends:
  dh-python (>= 5.20211213~),
  pandoc,
  pybuild-plugin-pyproject,
+ python3-pyproject-metadata,
  python3-pkg-resources,
+ python3-all,
  python3-pytest <!nocheck>,
  python3-requests,
  python3-setuptools-scm,
- python3-sphinx,
  zip
 Build-Depends-Indep:
  python3
diff --git a/debian/patches/01-add-setup.cfg-for-outdated-setuptools b/debian/patches/01-add-setup.cfg-for-outdated-setuptools
new file mode 100644
index 0000000..c5ab403
--- /dev/null
+++ b/debian/patches/01-add-setup.cfg-for-outdated-setuptools
@@ -0,0 +1,31 @@
+--- /dev/null
++++ b/setup.cfg
+@@ -0,0 +1,28 @@
++# https://setuptools.readthedocs.io/en/latest/userguide/declarative_config.html
++[metadata]
++name = ytmusicapi
++version = 24.1
++description = [Unofficial API for YouTube Music]
++long_description = file: README.rst
++long_description_content_type = text/x-rst
++author = [sigma67]
++author_email = [ytmusicapi at gmail.com]
++license = [..]
++license_file = LICENSE
++url = [https://github.com/sigma67/ytmusicapi]
++download_url = [..]
++project_urls =
++    Documentation = [https://ytmusicapi.readthedocs.io]
++    Issue Tracker = [..]
++    Source Code = [https://github.com/sigma67/ytmusicapi]
++keywords = [..]
++classifiers = ["Programming Language :: Python :: 3", "License :: OSI Approved :: MIT License"]
++platforms = any
++
++[options]
++python_requires = >=3.8
++install_requires = requests >= 2.22
++packages = find_namespace:
++#package_dir = [ytmusicapi]
++include_package_data = True
++zip_safe = False
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..8f7477b
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+01-add-setup.cfg-for-outdated-setuptools


More information about the Neon-commits mailing list