Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 0 additions & 8 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,3 @@ repos:
hooks:
- id: pyupgrade
args: [--py38-plus]

- repo: local
hooks:
- id: pyproject.toml
name: pyproject.toml
language: system
entry: python tools/generate_pyproject.toml.py
files: "pyproject.toml|requirements/.*\\.txt|tools/.*pyproject.*"
39 changes: 14 additions & 25 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,23 +1,16 @@
################################################################################
# DO NOT EDIT
# AUTOGENERATED BY
#
# $ python tools/generate_pyproject.toml.py
#
# EDIT tools/pyproject.toml.in AND RUN THAT SCRIPT.
#
################################################################################

[build-system]
build-backend = 'setuptools.build_meta'
requires = ['setuptools>=61.2']
requires = ['setuptools>=62.6']

[project]
name = 'numpydoc'
description = 'Sphinx extension to support docstrings in Numpy format'
readme = 'README.rst'
requires-python = '>=3.8'
dynamic = ['version']
dynamic = [
'optional-dependencies',
'version',
]
keywords = [
'sphinx',
'numpy',
Expand Down Expand Up @@ -52,27 +45,22 @@ file = 'LICENSE.txt'
Homepage = 'https://numpydoc.readthedocs.io'
Source = 'https://github.com/numpy/numpydoc/'

[project.optional-dependencies]
doc = [
'numpy>=1.22',
'matplotlib>=3.5',
'pydata-sphinx-theme>=0.13',
'sphinx>=6',
]
test = [
'pytest',
'pytest-cov',
'matplotlib',
]

[project.scripts]
validate-docstrings = 'numpydoc.hooks.validate_docstrings:main'

[tool.setuptools]
include-package-data = false
packages = [
'numpydoc',
'numpydoc.hooks',
]

[tool.setuptools.dynamic.optional-dependencies.doc]
file = 'requirements/doc.txt'

[tool.setuptools.dynamic.optional-dependencies.test]
file = 'requirements/test.txt'

[tool.setuptools.dynamic.version]
attr = 'numpydoc.__version__'

Expand All @@ -84,6 +72,7 @@ numpydoc = [
'tests/tinybuild/*.py',
'templates/*.rst',
]

[tool.pytest.ini_options]
addopts = '''
--showlocals --doctest-modules -ra --cov-report= --cov=numpydoc
Expand Down
1 change: 0 additions & 1 deletion requirements/developer.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
pre-commit>=3.3
rtoml
52 changes: 0 additions & 52 deletions tools/generate_pyproject.toml.py

This file was deleted.

71 changes: 0 additions & 71 deletions tools/pyproject.toml.in

This file was deleted.