Skip to content

BUG: fix release snippet failures caught only after merging - #14526

Merged
seberg merged 2 commits into
numpy:masterfrom
mattip:fix-towncrier
Sep 16, 2019
Merged

seberg merged 2 commits into
numpy:masterfrom
mattip:fix-towncrier

Conversation

@mattip

@mattip mattip commented Sep 16, 2019

Copy link
Copy Markdown
Member

#14514 added a test for building towncrier notes. For some reason the test passed in the merge even though it left master with a bad file name?

@mattip mattip changed the title BUG: change non-compliant file name BUG: fix release snippet failures caught only after merging Sep 16, 2019
Comment thread numpy/distutils/misc_util.py Outdated

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

This is not a valid docstring section name

If ``drop_fields`` is used to drop all fields, previously the array would
be completely discarded and ``None`` returned. Now it returns an array of the
be completely discarded and `None` returned. Now it returns an array of the
same shape as the input, but with no fields. The old behavior can be retained

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Was this note really broken?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

The note was fine. The issue is that when the template consumes it, no blank line was added after the note. That meant the code block had no blank line after it, which sphinx RST doesn't like.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

OK, I think I like the solution of just adding a bit of text under the fragment best. Feels a bit wrong that there is no better way, but if we like the autmatic addition of the link it is a bit tricky (unless we remove automatic whitespace stripping, but...). Did not realize None was fine with single quotes.

@seberg

seberg commented Sep 16, 2019

Copy link
Copy Markdown
Member

OK, let me put this in before test failures start to be annoying. Thanks Matti.

@seberg
seberg merged commit 6e75b9a into numpy:master Sep 16, 2019
@mattip

mattip commented Sep 16, 2019

Copy link
Copy Markdown
Member Author

If a better solution is found, it can be merged. Also we could have replaced this line with XXXX REMOVE ME since the final release note will most likely need a little fixup during the actual release.

@mattip
mattip deleted the fix-towncrier branch June 8, 2020 06:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants