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

make installable #34

Merged
merged 3 commits into from
Oct 2, 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 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.
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.
Loading