commit: b07892ab2fba3475ec6613352695e697afd39825 Author: Louis Sautier <sbraz <AT> gentoo <DOT> org> AuthorDate: Sat Aug 23 22:27:20 2025 +0000 Commit: Louis Sautier <sbraz <AT> gentoo <DOT> org> CommitDate: Sat Aug 23 22:37:24 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b07892ab
app-admin/supervisor: add 4.3.0, support Python 3.14 Signed-off-by: Louis Sautier <sbraz <AT> gentoo.org> app-admin/supervisor/Manifest | 1 + .../supervisor-4.3.0-fix-setuptools-warnings.patch | 40 ++++++++++++++++ app-admin/supervisor/supervisor-4.3.0.ebuild | 55 ++++++++++++++++++++++ 3 files changed, 96 insertions(+) diff --git a/app-admin/supervisor/Manifest b/app-admin/supervisor/Manifest index 3112c3d47c12..32b8d996e02d 100644 --- a/app-admin/supervisor/Manifest +++ b/app-admin/supervisor/Manifest @@ -1,2 +1,3 @@ DIST supervisor-4.2.5.tar.gz 466073 BLAKE2B 54b45c824a1ad2960b04ca4ca9e54337f8c4da1a13008b559103f9efb9043588e72b3ee97c41218eb9252606d717575ad2615d12136047734f83d843d0a63bfa SHA512 ea80c8c91356646deccf20735e065fd9b341f3be6d56838d333989297a912b0a59142338925b2eb08690e038f0617814e03447673701a19093aa483432ce6d41 DIST supervisor-4.2.5_p20250125.gh.tar.gz 446525 BLAKE2B 33372d7424a8d5b500a8dcbcc25f9d2e678155f570936c9be337b443fee65243b2c632c0b429c4fd2b9133243a864cb7297f1640c5d843d6439bf1fb1c06a3c4 SHA512 53e2d798ef9663f471ed05b76dad23b96ed65c7f4b40d7ab837586dd58fda1dcb471f7cfbcdf014c6a830ddb2c7457aa6a5569a1ffe1cfa576e2f9c683149478 +DIST supervisor-4.3.0.tar.gz 468912 BLAKE2B 16fe4f09b1fdbc9b18c67ba1d68425772fbfadc5417b39926dbbad55aca833c082566c924baa5fa9d1accc8ce518da23751d69fcd2c685ead5be57f42108a633 SHA512 1f781533f95f856baccf0959af47a4c62cc197f0b2cb8ccc35bca8f1406fdb0b5f996262e5d31442f3bb73fd31847621361ffc5b9008cb6b7226c7c3adc4ff9f diff --git a/app-admin/supervisor/files/supervisor-4.3.0-fix-setuptools-warnings.patch b/app-admin/supervisor/files/supervisor-4.3.0-fix-setuptools-warnings.patch new file mode 100644 index 000000000000..8b88a600779f --- /dev/null +++ b/app-admin/supervisor/files/supervisor-4.3.0-fix-setuptools-warnings.patch @@ -0,0 +1,40 @@ +https://github.com/Supervisor/supervisor/issues/1560 +https://github.com/Supervisor/supervisor/pull/1675 +upstream will not merge soon as it's py3 only (find_namespace_packages) +--- a/setup.py ++++ b/setup.py +@@ -36,7 +36,7 @@ + " dependency because pkg_resources is used to load plugins" + ) + +-from setuptools import setup, find_packages ++from setuptools import setup, find_namespace_packages + here = os.path.abspath(os.path.dirname(__file__)) + try: + with open(os.path.join(here, 'README.rst'), 'r') as f: +@@ -93,7 +93,13 @@ + classifiers=CLASSIFIERS, + author="Chris McDonough", + author_email="[email protected]", +- packages=find_packages(), ++ packages=find_namespace_packages(exclude=["docs","supervisor.tests","supervisor.tests.*"]), ++ package_dir={"": "."}, ++ package_data={ ++ "supervisor": ["version.txt"], ++ "supervisor.ui": ["**/*"], ++ "supervisor.skel": ["*"] ++ }, + install_requires=[], + extras_require={ + 'test': ['pytest', 'pytest-cov'] +--- a/setup.cfg ++++ b/setup.cfg +@@ -2,7 +2,7 @@ + zip_ok = false + + [bdist_wheel] +-universal = 1 ++universal = 0 + + [egg_info] + tag_build = diff --git a/app-admin/supervisor/supervisor-4.3.0.ebuild b/app-admin/supervisor/supervisor-4.3.0.ebuild new file mode 100644 index 000000000000..af43b7b8f806 --- /dev/null +++ b/app-admin/supervisor/supervisor-4.3.0.ebuild @@ -0,0 +1,55 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( pypy3 pypy3_11 python3_{10..14} ) +# xml.etree.ElementTree module required. +PYTHON_REQ_USE="xml(+)" + +inherit distutils-r1 pypi systemd + +DESCRIPTION="A system for controlling process state under UNIX" +HOMEPAGE="https://supervisord.org/ https://pypi.org/project/supervisor/" + +LICENSE="repoze ZPL BSD HPND GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~arm64 ~riscv ~x86" + +RDEPEND="acct-group/supervisor" + +PATCHES=( + # https://github.com/Supervisor/supervisor/issues/1560 + "${FILESDIR}"/${PN}-4.3.0-fix-setuptools-warnings.patch +) + +distutils_enable_sphinx docs +distutils_enable_tests pytest + +python_install_all() { + distutils-r1_python_install_all + newinitd "${FILESDIR}/init.d-r2" supervisord + newconfd "${FILESDIR}/conf.d-r1" supervisord + dodoc supervisor/skel/sample.conf + keepdir /etc/supervisord.d + insinto /etc + doins "${FILESDIR}/supervisord.conf" + keepdir /var/log/supervisor + systemd_dounit "${FILESDIR}/supervisord.service" +} + +pkg_preinst() { + fowners :supervisor /var/log/supervisor + fperms 750 /var/log/supervisor +} + +pkg_postinst() { + if [[ -z "${REPLACING_VERSIONS}" ]]; then + # This is a new installation + elog "You may install your configuration files in ${EROOT}/etc/supervisord.d" + elog "For config examples, see ${EROOT}/usr/share/doc/${PF}/sample.conf.bz2" + elog "" + elog "By default, only members of the supervisor group can run supervisorctl." + fi +}
