Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions additional_notes/0.6.6/highlights.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
This a small bugfix release, following up the changes in 0.6.5.

### Zooming in the dark?
In the previous release we accidentally made the [zoom tool added in v0.6.3](https://napari.org/stable/release/release_0_6_3.html#a-zoom-with-a-view) invisible. Whoops! No worries, it's back 🔍.

### "Open with napari"

When using the [napari bundle](https://napari.org/stable/tutorials/fundamentals/installation_bundle_conda.html#how-to-install-the-napari-app), it will now detect when a file can be opened with napari based on the extension. This allows you to use the `open with >` menu from your operative system to open files with napari!

![image showing a context menu with the the `open with > napari` option available](https://github.com/user-attachments/assets/f13d58e5-ce2d-460a-b92e-2f23ecc8d438)

PS: Since we did quite a few changes behind the scenes on this new version of the bundle, you might experience some issues. Don't hesitate to open an issue or contact us on zulip if you do!
24 changes: 21 additions & 3 deletions generate_release_notes.py
Original file line number Diff line number Diff line change
Expand Up @@ -375,15 +375,18 @@ def detect_effver_type(milestone):
print(effver_info, file=file_handle)

for section, pull_request_dicts in highlights.items():
if not pull_request_dicts:
continue
print(f'## {section}\n', file=file_handle)
section_path = (
LOCAL_DIR
/ 'additional_notes'
/ args.milestone
/ f'{section.lower()}.md'
)

if not section_path.exists() and not pull_request_dicts:
continue

print(f'## {section}\n', file=file_handle)

mentioned_pr = set()
if section_path.exists():
with section_path.open(encoding='utf-8') as f:
Expand Down Expand Up @@ -450,6 +453,21 @@ def detect_effver_type(milestone):
file=file_handle,
)

if args.target_directory:
toc_path = args.target_directory.parent / '_toc.yml'
with open(toc_path) as f:
toc = f.read()
# add new notes to release
new_version = args.milestone.replace('.', '_')
if not re.search(rf'release_{new_version}', toc):
toc = re.sub(
r'(\s+- file: release/release)(.*)',
rf'\1_{new_version}\1\2',
toc,
count=1,
)
with open(toc_path, 'w') as f:
toc = f.write(toc)

if non_merged_pr:
if len(non_merged_pr) == 1:
Expand Down