diff options
author | Ralf Gommers <ralf.gommers@gmail.com> | 2020-05-29 15:25:21 +0200 |
---|---|---|
committer | Ralf Gommers <ralf.gommers@gmail.com> | 2020-05-29 15:25:21 +0200 |
commit | 6932cd627414078aa86c80f598a8239c2d9c0220 (patch) | |
tree | e819e4cecfb5ab489f7e3708d13679db17916ee3 /doc | |
parent | 5b8216e5c591cd28f5952426e9eba2ded07c4513 (diff) | |
download | numpy-6932cd627414078aa86c80f598a8239c2d9c0220.tar.gz |
DOC: remove "Provisional" from NEPs overview if no NEPs have that status
Diffstat (limited to 'doc')
-rw-r--r-- | doc/neps/index.rst.tmpl | 5 | ||||
-rw-r--r-- | doc/neps/tools/build_index.py | 5 |
2 files changed, 9 insertions, 1 deletions
diff --git a/doc/neps/index.rst.tmpl b/doc/neps/index.rst.tmpl index 4c5b7766f..0299f8671 100644 --- a/doc/neps/index.rst.tmpl +++ b/doc/neps/index.rst.tmpl @@ -29,6 +29,9 @@ Meta-NEPs (NEPs about NEPs or Processes) nep-template + +{% if has_provisional %} + Provisional NEPs (provisionally accepted; interface may change) --------------------------------------------------------------- @@ -39,6 +42,8 @@ Provisional NEPs (provisionally accepted; interface may change) {{ tags['Title'] }} <{{ tags['Filename'] }}> {% endfor %} +{% endif %} + Accepted NEPs (implementation in progress) ------------------------------------------ diff --git a/doc/neps/tools/build_index.py b/doc/neps/tools/build_index.py index 7d159fdb3..51227a6f1 100644 --- a/doc/neps/tools/build_index.py +++ b/doc/neps/tools/build_index.py @@ -22,6 +22,7 @@ def nep_metadata(): meta_re = r':([a-zA-Z\-]*): (.*)' + has_provisional = False neps = {} print('Loading metadata for:') for source in sources: @@ -58,6 +59,8 @@ def nep_metadata(): f'NEP {nr} is Accepted/Rejected/Withdrawn but ' 'has no Resolution tag' ) + if tags['Status'] == 'Provisional': + has_provisional = True neps[nr] = tags @@ -95,7 +98,7 @@ def nep_metadata(): f'been set to Superseded' ) - return {'neps': neps} + return {'neps': neps, 'has_provisional': has_provisional} infile = 'index.rst.tmpl' |