Skip to content

Commit 26bbdb7

Browse files
Refactor build to use pyproject.toml (#83)
Moved project metadata and configuration from setup.py to pyproject.toml to align with modern Python packaging standards. This change simplifies setup.py and ensures compatibility with tools leveraging PEP 621. --------- Co-authored-by: Bruno Oliveira <bruno@esss.com>
1 parent b5667ab commit 26bbdb7

File tree

3 files changed

+42
-51
lines changed

3 files changed

+42
-51
lines changed

CHANGELOG.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ UNRELEASED
55

66
* Add support for Python 3.13.
77
* Dropped support for EOL Python 3.8.
8-
8+
* Change build to use ``pyproject.toml``.
99

1010
1.5.3
1111
=====

pyproject.toml

Lines changed: 41 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,43 @@
11
[build-system]
22
build-backend = "setuptools.build_meta"
3-
requires = ["setuptools"]
3+
requires = ["setuptools>=61", "setuptools_scm"]
4+
5+
[tool.setuptools_scm]
6+
7+
[project]
8+
name = "pytest-replay"
9+
authors = [
10+
{ name = "ESSS", email = "foss@esss.co" },
11+
]
12+
dynamic = ["version"]
13+
license = { text = "MIT" }
14+
urls = { Homepage = "https://github.com/ESSS/pytest-replay" }
15+
description = "Saves previous test runs and allow re-execute previous pytest runs to reproduce crashes or flaky tests"
16+
readme = "README.rst"
17+
requires-python = ">=3.9"
18+
dependencies = [
19+
"pytest",
20+
]
21+
classifiers = [
22+
"Development Status :: 5 - Production/Stable",
23+
"Framework :: Pytest",
24+
"Intended Audience :: Developers",
25+
"Topic :: Software Development :: Testing",
26+
"Programming Language :: Python",
27+
"Programming Language :: Python :: 3",
28+
"Programming Language :: Python :: 3.9",
29+
"Programming Language :: Python :: 3.10",
30+
"Programming Language :: Python :: 3.11",
31+
"Programming Language :: Python :: 3.12",
32+
"Programming Language :: Python :: 3.13",
33+
"Programming Language :: Python :: Implementation :: CPython",
34+
"Operating System :: OS Independent",
35+
"License :: OSI Approved :: MIT License",
36+
]
37+
38+
[tool.setuptools]
39+
packages = { find = { where = ["src"] } }
40+
package-dir = { "" = "src" }
41+
42+
[project.entry-points.pytest11]
43+
replay = "pytest_replay"

setup.py

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

0 commit comments

Comments
 (0)