diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..19dcba1 --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,45 @@ +[project] +name = "pytest.sphinx" +version = "0.4.0" +description = "Doctest plugin for pytest with support for Sphinx-specific doctest-directives" +readme = "README.rst" +requires-python = ">=3.7" +license = { file = "LICENSE" } +keywords = ["sphinx", "pytest", "rst"] +authors = [ + { name="Thomas Hisch", email="t.hisch@gmail.com" } +] +maintainers = [ + { name="Thomas Hisch", email="t.hisch@gmail.com" } +] + +classifiers = [ + "Development Status :: 4 - Beta", + "Framework :: Pytest", + "Intended Audience :: Developers", + "Topic :: Software Development :: Testing", + "Programming Language :: Python", + "Programming Language :: Python :: 3", + "Programming Language :: Python :: 3.7", + "Programming Language :: Python :: 3.8", + "Programming Language :: Python :: 3.9", + "Programming Language :: Python :: 3.10", + "Programming Language :: Python :: Implementation :: CPython", + "Operating System :: OS Independent", + "License :: OSI Approved :: BSD License", +] + +# Requirements +dependencies = [ + "pytest >=7.0.0", +] + +[project.urls] +homepage = "https://github.com/thisch/pytest-sphinx" + +[project.entry-points."pytest11"] +"sphinx" = "pytest_sphinx" + +[build-system] +requires = ["setuptools"] +build-backend = "setuptools.build_meta" diff --git a/setup.py b/setup.py deleted file mode 100644 index 29bc99d..0000000 --- a/setup.py +++ /dev/null @@ -1,47 +0,0 @@ -#!/usr/bin/env python -# -*- coding: utf-8 -*- - -import codecs -import os - -from setuptools import setup - - -def read(fname): - file_path = os.path.join(os.path.dirname(__file__), fname) - return codecs.open(file_path, encoding="utf-8").read() - - -setup( - name="pytest-sphinx", - version="0.4.0", - author="Thomas Hisch", - author_email="t.hisch@gmail.com", - maintainer="Thomas Hisch", - maintainer_email="t.hisch@gmail.com", - license="BSD-3", - url="https://github.com/thisch/pytest-sphinx", - description=( - "Doctest plugin for pytest with support for " - "Sphinx-specific doctest-directives" - ), - long_description=read("README.rst"), - py_modules=["pytest_sphinx"], - install_requires=["pytest>=7.0.0"], - classifiers=[ - "Development Status :: 4 - Beta", - "Framework :: Pytest", - "Intended Audience :: Developers", - "Topic :: Software Development :: Testing", - "Programming Language :: Python", - "Programming Language :: Python :: 3", - "Programming Language :: Python :: 3.7", - "Programming Language :: Python :: 3.8", - "Programming Language :: Python :: 3.9", - "Programming Language :: Python :: 3.10", - "Programming Language :: Python :: Implementation :: CPython", - "Operating System :: OS Independent", - "License :: OSI Approved :: BSD License", - ], - entry_points={"pytest11": ["sphinx = pytest_sphinx"]}, -) diff --git a/tox.ini b/tox.ini index 7f6b154..5aa2818 100644 --- a/tox.ini +++ b/tox.ini @@ -1,6 +1,7 @@ # For more information about tox, see https://tox.readthedocs.io/en/latest/ [tox] envlist = py37,py38,py39,py310,py311,ci-py +isolated_build = true [testenv] deps =