Skip to content

Commit

Permalink
Merge pull request #51 from lldelisle/fix_importlib_metadata
Browse files Browse the repository at this point in the history
Release 17.2: Compatibility with 3.7
  • Loading branch information
lldelisle authored Apr 29, 2024
2 parents de98af2 + d600c10 commit a8336dd
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 7 deletions.
1 change: 1 addition & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ jobs:
strategy:
matrix:
python-version:
- "3.7"
- "3.8"
- "3.9"
- "3.10"
Expand Down
1 change: 1 addition & 0 deletions HiCMatrix_env_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ dependencies:
- scipy >= 1.2
- pandas >= 0.25
- pytables >= 3.5
- c-blosc2<=2.14.1 # Temp fix see https://github.com/Blosc/c-blosc2/issues/601
- cooler >= 0.8.9
- intervaltree >= 3.0
- pytest
Expand Down
5 changes: 4 additions & 1 deletion hicmatrix/lib/cool.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,10 @@
import os

import gc
from importlib.metadata import version
try:
from importlib.metadata import version
except ImportError:
from importlib_metadata import version

import cooler
import h5py
Expand Down
7 changes: 4 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@ build-backend = "setuptools.build_meta"

[project]
name = "HiCMatrix"
version = "17.1"
version = "17.2"
authors = [
{ name = "Lucille Lopez-Delisle, Joachim Wolff, Leily Rabbani, Vivek Bhardwaj, Fidel Ramirez", email = "[email protected]" },
]
description = "Helper package which implements HiCMatrix class for HiCExplorer, pyGenomeTracks and scHiCExplorer."
readme = "README.rst"
requires-python = ">=3.8"
requires-python = ">=3.7"
classifiers = [
'Intended Audience :: Science/Research',
'Topic :: Scientific/Engineering :: Bio-Informatics',
Expand All @@ -21,7 +21,8 @@ dependencies = [
"tables >= 3.5",
"pandas >= 0.25",
"cooler >= 0.8.9",
"intervaltree >= 3.0"
"intervaltree >= 3.0",
"importlib_metadata; python_version<'3.8'"
]

[project.urls]
Expand Down
4 changes: 1 addition & 3 deletions pytest.ini
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,4 @@ filterwarnings =
ignore::UserWarning
ignore::FutureWarning
ignore::DeprecationWarning
ignore::ImportWarning
ignore::tables.exceptions.FlavorWarning
; error::ResourceWarning
ignore::ImportWarning

0 comments on commit a8336dd

Please sign in to comment.