Skip to content

Commit a12afef

Browse files
jstancekkuba-moo
authored andcommitted
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 <[email protected]> Reviewed-by: Donald Hunter <[email protected]> Link: https://patch.msgid.link/b184b43340f08aef97387bfd7f2b2cd9b015c343.1736343575.git.jstancek@redhat.com Signed-off-by: Jakub Kicinski <[email protected]>
1 parent ab88c2b commit a12afef

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

tools/net/ynl/pyproject.toml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
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 = "[email protected]"},
9+
{name = "Jakub Kicinski", email = "[email protected]"},
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"

0 commit comments

Comments
 (0)