Skip to content
This repository has been archived by the owner on Jan 5, 2024. It is now read-only.

Commit

Permalink
Prepare for retirement (#177)
Browse files Browse the repository at this point in the history
* Add deprecation warning on import

* Update README with deprecation notice

* pytest to ignore import deprecation warning
  • Loading branch information
willGraham01 authored Dec 13, 2023
1 parent 8fabe42 commit b84c995
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 1 deletion.
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
# This package has moved

`cellfinder-napari` has merged with it's backend code and is now available as a [single package called `cellfinder`](https://github.com/brainglobe/cellfinder).
We recommend you uninstall `cellfinder-napari` and instead use the functionality provided in the `cellfinder` package.

These changes are part of our [wider restructuring](https://brainglobe.info/blog/version1/version_1_announcement.html) of the BrainGlobe suite of tools and analysis pipelines, which you can [keep up to date with on our blog](https://brainglobe.info/blog/index.html).

---

# cellfinder-napari

[![License](https://img.shields.io/pypi/l/cellfinder-napari.svg?color=green)](https://github.com/napari/cellfinder-napari/raw/master/LICENSE)
Expand Down
7 changes: 7 additions & 0 deletions cellfinder_napari/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
from warnings import warn

warn(
f"cellfinder-napari has merged with it's backend code and is now available as a combined package. To remain up to date, please install cellfinder: https://github.com/brainglobe/cellfinder",
DeprecationWarning,
)

__version__ = "0.0.20"
__author__ = "Adam Tyson"
__license__ = "GPL-3.0"
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,4 @@ deps =
pytest-cov # https://pytest-cov.readthedocs.io/en/latest/
pytest-qt
commands =
pytest -v --color=yes --cov=cellfinder_napari --cov-report=xml
pytest -v --color=yes --cov=cellfinder_napari --cov-report=xml -W ignore::DeprecationWarning

0 comments on commit b84c995

Please sign in to comment.