diff options
author | Erik Skultety <eskultet@redhat.com> | 2023-03-03 09:21:30 +0100 |
---|---|---|
committer | Erik Skultety <eskultet@redhat.com> | 2023-03-14 15:50:40 +0100 |
commit | afaa24d276bc0db736f37b50c92ea6fa1e15cd30 (patch) | |
tree | 945da95755236975b21ece20a5c161392cd34e98 | |
parent | 36c89141ce3932e3551d16ca0ae63a56a680bdc8 (diff) | |
download | libvirt-ci-afaa24d276bc0db736f37b50c92ea6fa1e15cd30.zip libvirt-ci-afaa24d276bc0db736f37b50c92ea6fa1e15cd30.tar.gz libvirt-ci-afaa24d276bc0db736f37b50c92ea6fa1e15cd30.tar.bz2 |
Add pyproject.toml
Replace bare setup.py. The required version of setuptools set by this
patch is not a random version number - it is the version where
setuptools' pyproject.toml parsing gained support for recursive
globbing of package data without which we would not be able to
enumerate package data as simply as "<package>/datadir/**".
Signed-off-by: Erik Skultety <eskultet@redhat.com>
-rw-r--r-- | pyproject.toml | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..ac7f68b --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,59 @@ +[build-system] +requires = ["setuptools>=62.3"] +build-backend = "setuptools.build_meta" + +[project] +name = "lcitool" +version = "0.1" +description = "libvirt CI guest management tool" +readme = "README.rst" +keywords = ["libvirt ci"] +requires-python = ">=3.8" + +authors = [ + { name = "libvirt team", email = "libvir-list@redhat.com" } +] + +classifiers = [ + "License :: OSI Approved :: GNU General Public License v2 or later (GPLv2+)", + "Programming Language :: Python :: 3.8", + "Programming Language :: Python :: 3.9", + "Programming Language :: Python :: 3.10", + "Programming Language :: Python :: 3.11", + "Programming Language :: Python :: 3 :: Only", +] + +dependencies = [ + "PyYAML", +] + +[project.urls] +repository = "https://gitlab.com/libvirt/libvirt-ci.git" + +[project.scripts] +lcitool = "lcitool.__main__:main" + +[project.optional-dependencies] +vm_support = [ + "ansible", + "ansible-runner >= 2.1.1", + "libvirt-python", +] + +[tool.setuptools] +include-package-data = true +packages = [ + "lcitool", + "lcitool.install", + "lcitool.containers", +] + +[tool.setuptools.package-data] +"lcitool" = [ + "ansible/**", + "cross/**", + "etc/**", + "facts/**", +] + +"lcitool.install" = ["configs/**"] |