Skip to content

Commit

Permalink
Merge pull request #34 from theislab/make_installable
Browse files Browse the repository at this point in the history
make installable
  • Loading branch information
timtreis authored Oct 2, 2024
2 parents 61e8e9c + c0165d2 commit 9dc609a
Show file tree
Hide file tree
Showing 13 changed files with 18 additions and 1 deletion.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ maintainers = [
authors = [
{ name = "Tim Treis" },
]
requires-python = ">=3.10"
requires-python = ">=3.9"
classifiers = [
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.10",
Expand Down
12 changes: 12 additions & 0 deletions src/spatialdata_db/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
from importlib.metadata import version
from importlib import resources
import pandas as pd


def load_10x_metadata():
with resources.open_text("spatialdata_db.utils.data", "10x_datasets.csv") as file:
return pd.read_csv(file, sep=";")


__all__ = ["load_10x_metadata"]
__version__ = version("spatialdata-db")
Empty file.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
5 changes: 5 additions & 0 deletions tests/test_basic.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import spatialdata_db


def test_package_has_version():
assert spatialdata_db.__version__ is not None
Binary file removed utils/scripts/geckodriver
Binary file not shown.

0 comments on commit 9dc609a

Please sign in to comment.