Re: [PATCH 2/2] python/sepolicy: add a pyproject.toml file

Cathy Hu <[email protected]> Wed, 22 Jul 2026 12:20:47 +0200
Newsgroups org.kernel.vger.selinux
Message-ID <[email protected]>
On 7/21/26 8:53 PM, Stephen Smalley wrote:
> Add a pyproject.toml file for the sepolicy python module.  This
> required also updating setup.py to avoid defining author outside of
> pyproject.toml, and I further updated the authors to refer to the list
> like libselinux since Dan is enjoying retirement.
> 
> Fixes: https://github.com/SELinuxProject/selinux/issues/505
> Signed-off-by: Stephen Smalley <[email protected]>
> ---
>   python/sepolicy/pyproject.toml | 19 +++++++++++++++++++
>   python/sepolicy/setup.py       |  2 --
>   2 files changed, 19 insertions(+), 2 deletions(-)
>   create mode 100644 python/sepolicy/pyproject.toml
> 
> diff --git a/python/sepolicy/pyproject.toml b/python/sepolicy/pyproject.toml
> new file mode 100644
> index 00000000..472faf7a
> --- /dev/null
> +++ b/python/sepolicy/pyproject.toml
> @@ -0,0 +1,19 @@
> +[build-system]
> +requires = ["setuptools", "wheel"]
> +build-backend = "setuptools.build_meta"
> +
> +[project]
> +name = "sepolicy"
> +version = "3.11"
> +description = "Python tools for SELinux policy analysis (sepolicy, sepolgen)"
> +license = "GPL-2.0-or-later"
> +authors = [
> +    { name = "SELinux Project", email = "[email protected]" }
> +]
> +dependencies = [
> +    "libselinux-python",
> +    "libsemanage-python",
> +]
> +
> +[project.scripts]
> +sepolicy = "sepolicy.__main__:main"
> diff --git a/python/sepolicy/setup.py b/python/sepolicy/setup.py
> index ca0396b5..5c4f2e5d 100644
> --- a/python/sepolicy/setup.py
> +++ b/python/sepolicy/setup.py
> @@ -8,8 +8,6 @@ setup(
>       name="sepolicy",
>       version="3.11",
>       description="Python SELinux Policy Analyses bindings",
> -    author="Daniel Walsh",
> -    author_email="[email protected]",
>       packages=[
>           "sepolicy",
>           "sepolicy.templates",

lgtm, or at least i don't see the warning anymore in the build system
OpenPGP_signature.asc (application/pgp-signature, 870 B)
-----BEGIN PGP SIGNATURE-----

iQJPBAEBCAA5FiEEWHPP0YwOptScu/bEBioQFhUFoIoFAmpgmX8bFIAAAAAABAAO
bWFudTIsMi41KzEuMTIsMiwyAAoJEAYqEBYVBaCKrZ0P/RkBtD0Oft3W/Ub1/V02
RbSrX7kowscBllBbNKxaUvM2Lih0cy/utBrfYbITVnX4FhIuU9DCXRXDc7doJ4xC
apUg/mYywZm7CPKsnAWqa3x6NeYBQ+ZNdvSk0yD+QcTT6EUULDODM0b8OJ50zOiV
1E9rXnirwinbeXtV4rWBLIZ5yQuu5rNN9kGb7hAMRvxudhCHo6sjZl+Vm5uqjfpP
Bzc/13VuY7UqIjfJVgzdDrELAbaNJ8Q/VNzfDKhAnqULUgRpet3vbvcW34ukEsyQ
kitIkGsUq5gQ9h464EV/+kt3PMlsXuxjjd1ayWUIxOj13IuPKvkRJJPCHg1Ts84N
H4NoPl5y/CFZBPFVKpA6tf0PQ05cmonpJlNTiax5xsBoHIAdedfopOuL4ZGL1o6K
3pnWqFHj0xOMb9d7DvpU1YNuljLxmECyaz0ljS/47milLoFKPoUan/ZJF0seerZa
lcDtyWOGZufjY53l2YzPDUJwS8G2zcYyqTg0VG0pMD7raK7sIUzwsYsornm9bjH2
12pi0kVf/c247/Sc/qJawa0eU24TXcwYjPCdsiuVuUID9vrkgOCiG0RPirPAXP1o
VOqJ2F5E1RtRic+R/AYGHLP9nl8nACdLQBzwXbpVdeWDankAw3RYRHc5O4g3uOXh
Im86j07QS/HcSN1RB/bW95ve
=S+NU
-----END PGP SIGNATURE-----