From 65b5ac4c89e40e17740f4a9d265d7e5c0275c1eb Mon Sep 17 00:00:00 2001 From: Talmo Pereira Date: Fri, 5 Apr 2024 19:08:28 -0700 Subject: [PATCH] Fix importing in Python 3.7 (#75) * Fix imports in python 3.7 * Bump version * Try to fix CI * Try to fix again --- .github/workflows/ci.yml | 8 +++++++- sleap_io/__init__.py | 2 +- sleap_io/io/jabs.py | 2 ++ 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 34486f7b..f3bc1724 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -17,7 +17,6 @@ on: - "tests/**" - ".github/workflows/ci.yml" - "environment.yml" - - "setup.cfg" jobs: # Lint with black and docstring check with pydocstyle @@ -89,6 +88,13 @@ jobs: micromamba list pip freeze + - name: Install graphics dependencies on Ubuntu + # https://github.com/conda-forge/opencv-feedstock/issues/401 + if: ${{ startsWith(matrix.os, 'ubuntu') }} + shell: bash -l {0} + run: | + sudo apt-get update && sudo apt-get install libglapi-mesa libegl-mesa0 libegl1 libopengl0 libgl1-mesa-glx + - name: Test with pytest if: ${{ !(startsWith(matrix.os, 'ubuntu') && matrix.python == 3.9) }} shell: bash -l {0} diff --git a/sleap_io/__init__.py b/sleap_io/__init__.py index 147a2dcc..b7f19663 100644 --- a/sleap_io/__init__.py +++ b/sleap_io/__init__.py @@ -2,7 +2,7 @@ # Define package version. # This is read dynamically by setuptools in pyproject.toml to determine the release version. -__version__ = "0.0.13" +__version__ = "0.0.14" from sleap_io.model.skeleton import Node, Edge, Skeleton, Symmetry from sleap_io.model.video import Video diff --git a/sleap_io/io/jabs.py b/sleap_io/io/jabs.py index 12515ef5..0237a746 100644 --- a/sleap_io/io/jabs.py +++ b/sleap_io/io/jabs.py @@ -1,5 +1,7 @@ """This module handles direct I/O operations for working with JABS files.""" +from __future__ import annotations + import h5py import re import os