Skip to content

Commit

Permalink
Package using pyproject.toml
Browse files Browse the repository at this point in the history
setup.py has been deprecated in favour of pyproject.toml configuration
file. For this reason, move all the packaging configuration inside
pyproject.toml and generate kirk packages using setuptools.

Signed-off-by: Andrea Cervesato <andrea.cervesato@suse.com>
  • Loading branch information
acerv committed Oct 10, 2024
1 parent 41e39a4 commit 046d10f
Show file tree
Hide file tree
Showing 2 changed files with 54 additions and 48 deletions.
54 changes: 54 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
[build-system]
requires = ["setuptools"]
build-backend = "setuptools.build_meta"

[project]
name = "kirk"
dynamic = ["version"]
description = "All-in-one Linux Testing Framework"
readme = "README.md"
license = {file = "LICENSE"}
requires-python = ">=3.6"
keywords = ["testing", "linux", "development", "ltp", "linux-test-project"]
authors = [
{name = "Linux Test Project", email = "ltp@lists.linux.it" }
]
maintainers = [
{name = "Andrea Cervesato", email = "andrea.cervesato@suse.com"}
]
classifiers = [
"Natural Language :: English",
"Intended Audience :: Developers",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Topic :: Software Development :: Testing",
]

[project.urls]
"Homepage" = "https://github.com/linux-test-project/kirk"
"Bug Reports" = "https://github.com/linux-test-project/kirk/issues"

[tool.setuptools.dynamic]
version = {attr = "libkirk.__version__"}

[tool.setuptools.packages.find]
include = ["libkirk"]
exclude = ["libkirk.tests"]

[project.scripts]
kirk = "libkirk.main:run"

[project.optional-dependencies]
ssh = ["asyncssh <= 2.13.2"]
ltx = ["msgpack <= 1.0.5"]

[tool.setuptools]
include-package-data = true
48 changes: 0 additions & 48 deletions setup.py

This file was deleted.

0 comments on commit 046d10f

Please sign in to comment.