From d78df6feaf549b4e895e2ad735719f9e53cefb6b Mon Sep 17 00:00:00 2001 From: Max Rakitin Date: Thu, 15 Feb 2024 01:25:02 -0500 Subject: [PATCH] Make it work with `act` act -W .github/workflows/ci.yml -j checks --matrix python-version:3.11 NOTE: Python 3.12 build fails on a datetime/TZ issue. | OpenBLAS WARNING - could not determine the L2 cache size on this system, assuming 256k | ImportError while loading conftest '/Users/mrakitin/src/NSLS-II/SRX/srx-caproto-iocs/tests/conftest.py'. | tests/conftest.py:13: in | from srx_caproto_iocs.base import OphydDeviceWithCaprotoIOC | /opt/hostedtoolcache/Python/3.12.2/x64/lib/python3.12/site-packages/srx_caproto_iocs/base.py:11: in | from caproto import ChannelType | /opt/hostedtoolcache/Python/3.12.2/x64/lib/python3.12/site-packages/caproto/__init__.py:2: in | from ._utils import * | /opt/hostedtoolcache/Python/3.12.2/x64/lib/python3.12/site-packages/caproto/_utils.py:29: in | from ._dbr import SubscriptionType | /opt/hostedtoolcache/Python/3.12.2/x64/lib/python3.12/site-packages/caproto/_dbr.py:17: in | from ._constants import (EPICS2UNIX_EPOCH, EPICS_EPOCH, MAX_ENUM_STATES, | /opt/hostedtoolcache/Python/3.12.2/x64/lib/python3.12/site-packages/caproto/_constants.py:11: in | EPICS_EPOCH = datetime.datetime.utcfromtimestamp(EPICS2UNIX_EPOCH) | E DeprecationWarning: datetime.datetime.utcfromtimestamp() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.fromtimestamp(timestamp, datetime.UTC). --- pyproject.toml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index e204d7c..0e41821 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -31,7 +31,7 @@ classifiers = [ ] dynamic = ["version"] dependencies = [ - "caproto[complete]", + "caproto", "h5py", "numpy", "ophyd", @@ -40,6 +40,7 @@ dependencies = [ [project.optional-dependencies] test = [ + "netifaces", "pytest >=6", "pytest-cov >=3", ]