Skip to content

Commit

Permalink
pyproject: Add build-backend
Browse files Browse the repository at this point in the history
Signed-off-by: Stephen Finucane <[email protected]>
Closes: #102
  • Loading branch information
stephenfin committed May 26, 2022
1 parent c1afb68 commit 1c65fa2
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 2 deletions.
24 changes: 24 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -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']
Expand Down
3 changes: 1 addition & 2 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
#!/usr/bin/env python
#!/usr/bin/env python3

from setuptools import setup

setup(
setup_requires=['pbr>=2.0'],
pbr=True,
)

0 comments on commit 1c65fa2

Please sign in to comment.