Skip to content

Commit e178d8c

Browse files
authored
Merge pull request #562 from DeepRank/557_release_dev_3.0.0_gcroci2
release: merge dev with main for release 3.0.0
2 parents 8b5227f + cc1ff13 commit e178d8c

File tree

121 files changed

+8008
-5774
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

121 files changed

+8008
-5774
lines changed

.bumpversion.cfg

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[bumpversion]
2-
current_version = 2.1.2
2+
current_version = 3.0.0
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

.github/ISSUE_TEMPLATE/bug_report.md

+11-11
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,29 @@
11
---
22
name: Bug report
33
about: Create a report to help us improve
4-
title: 'Bug: <please fill here>'
5-
labels: 'bug'
6-
assignees: ''
7-
4+
title: "Bug: <please fill here>"
5+
labels: "bug"
6+
assignees: ""
87
---
98

109
**Describe the bug**
1110
A clear and concise description of what the bug is.
1211

1312
**Environment:**
13+
1414
- OS system:
1515
- Version:
16-
- Branch commit ID:
16+
- Branch commit ID:
1717
- Inputs:
1818

1919
**To Reproduce**
2020
Steps/commands/screenshots to reproduce the behaviour:
21-
22-
1.
23-
24-
2.
25-
26-
3.
21+
22+
1.
23+
24+
2.
25+
26+
3.
2727

2828
**Expected Results**
2929
A clear and concise description of what you expected to happen.

.github/ISSUE_TEMPLATE/feature_request.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
---
22
name: Feature request
33
about: Suggest an idea for this project
4-
title: 'Add/edit'
5-
labels: 'feature'
6-
assignees: ''
7-
4+
title: "Add/edit"
5+
labels: "feature"
6+
assignees: ""
87
---
98

109
**Is your feature request related to a problem? Please describe.**
@@ -20,7 +19,8 @@ A clear and concise description of any alternative solutions or features you've
2019
Add any other context or screenshots about the feature request here.
2120

2221
**Checks for the developer**
23-
After having implemented the request, please remember to:
22+
After having implemented the request, please remember to:
23+
2424
- [ ] Add all the necessary tests. Make sure that the parameter functionality is well tested, from all points of views.
2525
- [ ] Add the proper documentation to the source code (docstrings).
2626
- [ ] Add the proper documentation to the readme. Examples about how using the new feature should be clear and easy to follow.

.github/actions/install-python-and-package/action.yml

+27-33
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ name: "Install Python and DeepRank2"
33
description: "Installs Python, updates pip and installs DeepRank2 together with its dependencies."
44

55
inputs:
6-
76
python-version:
87
required: false
98
description: "The Python version to use. Specify major and minor version, e.g. '3.10'."
@@ -14,23 +13,29 @@ inputs:
1413
description: "The extras dependencies packages to be installed, for instance 'dev' or 'dev,publishing,notebooks'."
1514
default: "test"
1615

17-
runs:
16+
pkg-installation-type:
17+
required: false
18+
description: "The package installation type to install, the latest released version on PyPI ('latest') or the GitHub repository one ('repository')."
19+
default: "repository"
1820

21+
runs:
1922
using: "composite"
2023

2124
steps:
2225
- name: Cancel Previous Runs and Set up Python
2326
uses: styfle/[email protected]
2427
with:
25-
access_token: ${{ github.token }}
28+
access_token: ${{ github.token }}
2629
- uses: actions/checkout@v3
2730
- name: Setup conda
2831
uses: s-weigand/setup-conda@v1
2932
with:
3033
update-conda: true
3134
python-version: ${{ inputs.python-version }}
32-
conda-channels: anaconda
33-
- run: conda --version
35+
conda-channels: pytorch, pyg, bioconda, defaults, sbl, conda-forge
36+
- run: |
37+
conda --version
38+
conda env list
3439
shell: bash {0}
3540
- name: Python info
3641
shell: bash -e {0}
@@ -43,44 +48,25 @@ runs:
4348
CMAKE_INSTALL_PREFIX: .local
4449
if: runner.os == 'Linux'
4550
run: |
46-
# Install dependencies not handled by setuptools
51+
# Install deeprank2 conda dependencies
4752
## DSSP
48-
sudo apt-get install -y dssp
53+
conda install -c sbl dssp>=4.2.2.1
4954
## MSMS
50-
conda install -c bioconda msms
55+
conda install -c bioconda msms>=2.6.1
5156
## PyTorch, PyG, PyG adds
5257
### Installing for CPU only on the CI
53-
conda install pytorch torchvision torchaudio cpuonly -c pytorch
54-
conda install pyg -c pyg
55-
pip install torch_scatter torch_sparse torch_cluster torch_spline_conv -f https://data.pyg.org/whl/torch-$(python3 -c "import torch; print(torch.__version__)")+cpu.html
58+
conda install pytorch=2.1.1 torchvision=0.16.1 torchaudio=2.1.1 cpuonly=2.0.* -c pytorch
59+
conda install pyg=2.4.0 -c pyg
60+
pip install torch_scatter==2.1.2 torch_sparse==0.6.18 torch_cluster==1.6.3 torch_spline_conv==1.2.2 -f https://data.pyg.org/whl/torch-2.1.0+cpu.html
5661
- name: Install dependencies on MacOS
5762
shell: bash {0}
5863
env:
5964
CMAKE_INSTALL_PREFIX: .local
6065
if: runner.os == 'macOS'
6166
run: |
62-
# Install dependencies not handled by setuptools
67+
# Install dependencies not handled by setuptools
6368
## DSSP
64-
git clone https://github.com/PDB-REDO/libcifpp.git --recurse-submodules
65-
cd libcifpp
66-
cmake -S . -B build -DCMAKE_INSTALL_PREFIX=$HOME/.local -DCMAKE_BUILD_TYPE=Release
67-
cmake --build build
68-
cmake --install build
69-
#######
70-
git clone https://github.com/mhekkel/libmcfp.git
71-
cd libmcfp
72-
mkdir build
73-
cd build
74-
cmake ..
75-
cmake --build .
76-
cmake --install .
77-
#######
78-
git clone https://github.com/PDB-REDO/dssp.git
79-
cd dssp
80-
mkdir build
81-
cmake -S . -B build -DCMAKE_BUILD_TYPE=Release
82-
cmake --build build
83-
cmake --install build
69+
conda install -c sbl dssp>=4.2.2.1
8470
## MSMS
8571
cd /tmp/
8672
wget http://mgltools.scripps.edu/downloads/tars/releases/MSMSRELEASE/REL2.6.1/msms_i86Linux2_2.6.1.tar.gz
@@ -96,6 +82,14 @@ runs:
9682
pip install torch_scatter torch_sparse torch_cluster torch_spline_conv -f https://data.pyg.org/whl/torch-$(python3 -c "import torch; print(torch.__version__)")+cpu.html
9783
# PyTables via conda only for MacOS
9884
conda install pytables
99-
- name: Install the package
85+
- name: Install the GitHub repository version of the package
10086
shell: bash {0}
87+
if: ${{ inputs.pkg-installation-type == 'repository' }}
10188
run: pip install .'[${{ inputs.extras-require }}]'
89+
- name: Install the latest released version of the package
90+
shell: bash {0}
91+
if: ${{ inputs.pkg-installation-type == 'latest' }}
92+
run: |
93+
pip install pytest
94+
rm -r deeprank2
95+
pip install deeprank2
+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: build (latest release)
2+
3+
# Only trigger, when the release workflow succeeded
4+
on:
5+
workflow_run:
6+
workflows: ["Build and upload to PyPI"]
7+
types:
8+
- completed
9+
10+
jobs:
11+
build:
12+
name: Build for (${{ matrix.python-version }}, ${{ matrix.os }})
13+
runs-on: ${{ matrix.os }}
14+
15+
strategy:
16+
fail-fast: false
17+
matrix:
18+
os: ["ubuntu-latest"]
19+
python-version: ["3.10"] # ["3.10", "3.11"]
20+
21+
steps:
22+
- uses: actions/checkout@v3
23+
- uses: ./.github/actions/install-python-and-package
24+
with:
25+
python-version: ${{ matrix.python-version }}
26+
pkg-installation-type: "latest"
27+
- name: Run unit tests
28+
run: pytest -v

.github/workflows/build.yml .github/workflows/build-repo.yml

+4-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: build
1+
name: build (repository package)
22

33
on:
44
push:
@@ -36,15 +36,16 @@ jobs:
3636
strategy:
3737
fail-fast: false
3838
matrix:
39-
os: ['ubuntu-latest']
40-
python-version: ['3.10', '3.11']
39+
os: ["ubuntu-latest"]
40+
python-version: ["3.10"] # ["3.10", "3.11"]
4141

4242
steps:
4343
- uses: actions/checkout@v3
4444
- uses: ./.github/actions/install-python-and-package
4545
with:
4646
python-version: ${{ matrix.python-version }}
4747
extras-require: test, publishing
48+
pkg-installation-type: "repository"
4849
- name: Run unit tests
4950
run: pytest -v
5051
- name: Verify that we can build the package

.github/workflows/cffconvert.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,4 @@ jobs:
1616
- name: Check whether the citation metadata from CITATION.cff is valid
1717
uses: citation-file-format/[email protected]
1818
with:
19-
args: "--validate"
19+
args: "--validate"

.github/workflows/coveralls.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ jobs:
3737
fail-fast: false
3838
matrix:
3939
os: ["ubuntu-latest"]
40-
python-version: ['3.10']
40+
python-version: ["3.10"]
4141

4242
steps:
4343
- uses: actions/checkout@v3
@@ -46,7 +46,7 @@ jobs:
4646
python-version: ${{ matrix.python-version }}
4747
extras-require: test
4848
- name: Run unit tests with coverage
49-
run: pytest --cov --cov-append --cov-report xml --cov-report term --cov-report html
49+
run: pytest --cov --cov-append --cov-report xml --cov-fail-under=80 --cov-report term --cov-report html
5050
- name: Coveralls
5151
env:
5252
GITHUB_TOKEN: ${{ secrets.github_token }}

.github/workflows/draft-pdf.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,4 @@ jobs:
2323
# This is the output path where Pandoc will write the compiled
2424
# PDF. Note, this should be the same directory as the input
2525
# paper.md
26-
path: paper/paper.pdf
26+
path: paper/paper.pdf

.github/workflows/fair-software.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ on:
55
branches:
66
- main
77
pull_request:
8-
types: [opened, synchronize, reopened, ready_for_review]
8+
types: [opened, synchronize, reopened, ready_for_review]
99

1010
jobs:
1111
verify:

.github/workflows/linting.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -37,13 +37,13 @@ jobs:
3737
fail-fast: false
3838
matrix:
3939
os: ["ubuntu-latest"]
40-
python-version: ['3.10']
40+
python-version: ["3.10"]
4141

4242
steps:
4343
- uses: actions/checkout@v3
4444
- uses: ./.github/actions/install-python-and-package
4545
with:
4646
python-version: ${{ matrix.python-version }}
4747
extras-require: test
48-
- name: Check style against standards using prospector
49-
run: prospector --die-on-tool-error
48+
- name: Check style against standards using ruff
49+
run: ruff .

.github/workflows/markdown-link-check.yml

+5-5
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: markdown-link-check
33
on:
44
push:
55
branches:
6-
- main
6+
- main
77
paths:
88
# filetypes
99
- "**.md"
@@ -25,7 +25,7 @@ jobs:
2525
name: Check markdown links
2626
runs-on: ubuntu-latest
2727
steps:
28-
- uses: actions/checkout@v3
29-
- uses: gaurav-nelson/github-action-markdown-link-check@v1
30-
with:
31-
config-file: '.github/workflows/markdown-link-check.yml'
28+
- uses: actions/checkout@v3
29+
- uses: gaurav-nelson/github-action-markdown-link-check@v1
30+
with:
31+
config-file: ".github/workflows/markdown-link-check.yml"

.github/workflows/release.yml

+3-2
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,16 @@ jobs:
1414
strategy:
1515
fail-fast: false
1616
matrix:
17-
os: ['ubuntu-latest']
18-
python-version: ['3.10']
17+
os: ["ubuntu-latest"]
18+
python-version: ["3.10"]
1919

2020
steps:
2121
- uses: actions/checkout@v3
2222
- uses: ./.github/actions/install-python-and-package
2323
with:
2424
python-version: ${{ matrix.python-version }}
2525
extras-require: publishing
26+
pkg-installation-type: "repository"
2627
- name: Build wheel and source distribution
2728
run: python -m build
2829
- uses: actions/upload-artifact@v3

.github/workflows/stale_issue_pr.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,4 @@ jobs:
2121
days-before-pr-close: -1
2222
stale-pr-message: "This PR is stale because it has been open for 14 days with no activity."
2323
close-pr-message: "This PR was closed because it has been inactive for 7 days since being marked as stale."
24-
exempt-issue-labels: 'blocked'
24+
exempt-issue-labels: "blocked"

.prospector.yml

-50
This file was deleted.

.readthedocs.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@ sphinx:
1212
# Explicitly set the version of Python and its requirements
1313
python:
1414
install:
15-
- requirements: docs/requirements.txt
15+
- requirements: docs/requirements.txt

0 commit comments

Comments
 (0)