-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
110 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -50,7 +50,7 @@ jobs: | |
- uses: actions/checkout@v3 | ||
|
||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v2 | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
|
||
|
@@ -74,10 +74,12 @@ jobs: | |
- uses: actions/checkout@v3 | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v2 | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: "3.9" | ||
|
||
- name: Build wheels | ||
uses: pypa/[email protected].1 | ||
uses: pypa/[email protected].2 | ||
env: | ||
CIBW_BUILD: ${{ matrix.cibw_build }} | ||
CIBW_SKIP: ${{ matrix.cibw_skip }} | ||
|
@@ -95,7 +97,9 @@ jobs: | |
- uses: actions/checkout@v3 | ||
|
||
- name: Setup Python | ||
uses: actions/setup-python@v2 | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: "3.9" | ||
|
||
- name: Install dependencies | ||
run: python -m pip install twine build | ||
|
@@ -115,15 +119,17 @@ jobs: | |
needs: [build_wheels, build_sdist] | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/setup-python@v2 | ||
- uses: actions/setup-python@v4 | ||
with: | ||
python-version: "3.9" | ||
|
||
- uses: actions/download-artifact@v2 | ||
with: | ||
name: artifact | ||
path: dist | ||
|
||
- name: Publish distribution to PyPI | ||
uses: pypa/gh-action-pypi-publish@master | ||
uses: pypa/gh-action-pypi-publish@release/v1 | ||
with: | ||
user: __token__ | ||
password: ${{ secrets.PYPI_API_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,11 @@ | ||
from prospr_core import Protein, depth_first, depth_first_bnb | ||
from prospr_core import AminoAcid, Protein, depth_first, depth_first_bnb | ||
from .datasets import load_vanEck250, load_vanEck1000 | ||
|
||
__all__ = ["Protein", "depth_first", "depth_first_bnb"] | ||
__all__ = [ | ||
"AminoAcid", | ||
"Protein", | ||
"depth_first", | ||
"depth_first_bnb", | ||
"load_vanEck250", | ||
"load_vanEck1000", | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,4 +13,4 @@ build-backend = "setuptools.build_meta" | |
line-length = 79 | ||
|
||
[tool.pytest] | ||
minversion = 6.2 | ||
minversion = 7.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
#!/usr/bin/env python3 | ||
""" | ||
File: test_depth_first.py | ||
Description: This file contains the pytest tests for loading data from the | ||
datasets. | ||
License: This file is licensed under the GNU LGPL V3 license by | ||
Okke van Eck (2020 - 2022). See the LICENSE file for the | ||
specifics. | ||
""" | ||
|
||
from prospr import load_vanEck250, load_vanEck1000 | ||
|
||
|
||
class TestDatasets: | ||
def test_vanEck250(self): | ||
""" | ||
Test loading data from vanEck250 works. | ||
""" | ||
l10 = load_vanEck250() | ||
l10_2 = load_vanEck250(10) | ||
l20 = load_vanEck250(20) | ||
l30 = load_vanEck250(30) | ||
l40 = load_vanEck250(40) | ||
l50 = load_vanEck250(50) | ||
l60 = load_vanEck250(60) | ||
l70 = load_vanEck250(70) | ||
l80 = load_vanEck250(80) | ||
l90 = load_vanEck250(90) | ||
l100 = load_vanEck250(100) | ||
|
||
assert not l10.empty | ||
assert not l10_2.empty | ||
assert not l20.empty | ||
assert not l30.empty | ||
assert not l40.empty | ||
assert not l50.empty | ||
assert not l60.empty | ||
assert not l70.empty | ||
assert not l80.empty | ||
assert not l90.empty | ||
assert not l100.empty | ||
|
||
def test_vanEck1000(self): | ||
""" | ||
Test loading data from vanEck1000 works. | ||
""" | ||
l10 = load_vanEck1000() | ||
l10_2 = load_vanEck1000(10) | ||
l20 = load_vanEck1000(20) | ||
l30 = load_vanEck1000(30) | ||
l40 = load_vanEck1000(40) | ||
l50 = load_vanEck1000(50) | ||
l60 = load_vanEck1000(60) | ||
l70 = load_vanEck1000(70) | ||
l80 = load_vanEck1000(80) | ||
l90 = load_vanEck1000(90) | ||
l100 = load_vanEck1000(100) | ||
|
||
assert not l10.empty | ||
assert not l10_2.empty | ||
assert not l20.empty | ||
assert not l30.empty | ||
assert not l40.empty | ||
assert not l50.empty | ||
assert not l60.empty | ||
assert not l70.empty | ||
assert not l80.empty | ||
assert not l90.empty | ||
assert not l100.empty |