Skip to content

Commit cdf25c0

Browse files
committed
Migrate packaging from setup.py to pyproject.toml
1 parent 13e06b4 commit cdf25c0

File tree

2 files changed

+56
-60
lines changed

2 files changed

+56
-60
lines changed

pyproject.toml

Lines changed: 56 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,54 @@
1+
[build-system]
2+
requires = ["setuptools>=61.0"]
3+
build-backend = "setuptools.build_meta"
4+
5+
[project]
6+
name = "cli-test-helpers"
7+
version = "3.5.0"
8+
description = "Useful helpers for writing tests for your Python CLI program."
9+
readme = "README.rst"
10+
license = {file = "LICENSE"}
11+
authors = [
12+
{name = "Peter Bittner", email = "[email protected]"},
13+
]
14+
maintainers = [
15+
{name = "Peter Bittner", email = "[email protected]"},
16+
]
17+
classifiers = [
18+
"Development Status :: 5 - Production/Stable",
19+
"Intended Audience :: Developers",
20+
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
21+
"Programming Language :: Python",
22+
"Programming Language :: Python :: 3",
23+
"Programming Language :: Python :: 3.5",
24+
"Programming Language :: Python :: 3.6",
25+
"Programming Language :: Python :: 3.7",
26+
"Programming Language :: Python :: 3.8",
27+
"Programming Language :: Python :: 3.9",
28+
"Programming Language :: Python :: 3.10",
29+
"Programming Language :: Python :: 3.11",
30+
"Programming Language :: Python :: 3.12",
31+
"Programming Language :: Python :: Implementation :: CPython",
32+
"Programming Language :: Python :: Implementation :: PyPy",
33+
"Topic :: Software Development :: Testing",
34+
"Topic :: Software Development :: Testing :: Mocking",
35+
"Topic :: Software Development :: Testing :: Unit",
36+
]
37+
keywords = [
38+
"python",
39+
"cli",
40+
"testing",
41+
"helpers",
42+
]
43+
dependencies = [
44+
"mock<4; python_version<'3'",
45+
]
46+
47+
[project.urls]
48+
homepage = "https://github.com/painless-software/python-cli-test-helpers"
49+
Documentation = "https://python-cli-test-helpers.readthedocs.io/"
50+
Examples = "https://github.com/painless-software/python-cli-test-helpers/tree/main/examples"
51+
152
[tool.coverage.run]
253
source = ["cli_test_helpers"]
354

@@ -8,7 +59,7 @@ show_missing = true
859
addopts = "--color=yes --doctest-modules --ignore examples/ --junitxml=tests/junit-report.xml --verbose"
960

1061
[tool.ruff]
11-
extend-exclude = ["docs/conf.py", "examples", "setup.py"]
62+
extend-exclude = ["docs/conf.py", "examples"]
1263
extend-include = []
1364

1465
[tool.ruff.lint]
@@ -30,3 +81,7 @@ extend-ignore = [
3081
[tool.ruff.lint.per-file-ignores]
3182
"cli_test_helpers/commands.py" = ["COM812", "S602"]
3283
"tests/*.py" = ["D400", "INP001", "S101"]
84+
85+
[tool.setuptools.packages.find]
86+
where = ["."]
87+
exclude = ["tests", "examples"]

setup.py

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

0 commit comments

Comments
 (0)