Skip to content

Commit

Permalink
Fix importing in Python 3.7 (#75)
Browse files Browse the repository at this point in the history
* Fix imports in python 3.7

* Bump version

* Try to fix CI

* Try to fix again
  • Loading branch information
talmo authored Apr 6, 2024
1 parent a486251 commit 65b5ac4
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
8 changes: 7 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ on:
- "tests/**"
- ".github/workflows/ci.yml"
- "environment.yml"
- "setup.cfg"

jobs:
# Lint with black and docstring check with pydocstyle
Expand Down Expand Up @@ -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}
Expand Down
2 changes: 1 addition & 1 deletion sleap_io/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions sleap_io/io/jabs.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 65b5ac4

Please sign in to comment.