Skip to content

Commit ca9dd46

Browse files
authored
Merge pull request #525 from DeepRank/hotfix_gcroci2
fix: installation bug due to missing domain files
2 parents 9c92130 + 10dc83e commit ca9dd46

File tree

9 files changed

+33
-18
lines changed

9 files changed

+33
-18
lines changed

.bumpversion.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[bumpversion]
2-
current_version = 2.1.0
2+
current_version = 2.1.1
33

44
[comment]
55
comment = The contents of this file cannot be merged with that of setup.cfg until https://github.com/c4urself/bump2version/issues/185 is resolved

CITATION.cff

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,5 +55,5 @@ keywords:
5555
- DeepRank
5656
license: Apache-2.0
5757
commit: 4e8823758ba03f824b4281f5689cb6a335ab2f6c
58-
version: "2.1.0"
58+
version: "2.1.1"
5959
date-released: '2023-09-22'

deeprank2/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "2.1.0"
1+
__version__ = "2.1.1"

pyproject.toml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
44

55
[project]
66
name = "deeprank2"
7-
version = "2.1.0"
7+
version = "2.1.1"
88
description = "DeepRank2 is an open-source deep learning framework for data mining of protein-protein interfaces or single-residue missense variants."
99
readme = "README.md"
1010
requires-python = ">=3.10"
@@ -82,4 +82,11 @@ source = ["deeprank2"]
8282

8383
[tool.setuptools.packages.find]
8484
include = ["deeprank2*"]
85-
exclude = ["tests*"]
85+
exclude = ["tests*", "*tests.*", "*tests"]
86+
87+
[tool.setuptools.package-data]
88+
"*" = [
89+
"*.xlsx",
90+
"*.param",
91+
"*.top",
92+
"*residue-classes"]

tests/__init__.py

Whitespace-only changes.

tests/domain/test_aminoacidlist.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import numpy as np
2+
23
from deeprank2.domain.aminoacidlist import (amino_acids, cysteine, lysine,
34
pyrrolysine, selenocysteine)
45

@@ -16,10 +17,10 @@ def test_all_different_onehot():
1617
if other != amino_acid:
1718
try:
1819
assert not np.all(amino_acid.onehot == other.onehot)
19-
except AssertionError:
20+
except AssertionError as exc:
2021
if other in EXCEPTIONS[0] and amino_acid in EXCEPTIONS[0]:
2122
assert np.all(amino_acid.onehot == other.onehot)
2223
elif other in EXCEPTIONS[1] and amino_acid in EXCEPTIONS[1]:
2324
assert np.all(amino_acid.onehot == other.onehot)
2425
else:
25-
raise AssertionError(f"one-hot index {amino_acid.index} is occupied by both {amino_acid} and {other}")
26+
raise AssertionError(f"one-hot index {amino_acid.index} is occupied by both {amino_acid} and {other}") from exc

tests/molstruct/test_structure.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,18 @@
22
import pickle
33
from multiprocessing.connection import _ForkingPickler
44

5+
from pdb2sql import pdb2sql
6+
57
from deeprank2.molstruct.structure import PDBStructure
68
from deeprank2.utils.buildgraph import get_structure
7-
from pdb2sql import pdb2sql
89

910

1011
def _get_structure(path) -> PDBStructure:
1112
pdb = pdb2sql(path)
1213
try:
1314
structure = get_structure(pdb, "101M")
1415
finally:
15-
pdb._close()
16+
pdb._close() # pylint: disable=protected-access
1617

1718
assert structure is not None
1819

tests/utils/test_exporters.py

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,13 @@
77

88
import h5py
99
import pandas as pd
10-
from deeprank2.utils.exporters import (HDF5OutputExporter,
11-
OutputExporterCollection,
12-
ScatterPlotExporter,
13-
TensorboardBinaryClassificationExporter)
10+
11+
from deeprank2.utils.exporters import (
12+
HDF5OutputExporter,
13+
OutputExporterCollection,
14+
ScatterPlotExporter,
15+
TensorboardBinaryClassificationExporter,
16+
)
1417

1518
logging.getLogger(__name__)
1619

@@ -95,7 +98,7 @@ def test_scatter_plot(self):
9598

9699
assert os.path.isfile(scatterplot_exporter.get_filename(epoch_number))
97100

98-
def test_hdf5_output(self):
101+
def test_hdf5_output(self): # pylint: disable=too-many-locals
99102
output_exporter = HDF5OutputExporter(self._work_dir)
100103
path_output_exporter = os.path.join(self._work_dir, 'output_exporter.hdf5')
101104
entry_names = ["entry1", "entry2", "entry3"]

tests/utils/test_grid.py

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,14 @@
11
import h5py
22
import numpy as np
3-
from deeprank2.query import (ProteinProteinInterfaceAtomicQuery,
4-
ProteinProteinInterfaceResidueQuery)
3+
4+
from deeprank2.query import (
5+
ProteinProteinInterfaceAtomicQuery,
6+
ProteinProteinInterfaceResidueQuery,
7+
)
58
from deeprank2.utils.grid import Grid, GridSettings, MapMethod
69

710

8-
def test_residue_grid_orientation():
11+
def test_residue_grid_orientation(): # pylint: disable=too-many-locals
912

1013
coord_error_margin = 1.0 # Angstrom
1114

@@ -53,7 +56,7 @@ def test_residue_grid_orientation():
5356
assert np.all(np.abs(grid.zs - target_zs) < coord_error_margin), f"\n{grid.zs} != \n{target_zs}"
5457

5558

56-
def test_atomic_grid_orientation():
59+
def test_atomic_grid_orientation(): # pylint: disable=too-many-locals
5760

5861
coord_error_margin = 1.0 # Angstrom
5962

0 commit comments

Comments
 (0)