8000 REL: Prepare for 1.18 branch by charris · Pull Request #15031 · numpy/numpy · GitHub
[go: up one dir, main page]

Skip to content

REL: Prepare for 1.18 branch #15031

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Dec 3, 2019
Merged

Conversation

charris
Copy link
Member
@charris charris commented Dec 3, 2019

This should go in quickly so I can make the branch. I was tempted to just push it before folks started adding release note fragments. The release notes need editing, but I will do that after the branch.
Next time I might just branch before generating the notes.

  • Update cversion.txt and numpyconfig.h
  • Create preliminary release note
  • Update HOWTO_RELEASE.rst.txt.

@mattip
Copy link
Member
mattip commented Dec 3, 2019

Is there a reason gh-14794 (ragged array deprecation) which is approved, is not going in? We need to encourage more reviewers to push the merge button.

Also I think gh-15007 (C-API cleanup) should be part of the release, since it will be difficult to change the function names once we have officially released a version of the C-API. @rgommers, any thoughts?

@rgommers
Copy link
Member
rgommers commented Dec 3, 2019

@rgommers, any thoughts?

you're completely right. it was missing the 1.18.0 milestone, I'll add it now and will aim to review today

@rgommers rgommers merged commit 7999f7c into numpy:master Dec 3, 2019
@rgommers
Copy link
Member
rgommers commented Dec 3, 2019

LGTM, so in it goes. I'll add a couple of comments since @charris still plans to edit the release notes after merging.


Multivariate hypergeometric distribution added to `numpy.random`
----------------------------------------------------------------
The method `multivariate_hypergeometric` has been added to the class
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be double backticks. Applies to anything in this file that's not numpy.submodule.this_is_a_fully_qualified_name_to_an_object.

Deprecations
============

`np.fromfile` and `np.fromstring` will error on bad data
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just to be sure: anything that's np. will be a broken link. needs either changing to numpy. or to double backticks

will throw an error when parsing bad data.
This will now give a ``DeprecationWarning`` where previously partial or
even invalid data was silently returned. This deprecation also affects
the C defined functions c:func:`PyArray_FromString`` and
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd much prefer double backticks over c:func:, because we're using these release notes in other places (like https://github.com/numpy/numpy/releases and in the Tidelift dashboard) where c:func: will just look weird.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've gone ahead and changed all the links to double backticks for consistency. If links are preferred the fix will not be difficult. I think we can now use np.* as well as numpy.*. @mattip?

Copy link
Member
@mattip mattip Dec 5, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

because we're using these release notes in other places (like https://github.com/numpy/numpy/releases

Perhaps we should enhance the pavement.py script to do more. I don't even see where it converts rst to markdown, but it is writing a file with a md suffix. @charris do you need to massage this by hand?

we can now use np.* as well as numpy.*

Unfortunately no, we have not worked out a way to do that. Here is a rendered release note from a PR, the np.* links are broken. I tried to fix that in gh-11344, but failed, maybe now that we have moved to sphinx 2.2.0 there is a way to support that

(`gh-14393 <https://github.com/numpy/numpy/pull/14393>`__)


New Features
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To split up "New functions" and "New features" is odd.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm, this is part of the basic template. We could change that.

(`gh-14771 <https://github.com/numpy/numpy/pull/14771>`__)


Changes
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"Changes" and "Compatibility notes" look like the same thing.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is also part to the template, could also be changed.

(`gh-13794 <https://github.com/numpy/numpy/pull/13794>`__)


Deprecations
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The order of headings is odd and inconsistent with previous release notes. Can this be ordering like we had it before?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is the same ordering when I check against the doc/source/release/template.rst, but that hasn't been revisited for some time.

@charris charris deleted the prepare-1.18-branch branch May 2, 2020 17:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants
0