Skip to content

Commit

Permalink
Migrate to npe2 (#29)
Browse files Browse the repository at this point in the history
* migrate to npe2
* remove napari-plugin-engine dependency
  • Loading branch information
Czaki authored Oct 11, 2023
1 parent 760388c commit e2a8d71
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 26 deletions.
1 change: 0 additions & 1 deletion napari_console/_hookimpl.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
from napari_plugin_engine import napari_hook_implementation
from .qt_console import QtConsole

# Wait to use hook impl
Expand Down
2 changes: 2 additions & 0 deletions napari_console/napari.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
name: napari-console
schema_version: 0.1.0
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
requires = [
"setuptools >= 42",
"wheel",
"setuptools_scm>=3.4"
"setuptools_scm>=8.0"
]
build-backend = "setuptools.build_meta"

Expand Down
43 changes: 19 additions & 24 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -1,48 +1,43 @@
[metadata]
name = napari-console
url = https://github.com/napari/napari-console
license = BSD 3-Clause
license_file = LICENSE
description = A plugin that adds a console to napari
long_description = file: README.md
long_description_content_type = text/markdown
url = https://github.com/napari/napari-console
author = Nicholas Sofroniew
author_email = [email protected]
license = BSD-3-Clause
license_files = LICENSE
classifiers =
Development Status :: 4 - Beta
Intended Audience :: Developers
Framework :: napari
Topic :: Software Development :: Testing
Intended Audience :: Developers
License :: OSI Approved :: BSD License
Operating System :: OS Independent
Programming Language :: Python
Programming Language :: Python :: 3
Programming Language :: Python :: 3 :: Only
Programming Language :: Python :: 3.8
Programming Language :: Python :: 3.9
Programming Language :: Python :: 3.10
Operating System :: OS Independent
License :: OSI Approved :: BSD License
Programming Language :: Python :: 3.11
Programming Language :: Python :: 3.12
Topic :: Software Development :: Testing

[options]
zip_safe = False
packages = find:
python_requires = >=3.8
include_package_data = True
install_requires =
ipykernel>=5.2.0
IPython>=7.7.0
napari-plugin-engine>=0.1.9
qtconsole>=4.5.1,!=4.7.6,!=5.4.2
ipykernel>=5.2.0
qtconsole!=4.7.6,!=5.4.2,>=4.5.1
qtpy>=1.7.0

[options.package_data]
* = *.pyi
napari_builtins =
builtins.yaml

# for explanation of %(extra)s syntax see:
# https://github.com/pypa/setuptools/issues/1260#issuecomment-438187625
# this syntax may change in the future
python_requires = >=3.8
include_package_data = True
zip_safe = False

[options.entry_points]
napari.plugin =
console = napari_console
napari.manifest =
napari-console = napari_console:napari.yaml

[options.package_data]
napari_console = napari.yaml

0 comments on commit e2a8d71

Please sign in to comment.