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

Commit

Permalink
Mark package for deprecation (#55)
Browse files Browse the repository at this point in the history
* Add metadata for deprecation

* Add import warning and direct to brainglobe-utils
  • Loading branch information
willGraham01 authored Feb 9, 2024
1 parent b9615ba commit 623e375
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 2 deletions.
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
# This package has moved!

`imio` has been merged into [`brainglobe-utils`](https://github.com/brainglobe/brainglobe-utils) and will no longer be provided standalone.
If you want to continue using this package's functionality, we recommend you install `brainglobe-utils` and the corresponding submodule.

---

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

warn(
"imio has merged into brainglobe-utils as a submodule."
"To remain up to date, please install brainglobe-utils and use the image_io submodule:"
"https://github.com/brainglobe/brainglobe-utils",
DeprecationWarning,
)

__author__ = "Charly Rousseau, Adam Tyson"
__version__ = "0.2.4"

Expand Down
3 changes: 1 addition & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,5 @@ python =
extras =
dev
commands =
pytest -v --color=yes --cov=imio --cov-report=xml
pytest -v --color=yes --cov=imio --cov-report=xml -W ignore::DeprecationWarning
"""

0 comments on commit 623e375

Please sign in to comment.