From 1c65fa29168be0c8d44ae8e5475ef2792747ba2e Mon Sep 17 00:00:00 2001 From: Stephen Finucane Date: Tue, 19 Apr 2022 12:30:53 +0100 Subject: [PATCH] pyproject: Add build-backend Signed-off-by: Stephen Finucane Closes: #102 --- pyproject.toml | 24 ++++++++++++++++++++++++ setup.py | 3 +-- 2 files changed, 25 insertions(+), 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index e0d775c..6d3e486 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,3 +1,27 @@ +[project] +name = "sphinx-click" +# NOTE: The only one of these that is truly dynamic is the "version" attribute, +# but we need to specify the rest of these to keep setuptools happy +dynamic = [ + "version", + "description", + "readme", + "requires-python", + "license", + "authors", + "keywords", + "classifiers", + "urls", + "dependencies", +] + +[build-system] +requires = ["setuptools>=36.6.0", "pbr>=5.7.0"] +build-backend = "pbr.build" + +[tool.setuptools] +py-modules = [] + [tool.black] line-length = 88 target-version = ['py36'] diff --git a/setup.py b/setup.py index 26f5ba6..23cae53 100644 --- a/setup.py +++ b/setup.py @@ -1,8 +1,7 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 from setuptools import setup setup( - setup_requires=['pbr>=2.0'], pbr=True, )