Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Separate out dependencies in pyproject. #67

Merged
merged 1 commit into from
Dec 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/abc_atlas_access_ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,6 @@ jobs:
- name: Install
run: |
python -m pip install --upgrade pip
pip install .
pip install ".[test]"
- name: Test
run: pytest tests
4 changes: 2 additions & 2 deletions .github/workflows/deploy_book.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ name: deploy-book
on:
push:
branches:
- main
- main

# This job installs dependencies, builds the book, and pushes it to `gh-pages`
jobs:
Expand All @@ -21,7 +21,7 @@ jobs:

- name: Install dependencies
run: |
pip install -r requirements.txt
pip install ".[jupyter-book]"

# Build the book
- name: Build the book
Expand Down
20 changes: 20 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,23 @@ We are not currently supporting this code, but simply releasing it to the
community AS IS but are not able to provide any guarantees of support. The
community is welcome to submit issues, but you should not expect an active
response.

## Installation

To install base package with the cache object in your python environment, use
pip with the following command:

```console
pip install git+https://github.com/alleninstitute/abc_atlas_access.git
```

To install the package with all optional dependencies, specifically those needed
to re-run the notebooks, you can use the following command:

```console
pip install "abc_atlas_access[notebooks] @ git+https://github.com/alleninstitute/abc_atlas_access.git"
```

We assume that you already have Jupyter installed if you are re-running the
notebooks. Running the [getting_started notebook](https://alleninstitute.github.io/abc_atlas_access/notebooks/getting_started.html)
will also help you install the package.
26 changes: 17 additions & 9 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,22 +4,15 @@ build-backend = "hatchling.build"

[project]
name = "abc_atlas_access"
version = "0.3.0"
version = "0.4.0"
description = "A package for accessing/processing data from the ABC Atlas"
dependencies = [
"anndata",
"boto3",
"ghp-import",
"matplotlib",
"moto",
"numpy",
"pandas",
"pydantic",
"pytest",
"requests",
"scipy",
"SimpleITK",
"tqdm",
"tqdm"
]
requires-python = ">=3.8"
authors = [
Expand All @@ -31,3 +24,18 @@ classifiers = [
"Development Status :: 4 - Beta",
"Programming Language :: Python"
]

[project.optional-dependencies]
notebooks = [
"matplotlib",
"scipy",
"SimpleITK"
]
jupyter-book = [
"ghp-import",
"jupyter-book"
]
test = [
"moto",
"pytest"
]
9 changes: 0 additions & 9 deletions requirements.txt

This file was deleted.

Loading