Skip to content
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
1 change: 1 addition & 0 deletions dynamicannotationdb/annotation.py
Original file line number Diff line number Diff line change
Expand Up @@ -257,6 +257,7 @@ def insert_annotations(self, table_name: str, annotations: List[dict], user_id=N
that meet the schema
user_id : str, optional
user id to fill in any auto_user_id fields in the schema, by default None
note: if user_id is None, auto_user_id fields will not be filled and will need to be provided in the annotation dicts

Returns
-------
Expand Down
2 changes: 1 addition & 1 deletion dynamicannotationdb/database.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

from sqlalchemy import create_engine, func, inspect, or_
from sqlalchemy.ext.automap import automap_base
from sqlalchemy.ext.declarative.api import DeclarativeMeta
from sqlalchemy.orm import DeclarativeMeta
from sqlalchemy.orm import Session, scoped_session, sessionmaker
from sqlalchemy.orm.exc import NoResultFound
from sqlalchemy.schema import MetaData
Expand Down
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ classifiers = [
requires-python = ">=3.8"
dependencies = [
"marshmallow==3.5.1",
"emannotationschemas>=5.26.0",
"sqlalchemy<1.4",
"emannotationschemas>=5.26.3",
"sqlalchemy>=1.4,<2",
"psycopg2-binary",
"geoalchemy2",
"pytz",
Expand Down
4 changes: 2 additions & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
marshmallow==3.5.1
emannotationschemas>=5.26.0
sqlalchemy<1.4
emannotationschemas>=5.26.3
sqlalchemy>=1.4,<2
psycopg2-binary
geoalchemy2
pytz
Expand Down
2 changes: 1 addition & 1 deletion tests/test_database.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import pytest

from sqlalchemy import Table
from sqlalchemy.ext.declarative.api import DeclarativeMeta
from sqlalchemy.orm import DeclarativeMeta

from emannotationschemas import type_mapping
from dynamicannotationdb.errors import TableAlreadyExists
Expand Down
2 changes: 1 addition & 1 deletion tests/test_schema.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import marshmallow
from emannotationschemas.errors import UnknownAnnotationTypeException
import pytest
from sqlalchemy.ext.declarative.api import DeclarativeMeta
from sqlalchemy.orm import DeclarativeMeta


def test_get_schema(dadb_interface):
Expand Down
8 changes: 4 additions & 4 deletions uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading