mirror of
https://github.com/tiqi-group/pydase_service_base.git
synced 2025-04-20 00:20:01 +02:00
fix: adds InfluxDBv1Session to default imports of pydase_service_base.database
This commit is contained in:
parent
891faada2f
commit
6a5108ee91
@ -16,6 +16,20 @@ except ImportError:
|
||||
)
|
||||
|
||||
|
||||
try:
|
||||
import influxdb # noqa
|
||||
|
||||
from .influxdbv1_session import InfluxDBv1Session # type: ignore
|
||||
except ImportError:
|
||||
|
||||
class InfluxDBv1Session: # type: ignore
|
||||
def __init__(self) -> None:
|
||||
raise OptionalDependencyError(
|
||||
"InfluxDBSession requires the 'influxdbv2' extra. "
|
||||
"Please refer to https://gitlab.phys.ethz.ch/tiqi-projects/qchub/icon-services/pydase_service_base."
|
||||
)
|
||||
|
||||
|
||||
try:
|
||||
import sqlmodel # noqa
|
||||
|
||||
@ -30,4 +44,4 @@ except ImportError:
|
||||
)
|
||||
|
||||
|
||||
__all__ = ["InfluxDBSession", "PostgresDatabaseSession"]
|
||||
__all__ = ["InfluxDBSession", "InfluxDBv1Session", "PostgresDatabaseSession"]
|
||||
|
@ -1,6 +1,6 @@
|
||||
[tool.poetry]
|
||||
name = "pydase-service-base"
|
||||
version = "0.2.0"
|
||||
version = "0.2.1"
|
||||
description = "Repository storing the code that is common to all pydase services."
|
||||
authors = ["Mose Mueller <mosmuell@ethz.ch>"]
|
||||
license = "MIT"
|
||||
|
Loading…
x
Reference in New Issue
Block a user