Skip to content

Commit 892cc1c

Browse files
committed
Modernized build
* Move to src/ layout * Use pyproject.toml to configure packaging
1 parent 4b92a3e commit 892cc1c

4 files changed

Lines changed: 41 additions & 53 deletions

File tree

pyproject.toml

Lines changed: 41 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,46 @@
11
[build-system]
2-
requires = ["setuptools >= 61"]
2+
requires = ["setuptools>=61.2"]
33
build-backend = "setuptools.build_meta"
44

5+
[project]
6+
name = "sphinxcontrib-prettyspecialmethods"
7+
description = "Shows special methods as the python syntax that invokes them"
8+
readme = "README.rst"
9+
authors = [{name = "Thomas Smith"}]
10+
maintainers = [{name = "Kaleb Barrett", email = "dev.ktbarrett@gmail.com"}]
11+
license = "MIT"
12+
license-files = ["LICENSE"]
13+
classifiers = [
14+
"Development Status :: 3 - Alpha",
15+
"Environment :: Console",
16+
"Environment :: Web Environment",
17+
"Framework :: Sphinx :: Extension",
18+
"Intended Audience :: Developers",
19+
"Operating System :: OS Independent",
20+
"Programming Language :: Python",
21+
"Programming Language :: Python :: 3",
22+
"Programming Language :: Python :: 3.8",
23+
"Programming Language :: Python :: 3.9",
24+
"Programming Language :: Python :: 3.10",
25+
"Programming Language :: Python :: 3.11",
26+
"Programming Language :: Python :: 3.12",
27+
"Programming Language :: Python :: 3.13",
28+
"Topic :: Documentation",
29+
"Topic :: Documentation :: Sphinx",
30+
"Topic :: Utilities",
31+
]
32+
requires-python = ">=3.9"
33+
dependencies = ["sphinx"]
34+
dynamic = ["version"]
35+
36+
[project.urls]
37+
Homepage = "https://github.com/ktbarrett/prettyspecialmethods"
38+
"Bug Tracker" = "https://github.com/ktbarrett/prettyspecialmethods/issues"
39+
"Source Code" = "https://github.com/ktbarrett/prettyspecialmethods"
40+
41+
[tool.setuptools.dynamic]
42+
version = {attr = "sphinxcontrib.prettyspecialmethods.__version__"}
43+
544
[tool.ruff.lint]
645
select = ["E", "W", "F", "I", "UP", "RUF"]
746
ignore = [
@@ -15,7 +54,7 @@ required-imports = ["from __future__ import annotations"]
1554
docstring-code-format = true
1655

1756
[tool.mypy]
18-
python_version = "3.8"
57+
python_version = "3.9"
1958
show_column_numbers = true
2059
show_error_context = true
2160
ignore_missing_imports = true

setup.cfg

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

sphinxcontrib/__init__.py

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

0 commit comments

Comments
 (0)