Skip to content

Commit 263db99

Browse files
swt2cflub
authored andcommitted
Add a pyproject.toml and setup.cfg
This enables building/installing without using deprecated setup.py (but setup.py is still available).
1 parent 2ee3361 commit 263db99

File tree

3 files changed

+44
-39
lines changed

3 files changed

+44
-39
lines changed

pyproject.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[build-system]
2+
requires = ["setuptools"]
3+
build-backend = "setuptools.build_meta"

setup.cfg

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
[metadata]
2+
name = pytest-timeout
3+
description = pytest plugin to abort hanging tests
4+
long_description = file: README.rst
5+
version = 2.1.0
6+
author = Floris Bruynooghe
7+
author_email = [email protected]
8+
url = https://github.com/pytest-dev/pytest-timeout
9+
license = MIT
10+
classifiers =
11+
Development Status :: 5 - Production/Stable
12+
Environment :: Console
13+
Environment :: Plugins
14+
Intended Audience :: Developers
15+
License :: DFSG approved
16+
License :: OSI Approved :: MIT License
17+
Operating System :: OS Independent
18+
Programming Language :: Python
19+
Programming Language :: Python :: Implementation :: PyPy
20+
Programming Language :: Python :: Implementation :: CPython
21+
Programming Language :: Python :: 3
22+
Programming Language :: Python :: 3 :: Only
23+
Programming Language :: Python :: 3.7
24+
Programming Language :: Python :: 3.8
25+
Programming Language :: Python :: 3.9
26+
Programming Language :: Python :: 3.10
27+
Programming Language :: Python :: 3.11
28+
Topic :: Software Development :: Testing
29+
Framework :: Pytest
30+
31+
[options]
32+
py_modules = pytest_timeout
33+
install_requires =
34+
pytest>=5.0.0
35+
python_requires = >=3.7
36+
37+
[options.entry_points]
38+
pytest11 =
39+
timeout = pytest_timeout

setup.py

Lines changed: 2 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -1,42 +1,5 @@
11
"""Setuptools install script for pytest-timeout."""
22
from setuptools import setup
33

4-
with open("README.rst", encoding="utf-8") as f:
5-
long_description = f.read()
6-
7-
8-
setup(
9-
name="pytest-timeout",
10-
description="pytest plugin to abort hanging tests",
11-
long_description=long_description,
12-
version="2.1.0",
13-
author="Floris Bruynooghe",
14-
author_email="[email protected]",
15-
url="https://github.com/pytest-dev/pytest-timeout",
16-
license="MIT",
17-
py_modules=["pytest_timeout"],
18-
entry_points={"pytest11": ["timeout = pytest_timeout"]},
19-
install_requires=["pytest>=5.0.0"],
20-
python_requires=">=3.7",
21-
classifiers=[
22-
"Development Status :: 5 - Production/Stable",
23-
"Environment :: Console",
24-
"Environment :: Plugins",
25-
"Intended Audience :: Developers",
26-
"License :: DFSG approved",
27-
"License :: OSI Approved :: MIT License",
28-
"Operating System :: OS Independent",
29-
"Programming Language :: Python",
30-
"Programming Language :: Python :: Implementation :: PyPy",
31-
"Programming Language :: Python :: Implementation :: CPython",
32-
"Programming Language :: Python :: 3",
33-
"Programming Language :: Python :: 3 :: Only",
34-
"Programming Language :: Python :: 3.7",
35-
"Programming Language :: Python :: 3.8",
36-
"Programming Language :: Python :: 3.9",
37-
"Programming Language :: Python :: 3.10",
38-
"Programming Language :: Python :: 3.11",
39-
"Topic :: Software Development :: Testing",
40-
"Framework :: Pytest",
41-
],
42-
)
4+
if __name__ == "__main__":
5+
setup()

0 commit comments

Comments
 (0)