Skip to content
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

Move npe2api.py from napari repo to this repo #39

Merged
merged 13 commits into from
May 29, 2024

Conversation

goanpeca
Copy link
Contributor

@goanpeca goanpeca commented May 27, 2024

Part of #33

Move npe2api.py from napari repo file with history and adapt code in this repo to use that file directly.

Requires #40 to solve failing tests

@goanpeca goanpeca changed the title Update plugin dialog design & functionality to add conda install (#5198) Move npe2api.py from napari repo to this repo May 27, 2024
@goanpeca goanpeca self-assigned this May 27, 2024
ppwadhwa and others added 13 commits May 28, 2024 09:49
Changes the plugin dialog to match the design discussed in #4952

Co-authored-by: Draga Doncila Pop <[email protected]>
Co-authored-by: Gonzalo Pena-Castellanos <[email protected]>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Grzegorz Bokota <[email protected]>
Co-authored-by: Daniel Althviz Moré <[email protected]>
Co-authored-by: Peter Sobolewski <[email protected]>
# Fixes/Closes

<!-- In general, PRs should fix an existing issue on the repo. -->
<!-- Please link to that issue here as "Closes #(issue-number)". -->
Closes #5724

# Description
<!-- What does this pull request (PR) do? Why is it necessary? -->
<!-- Tell us about your new feature, improvement, or fix! -->
<!-- If your change includes user interface changes, please add an
image, or an animation "An image is worth a thousand words!" -->
<!-- You can use https://www.cockos.com/licecap/ or similar to create
animations -->

# References
<!-- What resources, documentation, and guides were used in the creation
of this PR? -->

## Type of change
<!-- Please delete options that are not relevant. -->
- [x] Bug-fix (non-breaking change which fixes an issue)
- [ ] New feature (non-breaking change which adds functionality)
- [ ] Breaking change (fix or feature that would cause existing
functionality to not work as expected)
- [ ] This change requires a documentation update

# How has this been tested?
<!-- Please describe the tests that you ran to verify your changes. -->
- [ ] example: the test suite for my feature covers cases x, y, and z
- [ ] example: all tests pass with my change
- [ ] example: I check if my changes works with both PySide and PyQt
backends
      as there are small differences between the two Qt bindings.

## Final checklist:
- [ ] My PR is the minimum possible work for the desired functionality
- [ ] I have commented my code, particularly in hard-to-understand areas
- [ ] I have made corresponding changes to the documentation
- [ ] I have added tests that prove my fix is effective or that my
feature works
- [ ] If I included new strings, I have used `trans.` to make them
localizable.
For more information see our [translations
guide](https://napari.org/developers/translations.html).
# Fixes/Closes
Closes napari/napari#5506

# Description

The Briefcase bundles have not been working for a while (at least in
some platforms), nobody is testing them either, and our development
efforts are mostly directed to the `constructor` installers.
In this PR, they are removed to [avoid CI
waste](napari/napari#5660) and permit deleting
some strange code paths for Briefcase workarounds.

# References

## Type of change
- [X] Removes / deprecates code

# How has this been tested?
<!-- Please describe the tests that you ran to verify your changes. -->
- [x] No CI jobs for Briefcase
- [x] Tests pass without the extra Briefcase workarounds

## Final checklist:
- [X] My PR is the minimum possible work for the desired functionality
- [x] I have made corresponding changes to the documentation:
napari/docs#147

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Grzegorz Bokota <[email protected]>
Step toward #2751

Start taking mypy errors one by one and fix/ignore them.

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Wouter-Michiel Vierdag <[email protected]>
updates:
- [github.com/astral-sh/ruff-pre-commit: v0.1.9 →
v0.1.11](astral-sh/ruff-pre-commit@v0.1.9...v0.1.11)

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Grzegorz Bokota <[email protected]>
# Description

Based on a discussion from #6386 I updated the ruff configuration to
enable `Q000` https://docs.astral.sh/ruff/rules/#flake8-quotes-q rule
and configured it to use a single quotes string.

We have many double quotes string, but less than single quotes.

This PR does not change the quotation of docstrings (`"""`) and
multiline strings (`"""`) as they are already enforced by ruff
configuration and could be easy changed.

to see configuration changes please use:
napari/napari@a422ad7

cc @jni @brisvag

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
# Description

Drop python 3.8 start testing on python 3.12

* Disable PySide6 for python 3.12 (need #6062)
* Workflows updated with new versions, by bumping each python version by
1 (as well as project and tox.ini)
* a couple of "if version < 3.9" checks removed
* Change List and Tuple to list and tuple in type annotation (part of
them automatically)

Also, automatically by pre-commit
* a couple of parenthesized context managers
* change to import from `collections` instead of `typing` for a bunch of
types (like `Sequence`)
* import part of things from `typing` instead of `typing_extension`
(like `Annotated`).
* one lru_cache to cache

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
…d resolve pointed problems. (#6866)

Updated packages: `filelock`, `hypothesis`, `pyproject-hooks`, `pytest`,
`virtualenv`

Fix workflow for bumping mypy constraints and manual bump them, then
resolve new pointed bugs.

---------

Co-authored-by: napari-bot <[email protected]>
Co-authored-by: Grzegorz Bokota <[email protected]>
…ng the plugin manager (#6931)

Fixes napari#26

# Description

Catches connectivity errors when fetching for plugin information when
opening the plugin manager.

Although the issue lives in the plugin manager repo, the code that
fetches the code still lives in napari, hence with the PR seem to be
better resolved on this side.

# Result

## Before this PR

![napari-before](https://github.com/napari/napari/assets/3627835/6e704463-2dd3-4701-9aa5-93f2501e48fd)

## With this PR

![napari](https://github.com/napari/napari/assets/3627835/ffa3ad0a-da18-4e76-a4aa-8a007f90ce36)

The warning reads:

>There seems to be an issue with network connectivity. Remote plugins
cannot be installed, only local ones.
@goanpeca goanpeca marked this pull request as ready for review May 28, 2024 14:49
from npe2 import PackageMetadata
from typing_extensions import NotRequired

PyPIname = str
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
PyPIname = str
PyPIName = str

I'd normally type it like that but it looks weird :/

@goanpeca goanpeca merged commit c091217 into napari:main May 29, 2024
10 checks passed
@goanpeca goanpeca deleted the enh/move branch May 29, 2024 18:12
@goanpeca goanpeca added the task Work around tooling / release / ci label Jul 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
task Work around tooling / release / ci
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants