From 4a03d8ca0633ee7ca2316cd6bf57ea5f5644fc61 Mon Sep 17 00:00:00 2001 From: mulhern Date: Tue, 29 Sep 2026 15:37:37 -0400 Subject: [PATCH] Use pyproject.toml exclusively for package metadata Signed-off-by: mulhern --- .github/workflows/main.yml | 2 -- pyproject.toml | 25 +++++++++++++++++++++++++ setup.cfg | 10 ---------- setup.py | 7 ------- 4 files changed, 25 insertions(+), 19 deletions(-) delete mode 100644 setup.cfg delete mode 100644 setup.py diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 1001b08..15ad2c1 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -27,8 +27,6 @@ jobs: - dependencies: > python3-dbus python3-dbus-python-client-gen - python3-justbytes - python3-gobject python3-psutil ruff image: fedora:44 # CURRENT DEVELOPMENT ENVIRONMENT diff --git a/pyproject.toml b/pyproject.toml index de199d0..7798aeb 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,3 +1,28 @@ +[build-system] +requires = ["setuptools>=77"] +build-backend = "setuptools.build_meta" + +[project] +name = "testing" +version = "3.10.0" +license = "Apache-2.0" +requires-python = ">=3.12" +dependencies = [ + "python3-dbus", + "python3-dbus-python-client-gen", + "python3-psutil", +] + +[project.readme] +file = "README.md" +content-type = "text/markdown" + +[project.urls] +Homepage = "https://github.com/stratis-storage/testing" + +[tool.setuptools] +include-package-data = false + [tool.ruff] target-version = "py312" line-length = 88 diff --git a/setup.cfg b/setup.cfg deleted file mode 100644 index 9540af0..0000000 --- a/setup.cfg +++ /dev/null @@ -1,10 +0,0 @@ -[metadata] -name = testing -url = https://github.com/stratis-storage/testing -version = 3.9.1 -long_description = file: README.md -long_description_content_type = text/markdown -license = Apache-2.0 - -[options] -python_requires = >=3.12 diff --git a/setup.py b/setup.py deleted file mode 100644 index 17fb511..0000000 --- a/setup.py +++ /dev/null @@ -1,7 +0,0 @@ -""" -Python packaging file for setup tools. -""" - -import setuptools - -setuptools.setup()