Skip to content

Commit 4f8193f

Browse files
hugovkegeakman
andauthored
Convert setup.py to pyproject.toml (#5)
* Convert setup.py to pyproject.toml * Add pyproject-fmt and validate-pyproject to pre-commit * Update pyproject.toml Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com> --------- Co-authored-by: Ege Akman <me@egeakman.dev>
1 parent f48729d commit 4f8193f

File tree

3 files changed

+76
-58
lines changed

3 files changed

+76
-58
lines changed

.pre-commit-config.yaml

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,27 @@ repos:
55
- id: isort
66
name: isort (python)
77

8-
- repo: https://github.com/psf/black
9-
rev: 23.7.0
8+
- repo: https://github.com/psf/black-pre-commit-mirror
9+
rev: 23.10.1
1010
hooks:
1111
- id: black
1212
name: black (python)
1313

1414
- repo: https://github.com/pre-commit/pre-commit-hooks
15-
rev: v4.4.0
15+
rev: v4.5.0
1616
hooks:
17+
- id: check-toml
18+
- id: check-yaml
1719
- id: end-of-file-fixer
1820
- id: trailing-whitespace
21+
22+
- repo: https://github.com/tox-dev/pyproject-fmt
23+
rev: 1.4.1
24+
hooks:
25+
- id: pyproject-fmt
26+
additional_dependencies: [tox]
27+
28+
- repo: https://github.com/abravalheri/validate-pyproject
29+
rev: v0.15
30+
hooks:
31+
- id: validate-pyproject

pyproject.toml

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
[build-system]
2+
build-backend = "setuptools.build_meta"
3+
requires = [
4+
"setuptools>=61.2",
5+
]
6+
7+
[project]
8+
name = "python-docs-bootstrapper"
9+
version = "0.1.1"
10+
description = "Bootstrapper for Python documentation translations"
11+
readme = "README.md"
12+
keywords = [
13+
"automation",
14+
"CLI",
15+
"documentation",
16+
"i18n",
17+
"python-docs",
18+
"sphinx",
19+
"translation",
20+
"utilities",
21+
]
22+
license = {text = "MIT"}
23+
authors = [{name = "egeakman", email = "me@egeakman.dev"}]
24+
requires-python = ">=3.10"
25+
classifiers = [
26+
"Development Status :: 5 - Production/Stable",
27+
"Environment :: Console",
28+
"License :: OSI Approved :: MIT License",
29+
"Operating System :: MacOS :: MacOS X",
30+
"Operating System :: Microsoft :: Windows",
31+
"Operating System :: POSIX :: Linux",
32+
"Programming Language :: Python :: 3 :: Only",
33+
"Programming Language :: Python :: 3.10",
34+
"Programming Language :: Python :: 3.11",
35+
"Programming Language :: Python :: 3.12",
36+
"Topic :: Utilities",
37+
]
38+
dependencies = [
39+
"sphinx==4.5",
40+
]
41+
[project.urls]
42+
Releases = "https://github.com/egeakman/python-docs-bootstrapper/releases"
43+
Homepage = "https://github.com/egeakman/python-docs-bootstrapper"
44+
Issues = "https://github.com/egeakman/python-docs-bootstrapper/issues"
45+
[project.scripts]
46+
bootstrapper = "bootstrapper.bootstrapper:main"
47+
48+
[tool.setuptools]
49+
include-package-data = true
50+
51+
[tool.setuptools.packages.find]
52+
where = ["."]
53+
namespaces = false
54+
55+
[tool.setuptools.package-data]
56+
bootstrapper = [
57+
"data/.gitignore",
58+
"data/Makefile",
59+
"data/README.md",
60+
]

setup.py

Lines changed: 0 additions & 55 deletions
This file was deleted.

0 commit comments

Comments
 (0)