Skip to content

Commit

Permalink
Add dependencies to pyproject.toml and set default version to 0.0.0 i…
Browse files Browse the repository at this point in the history
…n __init__.py
  • Loading branch information
rhoadesScholar committed Mar 5, 2024
1 parent b76593f commit 22206e8
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 7 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# cellmap.data

[![License](https://img.shields.io/pypi/l/cellmap.data.svg?color=green)](https://github.com/rhoadesScholar/cellmap.data/raw/main/LICENSE)
[![License](https://img.shields.io/pypi/l/cellmap.data.svg?color=green)](https://github.com/rhoadesScholar/cellmap.data/main/LICENSE)
[![PyPI](https://img.shields.io/pypi/v/cellmap.data.svg?color=green)](https://pypi.org/project/cellmap.data)
[![Python Version](https://img.shields.io/pypi/pyversions/cellmap.data.svg?color=green)](https://python.org)
[![CI](https://github.com/rhoadesScholar/cellmap.data/actions/workflows/ci.yml/badge.svg)](https://github.com/rhoadesScholar/cellmap.data/actions/workflows/ci.yml)
Expand Down
17 changes: 13 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,13 @@ classifiers = [
"Typing :: Typed",
]
dynamic = ["version"]
dependencies = []
dependencies = [
"tensorstore",
"pydantic",
"torch",
"torchvision",
"numpy",
]

# extras
# https://peps.python.org/pep-0621/#dependencies-optional-dependencies
Expand All @@ -42,6 +48,9 @@ dev = [
"rich",
"ruff",
]
all = [
"cellmap.data[dev,test]",
]

[project.urls]
homepage = "https://github.com/rhoadesScholar/cellmap.data"
Expand Down Expand Up @@ -74,7 +83,7 @@ line-length = 88
target-version = "py38"
src = ["src"]
# https://beta.ruff.rs/docs/rules/
select = [
lint.select = [
"E", # style errors
"W", # style warnings
"F", # flakes
Expand All @@ -91,7 +100,7 @@ select = [
# otherwise, see:
# https://beta.ruff.rs/docs/faq/#does-ruff-support-numpy-or-google-style-docstrings
# https://github.com/charliermarsh/ruff/issues/2606
ignore = [
lint.ignore = [
"D100", # Missing docstring in public module
"D107", # Missing docstring in __init__
"D203", # 1 blank line required before class docstring
Expand All @@ -102,7 +111,7 @@ ignore = [
"D416", # Section name should end with a colon
]

[tool.ruff.per-file-ignores]
[tool.ruff.lint.per-file-ignores]
"tests/*.py" = ["D", "S"]

# https://docs.pytest.org/en/6.2.x/customize.html
Expand Down
10 changes: 8 additions & 2 deletions src/cellmap_data/__init__.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,16 @@
"""Utility for loading CellMap data for machine learning training, utilizing PyTorch, TensorStore, and PyDantic."""
"""
CellMap Data Loading Module.
Utility for loading CellMap data for machine learning training,
utilizing PyTorch, TensorStore, and PyDantic.
"""

from importlib.metadata import PackageNotFoundError, version

try:
__version__ = version("cellmap.data")
except PackageNotFoundError:
__version__ = "uninstalled"
__version__ = "0.0.0"

__author__ = "Jeff Rhoades"
__email__ = "[email protected]"

0 comments on commit 22206e8

Please sign in to comment.