Skip to content

Commit

Permalink
Prepare for merge and rename (#198)
Browse files Browse the repository at this point in the history
* Add package moved to README

* Flag deprecation in import
  • Loading branch information
willGraham01 authored Feb 20, 2024
1 parent cbb1794 commit 9d5317d
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 1 deletion.
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# This package has moved!

This package has been renamed to `brainglobe-atlasapi`.
To continue receiving updates, please switch over to using [the new package](https://github.com/brainglobe/brainglobe-atlasapi).

# BG-atlasAPI

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

warn(
"This package has been renamed. "
"To continue receiving updates, please use brainglobe-atlasapi instead of this package. "
"https://github.com/brainglobe/brainglobe-atlasapi",
DeprecationWarning,
)

from importlib.metadata import PackageNotFoundError, metadata

try:
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -96,5 +96,5 @@ python =
[testenv]
extras =
dev
commands = pytest -v --color=yes --cov=bg_atlasapi --cov-report=xml
commands = pytest -v --color=yes --cov=bg_atlasapi --cov-report=xml -W ignore::DeprecationWarning
"""

0 comments on commit 9d5317d

Please sign in to comment.