From 0a4a055696ebd6c5b2db5ea028a871e664debabf Mon Sep 17 00:00:00 2001 From: Christian Tremblay Date: Sun, 15 Sep 2024 21:39:01 -0400 Subject: [PATCH 1/3] Update pyproject.toml Forgot to bump version in toml --- pyproject.toml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index caeeecb..50d993f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "BAC0" -version = "2024.09.15dev" +version = "2024.09.15" description = "BACnet Scripting Framework for testing DDC Controls" authors = [{name = "Christian Tremblay", email = "christian.tremblay@servisys.com"}] readme = "README.md" @@ -40,4 +40,4 @@ include = [ namespaces = false [tool.pytest.ini_options] -asyncio_default_fixture_loop_scope = "session" \ No newline at end of file +asyncio_default_fixture_loop_scope = "session" From feebd1b137e62181e0b11ffec4bfd1f4fd9796f9 Mon Sep 17 00:00:00 2001 From: Christian Tremblay Date: Sun, 15 Sep 2024 21:42:34 -0400 Subject: [PATCH 2/3] Update pyproject.toml Note to myself...don't forget to bump version next time --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 50d993f..07101d6 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "BAC0" -version = "2024.09.15" +version = "2024.09.16" description = "BACnet Scripting Framework for testing DDC Controls" authors = [{name = "Christian Tremblay", email = "christian.tremblay@servisys.com"}] readme = "README.md" From 3b4672f8fef6a076f7721eae7b026a40d81151c0 Mon Sep 17 00:00:00 2001 From: "A. R. S." Date: Tue, 17 Sep 2024 08:09:06 +0200 Subject: [PATCH 3/3] Correctly handle missing pandas. --- BAC0/core/utils/lookfordependency.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/BAC0/core/utils/lookfordependency.py b/BAC0/core/utils/lookfordependency.py index 9bb379b..226fe15 100644 --- a/BAC0/core/utils/lookfordependency.py +++ b/BAC0/core/utils/lookfordependency.py @@ -58,7 +58,8 @@ def influxdb_if_available(): def pandas_if_available() -> tuple[bool, Type, ModuleType, ModuleType]: global _PANDAS if not check_dependencies(["pandas"]): - return None + _PANDAS = False + return (_PANDAS, FakePandas, FakePandas.sql, FakePandas.Timestamp) try: pd = import_module("pandas")