Skip to content

Commit

Permalink
Update to brainreg 1.0.0, and brainreg-segment -> `brainglobe-seg…
Browse files Browse the repository at this point in the history
…mentation`. (#32)

* Update brainreg to v1.0.0, remove brainreg-napari references, and update brainreg-segment to brainglobe-segmentation

* Force-fetch brainreg's napari plugin

* Drop py3.8 support
  • Loading branch information
willGraham01 authored Nov 23, 2023
1 parent db82e18 commit 6eef175
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 12 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test_and_deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ jobs:
strategy:
matrix:
# Run all supported Python versions on linux
python-version: ["3.8", "3.9", "3.10"]
python-version: ["3.9", "3.10"]
os: [ubuntu-latest]
# Include one windows and macos run
include:
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ Currently included packages, and whether they come with the `pip` and `conda-for
| BrainGlobe Atlas API | ☑ | ☑ | `bg_atlasapi` | [Site](https://brainglobe.info/documentation/bg-atlasapi/index.html) |
| `bg-space` | ☑ | ☑ | `bg-space` | [Site](https://brainglobe.info/documentation/bg-space/index.html) |
| `brainreg` | ☑ | ☑ | `brainreg` | [Site](https://brainglobe.info/documentation/brainreg/index.html) |
| `brainreg-segment` | ☑ | ☑ | `brainreg_segment` | [Site](https://brainglobe.info/documentation/brainreg-segment/index.html) |
| `brainglobe-segmentation` | ☑ | ☑ | `brainglobe_segmentation` | [Site](https://brainglobe.info/documentation/brainglobe-segmentation/index.html) |
| `brainrender` | | | | [Site](https://brainglobe.info/documentation/brainrender/index.html) |
| `cellfinder` | ☑ | Pending | `cellfinder_core` | [Site](https://brainglobe.info/documentation/cellfinder/index.html) |
| `morphapi` | ☑ | Pending | `morphapi` | [Site](https://brainglobe.info/documentation/morphapi/index.html) |
Expand Down
2 changes: 1 addition & 1 deletion brainglobe/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
import bg_atlasapi
import bg_space
import brainreg
import brainreg_segment
import brainglobe_segmentation

# Expose tools that may not be present
# if a conda install was performed
Expand Down
5 changes: 1 addition & 4 deletions docs/brainglobe-interdependencies.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,8 @@ Packages are listed top to bottom based on the number of brainglobe dependencies
| `morphio` | https://github.com/brainglobe/morphapi | https://pypi.org/project/morphio | See notes |
| `brainglobe-napari-io` | https://github.com/brainglobe/brainglobe-napari-io | https://pypi.org/project/brainglobe-napari-io | https://github.com/conda-forge/brainglobe-napari-io-feedstock |
| `bg-atlasgen` | https://github.com/brainglobe/bg-atlasgen | See notes | See notes |
| `brainreg-segment` | https://github.com/brainglobe/brainreg-segment | https://pypi.org/project/brainreg-segment | https://github.com/conda-forge/brainreg-segment-feedstock |
| `brainglobe-segmentation` | https://github.com/brainglobe/brainglobe-segmentation | https://pypi.org/project/brainglobe-segmentation | https://github.com/conda-forge/brainglobe-segmentation-feedstock |
| `cellfinder-napari` | https://github.com/brainglobe/cellfinder-napari | https://pypi.org/project/cellfinder-napari | https://github.com/conda-forge/cellfinder-napari-feedstock |
| `brainreg-napari` | https://github.com/brainglobe/brainreg-napari | https://pypi.org/project/brainreg-napari | https://github.com/conda-forge/brainreg-napari-feedstock |
| `cellfinder` | https://github.com/brainglobe/cellfinder | https://pypi.org/project/cellfinder | Not available |


Expand All @@ -34,5 +33,3 @@ Packages are listed top to bottom based on the number of brainglobe dependencies
- [Repository](https://github.com/brainglobe/brainglobe-napari)
- Napari plugin for [bg-atlasapi](#bg-atlasapi). Note that repository README uses the name "brainglobe" for "bg-atlasapi" due to a historical renaming.
- Dependencies: `bg-atlasapi`
- `brainreg`
- Has optional `[napari]` dependency which just goes away and installs `brainreg-napari` package.
7 changes: 3 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name = "brainglobe"
authors = [{ name = "BrainGlobe", email = "[email protected]" }]
description = "Python-based tools for computational neuroanatomy."
readme = "README.md"
requires-python = ">=3.8.0"
requires-python = ">=3.9.0"
dynamic = ["version"]

license = { text = "BSD-3-Clause" }
Expand All @@ -24,16 +24,15 @@ dependencies = [
"bg-space>=0.5.0",
"brainglobe-utils",
"bg-atlasapi>=1.0.0",
"brainreg",
"brainreg[napari]>=1.0.0",
# brainglobe-napari [WIP],
"imio",
"cellfinder-core>=0.3",
"morphapi>=0.1.3.0",
"brainglobe-napari-io",
# bg-atlasgen [LOCAL ONLY],
"brainreg-segment>=0.0.2",
"brainglobe-segmentation>=1.0.0",
"cellfinder-napari",
"brainreg-napari",
"cellfinder",
]

Expand Down
2 changes: 1 addition & 1 deletion tests/test_unit/test_tool_exposure.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"bg_atlasapi",
"bg_space",
"brainreg",
"brainreg_segment",
"brainglobe_segmentation",
"cellfinder_core",
]
OPTIONAL_TOOLS = ["morphapi", "cellfinder"]
Expand Down

0 comments on commit 6eef175

Please sign in to comment.