Re: [PATCH 1/2] libselinux: add pyproject.toml file
Stephen Smalley <[email protected]> Fri, 24 Jul 2026 10:39:32 -0400
| Newsgroups | org.kernel.vger.selinux |
|---|---|
| Message-ID | <CAEjxPJ7i9BjvZrvrEwuTLX+wuQ0cz9uC_so7xNsN777TU1EB_Q@mail.gmail.com> |
On Tue, Jul 21, 2026 at 2:55 PM Stephen Smalley <[email protected]> wrote: > > Add a pyproject.toml file for the libselinux python bindings. > > Fixes: https://github.com/SELinuxProject/selinux/issues/505 > Signed-off-by: Stephen Smalley <[email protected]> > --- > > NB I don't understand this sufficiently to fully migrate setup.py but > hopefully this addresses the issue? Evidently I didn't test sufficiently. Reverted since it broke the testfarm build, https://github.com/SELinuxProject/selinux/actions/runs/30099962012/job/89503238013 > > libselinux/src/pyproject.toml | 24 ++++++++++++++++++++++++ > 1 file changed, 24 insertions(+) > create mode 100644 libselinux/src/pyproject.toml > > diff --git a/libselinux/src/pyproject.toml b/libselinux/src/pyproject.toml > new file mode 100644 > index 00000000..dfc44e81 > --- /dev/null > +++ b/libselinux/src/pyproject.toml > @@ -0,0 +1,24 @@ > +[build-system] > +requires = ["setuptools", "wheel"] > +build-backend = "setuptools.build_meta" > + > +[project] > +name = "selinux" > +version = "3.11" > +description = "Python bindings for libselinux (SELinux userspace library)" > +readme = "../README.md" > +license = "libselinux-1.0" > +authors = [ > + { name = "SELinux Project", email = "[email protected]" } > +] > +classifiers = [ > + "Programming Language :: Python :: 3", > + "Operating System :: POSIX :: Linux", > + "Topic :: Security", > +] > + > +[project.urls] > +Homepage = "https://github.com/SELinuxProject/selinux" > + > +# The actual .so is produced by a custom build_ext (SWIG + libselinux.so), > +# driven from setup.py. > -- > 2.55.0 >