Skip to content

Commit f0bd049

Browse files
committed
Convert setup.py to pyproject.toml
Used `hatch new --init` and manually added `hatch-vcs` configuration.
1 parent 3c5a7b2 commit f0bd049

File tree

2 files changed

+51
-45
lines changed

2 files changed

+51
-45
lines changed

pyproject.toml

Lines changed: 51 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,54 @@
11
[build-system]
2-
requires = [
3-
"setuptools",
4-
"setuptools-scm[toml]",
2+
requires = ["hatchling", "hatch-vcs"]
3+
build-backend = "hatchling.build"
4+
5+
[tool.hatch.version]
6+
source = "vcs"
7+
8+
[tool.hatch.build.targets.sdist]
9+
include = [
10+
"/src",
11+
]
12+
13+
[project]
14+
name = "pytest-reportlog"
15+
dynamic = ["version"]
16+
description = "Replacement for the --resultlog option, focused in simplicity and extensibility"
17+
readme = "README.rst"
18+
license = "MIT"
19+
requires-python = ">=3.9"
20+
authors = [
21+
{ name = "Bruno Oliveira", email = "[email protected]" },
22+
]
23+
keywords = [
24+
"pytest",
525
]
6-
build-backend = "setuptools.build_meta"
26+
classifiers = [
27+
"Development Status :: 3 - Alpha",
28+
"Framework :: Pytest",
29+
"Intended Audience :: Developers",
30+
"License :: OSI Approved :: MIT License",
31+
"Operating System :: OS Independent",
32+
"Programming Language :: Python :: 3",
33+
"Programming Language :: Python :: 3.13",
34+
"Programming Language :: Python :: 3.9",
35+
"Programming Language :: Python :: 3.10",
36+
"Programming Language :: Python :: 3.11",
37+
"Programming Language :: Python :: 3.12",
38+
"Topic :: Software Development :: Testing",
39+
]
40+
dependencies = [
41+
"pytest",
42+
]
43+
44+
[project.optional-dependencies]
45+
dev = [
46+
"pre-commit",
47+
"tox",
48+
]
49+
50+
[project.entry-points.pytest11]
51+
pytest_reportlog = "pytest_reportlog.plugin"
752

8-
[tool.setuptools_scm]
9-
write_to = "src/pytest_reportlog/_version.py"
53+
[project.urls]
54+
Homepage = "https://github.com/pytest-dev/pytest-reportlog"

setup.py

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

0 commit comments

Comments
 (0)