Skip to content

Commit a8336dd

Browse files
authored
Merge pull request #51 from lldelisle/fix_importlib_metadata
Release 17.2: Compatibility with 3.7
2 parents de98af2 + d600c10 commit a8336dd

File tree

5 files changed

+11
-7
lines changed

5 files changed

+11
-7
lines changed

.github/workflows/test.yml

+1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ jobs:
1212
strategy:
1313
matrix:
1414
python-version:
15+
- "3.7"
1516
- "3.8"
1617
- "3.9"
1718
- "3.10"

HiCMatrix_env_ci.yml

+1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ dependencies:
77
- scipy >= 1.2
88
- pandas >= 0.25
99
- pytables >= 3.5
10+
- c-blosc2<=2.14.1 # Temp fix see https://github.com/Blosc/c-blosc2/issues/601
1011
- cooler >= 0.8.9
1112
- intervaltree >= 3.0
1213
- pytest

hicmatrix/lib/cool.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,10 @@
22
import os
33

44
import gc
5-
from importlib.metadata import version
5+
try:
6+
from importlib.metadata import version
7+
except ImportError:
8+
from importlib_metadata import version
69

710
import cooler
811
import h5py

pyproject.toml

+4-3
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@ build-backend = "setuptools.build_meta"
44

55
[project]
66
name = "HiCMatrix"
7-
version = "17.1"
7+
version = "17.2"
88
authors = [
99
{ name = "Lucille Lopez-Delisle, Joachim Wolff, Leily Rabbani, Vivek Bhardwaj, Fidel Ramirez", email = "[email protected]" },
1010
]
1111
description = "Helper package which implements HiCMatrix class for HiCExplorer, pyGenomeTracks and scHiCExplorer."
1212
readme = "README.rst"
13-
requires-python = ">=3.8"
13+
requires-python = ">=3.7"
1414
classifiers = [
1515
'Intended Audience :: Science/Research',
1616
'Topic :: Scientific/Engineering :: Bio-Informatics',
@@ -21,7 +21,8 @@ dependencies = [
2121
"tables >= 3.5",
2222
"pandas >= 0.25",
2323
"cooler >= 0.8.9",
24-
"intervaltree >= 3.0"
24+
"intervaltree >= 3.0",
25+
"importlib_metadata; python_version<'3.8'"
2526
]
2627

2728
[project.urls]

pytest.ini

+1-3
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,4 @@ filterwarnings =
33
ignore::UserWarning
44
ignore::FutureWarning
55
ignore::DeprecationWarning
6-
ignore::ImportWarning
7-
ignore::tables.exceptions.FlavorWarning
8-
; error::ResourceWarning
6+
ignore::ImportWarning

0 commit comments

Comments
 (0)