Re: [PATCH v3 2/2] python/sepolicy: add a pyproject.toml file
Stephen Smalley <[email protected]> Wed, 29 Jul 2026 12:03:23 -0400
| Newsgroups | org.kernel.vger.selinux |
|---|---|
| Message-ID | <CAEjxPJ4=M0GjXd3RSYW52J7teeoqiZT4sOcq3WZWzk5_UFe5JA@mail.gmail.com> |
On Wed, Jul 29, 2026 at 11:26 AM Cathy Hu <[email protected]> wrote: > > From: Stephen Smalley <[email protected]> > > 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]> Verified via https://github.com/SELinuxProject/selinux/tree/pyprojecttoml Acked-by: Stephen Smalley <[email protected]> > --- > dropped scripts section > python/sepolicy/pyproject.toml | 12 ++++++++++++ > python/sepolicy/setup.py | 2 -- > 2 files changed, 12 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..3dafd35f > --- /dev/null > +++ b/python/sepolicy/pyproject.toml > @@ -0,0 +1,12 @@ > +[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]" } > +] > 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", > -- > 2.54.0 >