Skip to content

Commit 076c599

Browse files
authored
Merge pull request numpy#16427 from rgommers/nep18-fina
DOC: make NEP 18 status Final
2 parents 5a4140d + 6932cd6 commit 076c599

File tree

3 files changed

+10
-2
lines changed

3 files changed

+10
-2
lines changed

doc/neps/index.rst.tmpl

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,9 @@ Meta-NEPs (NEPs about NEPs or Processes)
2929

3030
nep-template
3131

32+
33+
{% if has_provisional %}
34+
3235
Provisional NEPs (provisionally accepted; interface may change)
3336
---------------------------------------------------------------
3437

@@ -39,6 +42,8 @@ Provisional NEPs (provisionally accepted; interface may change)
3942
{{ tags['Title'] }} <{{ tags['Filename'] }}>
4043
{% endfor %}
4144

45+
{% endif %}
46+
4247

4348
Accepted NEPs (implementation in progress)
4449
------------------------------------------

doc/neps/nep-0018-array-function-protocol.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ NEP 18 — A dispatch mechanism for NumPy's high level array functions
77
:Author: Marten van Kerkwijk <[email protected]>
88
:Author: Hameer Abbasi <[email protected]>
99
:Author: Eric Wieser <[email protected]>
10-
:Status: Provisional
10+
:Status: Final
1111
:Type: Standards Track
1212
:Created: 2018-05-29
1313
:Updated: 2019-05-25

doc/neps/tools/build_index.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ def nep_metadata():
2222

2323
meta_re = r':([a-zA-Z\-]*): (.*)'
2424

25+
has_provisional = False
2526
neps = {}
2627
print('Loading metadata for:')
2728
for source in sources:
@@ -58,6 +59,8 @@ def nep_metadata():
5859
f'NEP {nr} is Accepted/Rejected/Withdrawn but '
5960
'has no Resolution tag'
6061
)
62+
if tags['Status'] == 'Provisional':
63+
has_provisional = True
6164

6265
neps[nr] = tags
6366

@@ -95,7 +98,7 @@ def nep_metadata():
9598
f'been set to Superseded'
9699
)
97100

98-
return {'neps': neps}
101+
return {'neps': neps, 'has_provisional': has_provisional}
99102

100103

101104
infile = 'index.rst.tmpl'

0 commit comments

Comments
 (0)