Skip to content

Commit 454e838

Browse files
committed
Use pyproject.toml
1 parent 10acda9 commit 454e838

File tree

5 files changed

+79
-94
lines changed

5 files changed

+79
-94
lines changed

.coveragerc

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,5 @@
22
branch = True
33
source = numpydoc
44
omit =
5-
*/setup.py
65
numpydoc/tests/*
76
numpydoc/templates/*

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ repos:
2525
rev: v2.7.1
2626
hooks:
2727
- id: prettier
28-
files: \.(html|md|yml|yaml)
28+
files: \.(html|md|toml|yml|yaml)
2929
args: [--prose-wrap=preserve]
3030

3131
- repo: https://github.com/adamchainz/blacken-docs

pyproject.toml

Lines changed: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
[build-system]
2+
build-backend = 'setuptools.build_meta'
3+
requires = ['setuptools>=61.2']
4+
5+
[project]
6+
name = 'numpydoc'
7+
description = 'Sphinx extension to support docstrings in Numpy format'
8+
readme = 'README.rst'
9+
requires-python = '>=3.8'
10+
dynamic = ['version']
11+
keywords = [
12+
'sphinx',
13+
'numpy',
14+
]
15+
classifiers = [
16+
'Development Status :: 4 - Beta',
17+
'Environment :: Plugins',
18+
'License :: OSI Approved :: BSD License',
19+
'Topic :: Documentation',
20+
'Programming Language :: Python',
21+
'Programming Language :: Python :: 3',
22+
'Programming Language :: Python :: 3.8',
23+
'Programming Language :: Python :: 3.9',
24+
'Programming Language :: Python :: 3.10',
25+
'Programming Language :: Python :: 3.11',
26+
]
27+
dependencies = [
28+
'sphinx>=5',
29+
'Jinja2>=2.10',
30+
'tabulate>=0.8.10',
31+
"tomli>=1.1.0;python_version<'3.11'",
32+
]
33+
34+
[[project.authors]]
35+
name = 'Pauli Virtanen and others'
36+
37+
38+
[project.license]
39+
file = 'LICENSE.txt'
40+
41+
[project.urls]
42+
Homepage = 'https://numpydoc.readthedocs.io'
43+
44+
[project.optional-dependencies]
45+
doc = [
46+
'numpy>=1.22',
47+
'matplotlib>=3.5',
48+
'pydata-sphinx-theme>=0.13',
49+
'sphinx>=6',
50+
]
51+
test = [
52+
'pytest',
53+
'pytest-cov',
54+
'matplotlib',
55+
]
56+
57+
[project.scripts]
58+
validate-docstrings = 'numpydoc.hooks.validate_docstrings:main'
59+
[tool.setuptools]
60+
include-package-data = false
61+
packages = [
62+
'numpydoc',
63+
'numpydoc.hooks',
64+
]
65+
66+
[tool.setuptools.package-data]
67+
numpydoc = [
68+
'tests/test_*.py',
69+
'tests/tinybuild/Makefile',
70+
'tests/tinybuild/index.rst',
71+
'tests/tinybuild/*.py',
72+
'templates/*.rst',
73+
]
74+
[tool.pytest.ini_options]
75+
addopts = '''
76+
--showlocals --doctest-modules -ra --cov-report= --cov=numpydoc
77+
--junit-xml=junit-results.xml --ignore=doc/'''
78+
junit_family = 'xunit2'

setup.cfg

Lines changed: 0 additions & 9 deletions
This file was deleted.

setup.py

Lines changed: 0 additions & 83 deletions
This file was deleted.

0 commit comments

Comments
 (0)