Skip to content

Commit 5f22003

Browse files
migrate to pyproject.toml tooling
1 parent 5c16e15 commit 5f22003

File tree

4 files changed

+24
-58
lines changed

4 files changed

+24
-58
lines changed

pyproject.toml

+22-3
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,30 @@
11
[build-system]
22
requires = [
33
# sync with setup.py until we discard non-pep-517/518
4-
"setuptools>=45.0",
5-
"setuptools-scm[toml]>=6.2.3",
4+
"setuptools>=65.0",
5+
"setuptools-scm[toml]>=8.0",
66
]
77
build-backend = "setuptools.build_meta"
88

9+
[project]
10+
name = "pluggy"
11+
license = {text = "MIT"}
12+
authors = [{name = "Holger Krekel", email = "[email protected]"}]
13+
classifiers = ["Development Status :: 6 - Mature", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Operating System :: POSIX", "Operating System :: Microsoft :: Windows", "Operating System :: MacOS :: MacOS X", "Topic :: Software Development :: Testing", "Topic :: Software Development :: Libraries", "Topic :: Utilities", "Programming Language :: Python :: Implementation :: CPython", "Programming Language :: Python :: Implementation :: PyPy", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3 :: Only", "Programming Language :: Python :: 3.8", "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.11"]
14+
description = "plugin and hook calling mechanisms for python"
15+
readme = {file = "README.rst", content-type = "text/x-rst"}
16+
requires-python = ">=3.8"
17+
18+
dynamic = ["version"]
19+
[project.optional-dependencies]
20+
dev = ["pre-commit", "tox"]
21+
testing = ["pytest", "pytest-benchmark"]
22+
23+
[tool.setuptools]
24+
packages = ["pluggy"]
25+
package-dir = {""="src"}
26+
package-data = {"pluggy" = ["py.typed"]}
27+
928

1029
[tool.ruff.lint]
1130
select = [
@@ -21,7 +40,7 @@ known-local-folder = ["pluggy"]
2140
lines-after-imports = 2
2241

2342
[tool.setuptools_scm]
24-
write_to = "src/pluggy/_version.py"
43+
version_file = "src/pluggy/_version.py"
2544

2645
[tool.towncrier]
2746
package = "pluggy"

setup.cfg

-49
This file was deleted.

setup.py

-5
This file was deleted.

tox.ini

+2-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ commands =
3131
sphinx-build -W -b html {toxinidir}/docs {toxinidir}/build/html-docs -t changelog_towncrier_draft {posargs:}
3232

3333
[pytest]
34-
minversion=2.0
34+
minversion=8.0
3535
testpaths = testing
3636
#--pyargs --doctest-modules --ignore=.tox
3737
addopts=-r a
@@ -40,6 +40,7 @@ filterwarnings =
4040

4141
[flake8]
4242
max-line-length=99
43+
min-python-version = 3.8
4344

4445
[testenv:release]
4546
description = do a release, required posarg of the version number

0 commit comments

Comments
 (0)