Skip to content

Commit

Permalink
Merge pull request pytest-dev#523 from RonnyPfannschmidt/pyproject
Browse files Browse the repository at this point in the history
migrate to pyproject.toml tooling
  • Loading branch information
RonnyPfannschmidt authored Aug 17, 2024
2 parents 5c16e15 + 5f22003 commit 5564e76
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 58 deletions.
25 changes: 22 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,11 +1,30 @@
[build-system]
requires = [
# sync with setup.py until we discard non-pep-517/518
"setuptools>=45.0",
"setuptools-scm[toml]>=6.2.3",
"setuptools>=65.0",
"setuptools-scm[toml]>=8.0",
]
build-backend = "setuptools.build_meta"

[project]
name = "pluggy"
license = {text = "MIT"}
authors = [{name = "Holger Krekel", email = "[email protected]"}]
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"]
description = "plugin and hook calling mechanisms for python"
readme = {file = "README.rst", content-type = "text/x-rst"}
requires-python = ">=3.8"

dynamic = ["version"]
[project.optional-dependencies]
dev = ["pre-commit", "tox"]
testing = ["pytest", "pytest-benchmark"]

[tool.setuptools]
packages = ["pluggy"]
package-dir = {""="src"}
package-data = {"pluggy" = ["py.typed"]}


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

[tool.setuptools_scm]
write_to = "src/pluggy/_version.py"
version_file = "src/pluggy/_version.py"

[tool.towncrier]
package = "pluggy"
Expand Down
49 changes: 0 additions & 49 deletions setup.cfg

This file was deleted.

5 changes: 0 additions & 5 deletions setup.py

This file was deleted.

3 changes: 2 additions & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ commands =
sphinx-build -W -b html {toxinidir}/docs {toxinidir}/build/html-docs -t changelog_towncrier_draft {posargs:}

[pytest]
minversion=2.0
minversion=8.0
testpaths = testing
#--pyargs --doctest-modules --ignore=.tox
addopts=-r a
Expand All @@ -40,6 +40,7 @@ filterwarnings =

[flake8]
max-line-length=99
min-python-version = 3.8

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

0 comments on commit 5564e76

Please sign in to comment.