Skip to content

Commit

Permalink
Add a pyproject.toml and setup.cfg
Browse files Browse the repository at this point in the history
This enables building/installing without using deprecated setup.py (but
setup.py is still available).
  • Loading branch information
swt2c authored and flub committed Oct 8, 2023
1 parent 2ee3361 commit 263db99
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 39 deletions.
3 changes: 3 additions & 0 deletions pyproject.toml
@@ -0,0 +1,3 @@
[build-system]
requires = ["setuptools"]
build-backend = "setuptools.build_meta"
39 changes: 39 additions & 0 deletions setup.cfg
@@ -0,0 +1,39 @@
[metadata]
name = pytest-timeout
description = pytest plugin to abort hanging tests
long_description = file: README.rst
version = 2.1.0
author = Floris Bruynooghe
author_email = flub@devork.be
url = https://github.com/pytest-dev/pytest-timeout
license = MIT
classifiers =
Development Status :: 5 - Production/Stable
Environment :: Console
Environment :: Plugins
Intended Audience :: Developers
License :: DFSG approved
License :: OSI Approved :: MIT License
Operating System :: OS Independent
Programming Language :: Python
Programming Language :: Python :: Implementation :: PyPy
Programming Language :: Python :: Implementation :: CPython
Programming Language :: Python :: 3
Programming Language :: Python :: 3 :: Only
Programming Language :: Python :: 3.7
Programming Language :: Python :: 3.8
Programming Language :: Python :: 3.9
Programming Language :: Python :: 3.10
Programming Language :: Python :: 3.11
Topic :: Software Development :: Testing
Framework :: Pytest

[options]
py_modules = pytest_timeout
install_requires =
pytest>=5.0.0
python_requires = >=3.7

[options.entry_points]
pytest11 =
timeout = pytest_timeout
41 changes: 2 additions & 39 deletions setup.py
@@ -1,42 +1,5 @@
"""Setuptools install script for pytest-timeout."""
from setuptools import setup

with open("README.rst", encoding="utf-8") as f:
long_description = f.read()


setup(
name="pytest-timeout",
description="pytest plugin to abort hanging tests",
long_description=long_description,
version="2.1.0",
author="Floris Bruynooghe",
author_email="flub@devork.be",
url="https://github.com/pytest-dev/pytest-timeout",
license="MIT",
py_modules=["pytest_timeout"],
entry_points={"pytest11": ["timeout = pytest_timeout"]},
install_requires=["pytest>=5.0.0"],
python_requires=">=3.7",
classifiers=[
"Development Status :: 5 - Production/Stable",
"Environment :: Console",
"Environment :: Plugins",
"Intended Audience :: Developers",
"License :: DFSG approved",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: Implementation :: PyPy",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Topic :: Software Development :: Testing",
"Framework :: Pytest",
],
)
if __name__ == "__main__":
setup()

0 comments on commit 263db99

Please sign in to comment.