Skip to content

Commit

Permalink
build: include pipy upload and multiple python versions (#73)
Browse files Browse the repository at this point in the history
* build: setup workflow for windows wheel building

* update residues lists pointer memory allocation

* add workflow build trigger

* build: include pipy upload and multiple python versions

* Update deploy.yml

* Update pyKVFinder version

---------

Co-authored-by: João Victor Guerra <[email protected]>
  • Loading branch information
wapablos and jvsguerra authored Nov 29, 2023
1 parent f14fae1 commit 0855090
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ name: Build and deploy
on:
release:
types: [published]
workflow_dispatch:

jobs:
build_sdist:
Expand Down Expand Up @@ -35,7 +36,7 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-latest, ubuntu-latest]
os: [macos-latest, ubuntu-latest, windows-latest]

steps:
- uses: actions/checkout@v3
Expand Down
4 changes: 3 additions & 1 deletion C/pyKVFinder.c
Original file line number Diff line number Diff line change
Expand Up @@ -2091,7 +2091,8 @@ char **interface(int *cavities, int nx, int ny, int nz, char **pdb,
char **residues;

// Allocate memory for reslist structure
res *reslist[ncav], *new, *old;
res **reslist = malloc(ncav * sizeof(res *));
res *new, *old;

// Initialize linked list
for (i = 0; i < ncav; i++)
Expand Down Expand Up @@ -2155,6 +2156,7 @@ char **interface(int *cavities, int nx, int ny, int nz, char **pdb,
residues[j++] = "-1";
}
residues[j] = NULL;
free(reslist);
return residues;
}

Expand Down
2 changes: 1 addition & 1 deletion pyKVFinder/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"""

__name__ = "pyKVFinder"
__version__ = "0.6.9"
__version__ = "0.6.10"
license = "GNU GPL-3.0 License"

from .utils import *
Expand Down
3 changes: 3 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -96,3 +96,6 @@ before-build = ["brew install gcc@9"]
archs = ["native"]
repair-wheel-command = ""
test-skip = "*-macosx_arm64"

[tool.cibuildwheel.windows]
archs = ["native"]

1 comment on commit 0855090

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Coverage

Coverage Report
FileStmtsMissCoverMissing
pyKVFinder
   grid.py72210785%917, 921, 2242–2262, 2399–2476, 2832–2901
   main.py3576781%93, 97, 105, 114, 142–148, 1051, 1058, 1068, 1079, 1098, 1103–1104, 1330, 1335, 1341, 1348, 1351–1354, 1358–1363, 1375, 1385, 1414–1415, 1420–1421, 1426–1427, 1487–1492, 1498, 1503–1508, 1568, 1570, 1583, 1694, 1696, 1702, 1704, 1710, 1715, 1719, 1772–1782, 1808
   utils.py312698%571, 603, 606–608, 630
TOTAL139118087% 

Please sign in to comment.