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

Commit

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

* Add note in README about deprecation

* pytest to ignore deprecaton warning on import
  • Loading branch information
willGraham01 authored Jan 3, 2024
1 parent a3b11af commit ea07406
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-core` has merged with it's napari plugin and is now available as a [single package called `cellfinder`](https://github.com/brainglobe/cellfinder).
We recommend you uninstall `cellfinder-core` 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).

---

[![Python Version](https://img.shields.io/pypi/pyversions/cellfinder-core.svg)](https://pypi.org/project/cellfinder-core)
[![PyPI](https://img.shields.io/pypi/v/cellfinder-core.svg)](https://pypi.org/project/cellfinder-core)
[![Downloads](https://pepy.tech/badge/cellfinder-core)](https://pepy.tech/project/cellfinder-core)
Expand Down
7 changes: 7 additions & 0 deletions src/cellfinder_core/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
from warnings import warn

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

from importlib.metadata import PackageNotFoundError, version

try:
Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ python =
3.10: py310

[testenv]
commands = python -m pytest -v --color=yes
commands = python -m pytest -v --color=yes -W ignore::DeprecationWarning
deps =
pytest
pytest-cov
Expand Down

0 comments on commit ea07406

Please sign in to comment.