Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

tools: ynl: add initial pyproject.toml for packaging

Add pyproject.toml and define authors, dependencies and
user-facing scripts. This will be used later by pip to
install python code.

Signed-off-by: Jan Stancek <jstancek@redhat.com>
Reviewed-by: Donald Hunter <donald.hunter@gmail.com>
Link: https://patch.msgid.link/b184b43340f08aef97387bfd7f2b2cd9b015c343.1736343575.git.jstancek@redhat.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>

authored by

Jan Stancek and committed by
Jakub Kicinski
a12afefa ab88c2b3

+24
+24
tools/net/ynl/pyproject.toml
··· 1 + [build-system] 2 + requires = ["setuptools>=61.0"] 3 + build-backend = "setuptools.build_meta" 4 + 5 + [project] 6 + name = "pyynl" 7 + authors = [ 8 + {name = "Donald Hunter", email = "donald.hunter@gmail.com"}, 9 + {name = "Jakub Kicinski", email = "kuba@kernel.org"}, 10 + ] 11 + description = "yaml netlink (ynl)" 12 + version = "0.0.1" 13 + requires-python = ">=3.9" 14 + dependencies = [ 15 + "pyyaml==6.*", 16 + "jsonschema==4.*" 17 + ] 18 + 19 + [tool.setuptools.packages.find] 20 + include = ["pyynl", "pyynl.lib"] 21 + 22 + [project.scripts] 23 + ynl = "pyynl.cli:main" 24 + ynl-ethtool = "pyynl.ethtool:main"