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

Commit

Permalink
Prepare repository and package for retirement (#78)
Browse files Browse the repository at this point in the history
* Force any attempted installs to use brainglobe installs <v1

* Flag deprication in README

* Add deprication warning to package

* Brainglobe typo
  • Loading branch information
willGraham01 authored Nov 6, 2023
1 parent 71f50d2 commit 321bb87
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 23 deletions.
15 changes: 15 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
# THIS PACKAGE HAS MOVED

As of the release of `brainreg` version `1.0.0`, `brainreg-napari` is now a part of [`brainreg`](https://github.com/brainglobe/brainreg).
If you are looking to install the `brainglobe-napari` plugin, please install `brainreg` with it's optional `napari` dependency as detailed in the installation instructions on the [website](https://brainglobe.info/documentation/brainreg/index.html) or [repository](https://github.com/brainglobe/brainreg).
Before you update, you should also remove the old `brainreg-napari` package from your environment using either

```bash
python -m pip uninstall brainreg-napari # If you installed via pip
conda remove brainreg-napari # If you installed via conda
```

You can find the old documentation and installation instructions below, but please note this version of the package should be considered unmaintained.

---

[![Python Version](https://img.shields.io/pypi/pyversions/brainreg-napari.svg)](https://pypi.org/project/brainreg-napari)
[![PyPI](https://img.shields.io/pypi/v/brainreg-napari.svg)](https://pypi.org/project/brainreg-napari)
[![Wheel](https://img.shields.io/pypi/wheel/brainreg-napari.svg)](https://pypi.org/project/brainreg-napari)
Expand Down
6 changes: 6 additions & 0 deletions brainreg_napari/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import warnings

warnings.warn(
"brainreg-napari is deprecated, please switch to brainreg[napari].",
DeprecationWarning,
)
44 changes: 21 additions & 23 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
[project]
name = "brainreg-napari"
authors = [{name = "Adam Tyson, Stephen Lenzi", email= "code@adamltyson.com"}]
authors = [
{ name = "Adam Tyson, Stephen Lenzi", email = "code@adamltyson.com" },
]
description = "Multi-atlas whole-brain microscopy registration"
readme = "README.md"
requires-python = ">=3.9.0"
Expand All @@ -17,32 +19,32 @@ classifiers = [
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Operating System :: OS Independent",
]
]

license = {text = "BSD-3-Clause"}
license = { text = "BSD-3-Clause" }
dependencies = [
"napari",
"napari-plugin-engine >= 0.1.4",
"magicgui",
"qtpy",
"brainglobe-napari-io",
"brainreg",
"brainreg-segment",
"brainglobe-utils",
"pooch>1", # For sample data
"brainglobe-napari-io < 1",
"brainreg < 1",
"brainreg-segment < 1",
"brainglobe-utils < 1",
"pooch>1", # For sample data
]

[project.optional-dependencies]
dev = [
"check-manifest",
"gitpython",
"napari[pyqt5]",
"pre-commit",
"pytest",
"pytest-cov",
"pytest-qt",
"setuptools_scm",
"tox",
"check-manifest",
"gitpython",
"napari[pyqt5]",
"pre-commit",
"pytest",
"pytest-cov",
"pytest-qt",
"setuptools_scm",
"tox",
]

[project.urls]
Expand All @@ -57,11 +59,7 @@ twitter = "https://twitter.com/brain_globe"
brainreg-napari = "brainreg_napari:napari.yaml"

[build-system]
requires = [
"setuptools>=45",
"wheel",
"setuptools_scm[toml]>=6.2",
]
requires = ["setuptools>=45", "wheel", "setuptools_scm[toml]>=6.2"]
build-backend = "setuptools.build_meta"

[tool.setuptools_scm]
Expand All @@ -73,6 +71,6 @@ line-length = 79

[tool.ruff]
line-length = 79
exclude = ["__init__.py","build",".eggs"]
exclude = ["__init__.py", "build", ".eggs"]
select = ["I", "E", "F"]
fix = true

0 comments on commit 321bb87

Please sign in to comment.