11[build-system]
2- requires = ["setuptools>=64", "setuptools_scm[toml]>=6.2", "wheel" ]
2+ requires = ["setuptools>=64", "setuptools_scm[toml]>=6.2"]
33build-backend = "setuptools.build_meta"
44
55[project]
@@ -17,7 +17,7 @@ description = "{{ description }}"
1717dependencies = [] # Add project dependencies here, e.g. ["click", "numpy"]
1818dynamic = ["version"]
1919license.file = "LICENSE"
20- readme = "README.rst "
20+ readme = "README.md "
2121requires-python = ">=3.7"
2222
2323[project.optional-dependencies]
@@ -58,7 +58,7 @@ reportMissingImports = false # Ignore missing stubs in imported modules
5858[tool.pytest.ini_options]
5959# Run pytest with all our checkers, and don't spam us with massive tracebacks on error
6060addopts = """
61- --tb=native -vv --doctest-modules --doctest-glob="*.rst"
61+ --tb=native -vv{% if sphinx %} --doctest-modules --doctest-glob="*.rst"{% endif %}
6262 """
6363# https://iscinumpy.gitlab.io/post/bound-version-constraints/#watch-for-warnings
6464filterwarnings = "error"
@@ -79,22 +79,22 @@ legacy_tox_ini = """
7979[tox]
8080skipsdist=True
8181
82- [testenv:{pre-commit,pyright,pytest,docs}]
82+ [testenv:{pre-commit,pyright,pytest{% if sphinx %} ,docs{% endif %} }]
8383# Don't create a virtualenv for the command, requires tox-direct plugin
8484direct = True
8585passenv = *
8686allowlist_externals =
8787 pytest
8888 pre-commit
8989 pyright
90- sphinx-build
90+ {% if sphinx %} sphinx-build
9191 sphinx-autobuild
92- commands =
92+ {% endif %} commands =
9393 pytest: pytest --cov={{ package_name }} --cov-report term --cov-report xml:cov.xml {posargs}
9494 pyright: pyright src tests {posargs}
9595 pre-commit: pre-commit run --all-files {posargs}
96- docs: sphinx-{posargs:build -EW --keep-going} -T docs build/html
97- """
96+ {% if sphinx %} docs: sphinx-{posargs:build -EW --keep-going} -T docs build/html
97+ {% endif %} """
9898
9999[tool.ruff]
100100src = ["src", "tests"]
0 commit comments