Signed-off-by: Jan Stancek <jstancek@redhat.com>
---
tools/net/ynl/pyproject.toml | 26 ++++++++++++++++++++++++++
1 file changed, 26 insertions(+)
create mode 100644 tools/net/ynl/pyproject.toml
diff --git a/tools/net/ynl/pyproject.toml b/tools/net/ynl/pyproject.toml
new file mode 100644
index 000000000000..677ea8f4c185
--- /dev/null
+++ b/tools/net/ynl/pyproject.toml
@@ -0,0 +1,26 @@
+[build-system]
+requires = ["setuptools>=61.0"]
+build-backend = "setuptools.build_meta"
+
+[project]
+name = "pyynl"
+authors = [
+ {name = "Donald Hunter", email = "donald.hunter@gmail.com"},
+ {name = "Jakub Kicinski", email = "kuba@kernel.org"},
+]
+description = "yaml netlink (ynl)"
+version = "0.0.1"
+requires-python = ">=3.9"
+dependencies = [
+ "pyyaml==6.*",
+ "jsonschema==4.*"
+]
+
+[tool.setuptools.packages.find]
+include = ["pyynl", "pyynl.lib"]
+
+[project.scripts]
+ynl = "pyynl.cli:main"
+ynl-ethtool = "pyynl.ethtool:main"
+ynl-gen-c = "pyynl.ynl_gen_c:main"
+ynl-gen-rst = "pyynl.ynl_gen_rst:main"
--
2.43.0
Jan Stancek <jstancek@redhat.com> writes:
> Signed-off-by: Jan Stancek <jstancek@redhat.com>
nit: missing patch description
> ---
> tools/net/ynl/pyproject.toml | 26 ++++++++++++++++++++++++++
> 1 file changed, 26 insertions(+)
> create mode 100644 tools/net/ynl/pyproject.toml
>
> diff --git a/tools/net/ynl/pyproject.toml b/tools/net/ynl/pyproject.toml
> new file mode 100644
> index 000000000000..677ea8f4c185
> --- /dev/null
> +++ b/tools/net/ynl/pyproject.toml
> @@ -0,0 +1,26 @@
> +[build-system]
> +requires = ["setuptools>=61.0"]
> +build-backend = "setuptools.build_meta"
> +
> +[project]
> +name = "pyynl"
> +authors = [
> + {name = "Donald Hunter", email = "donald.hunter@gmail.com"},
> + {name = "Jakub Kicinski", email = "kuba@kernel.org"},
> +]
> +description = "yaml netlink (ynl)"
> +version = "0.0.1"
> +requires-python = ">=3.9"
> +dependencies = [
> + "pyyaml==6.*",
> + "jsonschema==4.*"
> +]
> +
> +[tool.setuptools.packages.find]
> +include = ["pyynl", "pyynl.lib"]
> +
> +[project.scripts]
> +ynl = "pyynl.cli:main"
> +ynl-ethtool = "pyynl.ethtool:main"
> +ynl-gen-c = "pyynl.ynl_gen_c:main"
> +ynl-gen-rst = "pyynl.ynl_gen_rst:main"
I'm not sure if we want to install ynl-gen-c or ynl-gen-rst since they
are for in-tree use.
Thoughts?
On Mon, Dec 16, 2024 at 3:10 PM Donald Hunter <donald.hunter@gmail.com> wrote:
>
> Jan Stancek <jstancek@redhat.com> writes:
>
> > Signed-off-by: Jan Stancek <jstancek@redhat.com>
>
> nit: missing patch description
>
> > ---
> > tools/net/ynl/pyproject.toml | 26 ++++++++++++++++++++++++++
> > 1 file changed, 26 insertions(+)
> > create mode 100644 tools/net/ynl/pyproject.toml
> >
> > diff --git a/tools/net/ynl/pyproject.toml b/tools/net/ynl/pyproject.toml
> > new file mode 100644
> > index 000000000000..677ea8f4c185
> > --- /dev/null
> > +++ b/tools/net/ynl/pyproject.toml
> > @@ -0,0 +1,26 @@
> > +[build-system]
> > +requires = ["setuptools>=61.0"]
> > +build-backend = "setuptools.build_meta"
> > +
> > +[project]
> > +name = "pyynl"
> > +authors = [
> > + {name = "Donald Hunter", email = "donald.hunter@gmail.com"},
> > + {name = "Jakub Kicinski", email = "kuba@kernel.org"},
> > +]
> > +description = "yaml netlink (ynl)"
> > +version = "0.0.1"
> > +requires-python = ">=3.9"
> > +dependencies = [
> > + "pyyaml==6.*",
> > + "jsonschema==4.*"
> > +]
> > +
> > +[tool.setuptools.packages.find]
> > +include = ["pyynl", "pyynl.lib"]
> > +
> > +[project.scripts]
> > +ynl = "pyynl.cli:main"
> > +ynl-ethtool = "pyynl.ethtool:main"
> > +ynl-gen-c = "pyynl.ynl_gen_c:main"
> > +ynl-gen-rst = "pyynl.ynl_gen_rst:main"
>
> I'm not sure if we want to install ynl-gen-c or ynl-gen-rst since they
> are for in-tree use.
>
> Thoughts?
I haven't seen any downside and thought it might be useful for somebody,
but I'm happy to drop it.
© 2016 - 2025 Red Hat, Inc.