summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCharles Harris <charlesr.harris@gmail.com>2020-05-29 08:16:42 -0600
committerGitHub <noreply@github.com>2020-05-29 08:16:42 -0600
commit076c599f25255d991f59056bd16f80aa72631ffe (patch)
treee819e4cecfb5ab489f7e3708d13679db17916ee3
parent5a4140d722117afc89869d5772ddd7a67448cfbc (diff)
parent6932cd627414078aa86c80f598a8239c2d9c0220 (diff)
downloadnumpy-076c599f25255d991f59056bd16f80aa72631ffe.tar.gz
Merge pull request #16427 from rgommers/nep18-fina
DOC: make NEP 18 status Final
-rw-r--r--doc/neps/index.rst.tmpl5
-rw-r--r--doc/neps/nep-0018-array-function-protocol.rst2
-rw-r--r--doc/neps/tools/build_index.py5
3 files changed, 10 insertions, 2 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/nep-0018-array-function-protocol.rst b/doc/neps/nep-0018-array-function-protocol.rst
index fb9b838b5..3147d8cee 100644
--- a/doc/neps/nep-0018-array-function-protocol.rst
+++ b/doc/neps/nep-0018-array-function-protocol.rst
@@ -7,7 +7,7 @@ NEP 18 — A dispatch mechanism for NumPy's high level array functions
:Author: Marten van Kerkwijk <mhvk@astro.utoronto.ca>
:Author: Hameer Abbasi <hameerabbasi@yahoo.com>
:Author: Eric Wieser <wieser.eric@gmail.com>
-:Status: Provisional
+:Status: Final
:Type: Standards Track
:Created: 2018-05-29
:Updated: 2019-05-25
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'