Skip to content

Commit

Permalink
Merge pull request numpy#16427 from rgommers/nep18-fina
Browse files Browse the repository at this point in the history
DOC: make NEP 18 status Final
  • Loading branch information
charris authored May 29, 2020
2 parents 5a4140d + 6932cd6 commit 076c599
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
5 changes: 5 additions & 0 deletions doc/neps/index.rst.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ Meta-NEPs (NEPs about NEPs or Processes)

nep-template


{% if has_provisional %}

Provisional NEPs (provisionally accepted; interface may change)
---------------------------------------------------------------

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

{% endif %}


Accepted NEPs (implementation in progress)
------------------------------------------
Expand Down
2 changes: 1 addition & 1 deletion doc/neps/nep-0018-array-function-protocol.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ NEP 18 — A dispatch mechanism for NumPy's high level array functions
:Author: Marten van Kerkwijk <[email protected]>
:Author: Hameer Abbasi <[email protected]>
:Author: Eric Wieser <[email protected]>
:Status: Provisional
:Status: Final
:Type: Standards Track
:Created: 2018-05-29
:Updated: 2019-05-25
Expand Down
5 changes: 4 additions & 1 deletion doc/neps/tools/build_index.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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

Expand Down Expand Up @@ -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'
Expand Down

0 comments on commit 076c599

Please sign in to comment.