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

Cathy Hu <[email protected]> Fri, 24 Jul 2026 17:10:18 +0200
Newsgroups org.kernel.vger.selinux
Message-ID <[email protected]>
On 7/24/26 4:44 PM, Stephen Smalley wrote:
> On Fri, Jul 24, 2026 at 10:26 AM Stephen Smalley
> <[email protected]> wrote:
>>
>> On Wed, Jul 22, 2026 at 6:20 AM Cathy Hu <[email protected]> wrote:
>>>
>>> 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
>>
>> Thanks, both merged.
> 
> And both reverted since they broke the testfarm build.
> Will defer to someone better versed in this area to fix this.

that's odd, not sure why the patch successfully built in our system, i can have a look next week
OpenPGP_signature.asc (application/pgp-signature, 870 B)
-----BEGIN PGP SIGNATURE-----

iQJPBAEBCAA5FiEEWHPP0YwOptScu/bEBioQFhUFoIoFAmpjgFsbFIAAAAAABAAO
bWFudTIsMi41KzEuMTIsMiwyAAoJEAYqEBYVBaCK+XIQAMQAEaAKmmCtAhSzjCBt
agb6cbk+7fkbHpb5hT2t+78roFHkv3siQFQJw2USDYLMKKjjVDSwXnH/OreaFcSl
Q5KXkuVb0QGvHLoV0cRT3LC7SoLhcfNNkvjW1vyAsiy7GE2qgdtJB8C4mwIA3m34
b+MigqMsuHy9N6MXg2K2jw04nSJqAWb/l8uF1gj3Yli490NKAY9hcvydnVo9hxdj
k8Q5Lw0vEYrMoZudH58RBN03sqldj5MYA/LPdlBhdTiEi5M88jWBKxMPpNiXnNIj
ZhmlpdBfdqOhBDtygbK91PBoVMmv86zeOWA9QzMVZYm54j4KIL21s2Qz4GRp8JmO
Dore8gV4xCHk997lu9HSEZ166iANzWXaCnSthTXZG9Mf3lRqwy2Jj3Mic7EFUfNe
pBBeqm3koUtIAWT+tf7icDJT23ZVtN/Hs85jrhP8Fmjt9ks3DhwXJI7mlq3/i6+L
AoZG1CX9m5RbN5W1p1R0IZmrTK14FzNZAt6gwSBcK2rAsVy9DWfxFw6dhJS0dKCl
Axs86llc09HT6YNbf/2UhMmCP/PlcLq7JGyZuBA/1An4ULQnGLLDuNOErEYOsP6f
JQgabKCltfSrMH78LxJBEDNyO2JSOVhN5d6h+z4DHD+CtLsNbnWtjvzXaHJdFdhh
L2gLoYY1gFLWuUyHgDjvydNP
=zK5W
-----END PGP SIGNATURE-----