Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
62 changes: 62 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
name: Release to PyPI
on:
release:
types: [published]

jobs:
build-wheels:
name: Build wheels - ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]

steps:
- uses: actions/checkout@v4

- name: Build wheels
uses: PyO3/maturin-action@v1
with:
args: --release --out dist

- name: Upload wheels
uses: actions/upload-artifact@v4
with:
name: wheels-${{ matrix.os }}
path: dist

build-sdist:
name: Build source distribution
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Build sdist
uses: PyO3/maturin-action@v1
with:
command: sdist
args: --out dist

- name: Upload sdist
uses: actions/upload-artifact@v4
with:
name: wheels-sdist
path: dist

publish:
name: Publish to PyPI
needs: [build-wheels, build-sdist]
runs-on: ubuntu-latest

steps:
- name: Download artifacts
uses: actions/download-artifact@v4
with:
pattern: wheels-*
merge-multiple: true
path: dist

- name: Publish to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.PYPI_API_TOKEN }}
2 changes: 0 additions & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,6 @@ jobs:
test-file: pepmatch/tests/test_best_match.py
- name: Discontinuous Epitope
test-file: pepmatch/tests/test_discontinuous_search.py
- name: Parallel
test-file: pepmatch/tests/test_parallel_match.py
- name: Output
test-file: pepmatch/tests/test_output.py

Expand Down
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ notebooks/
old_code/
pepmatch.egg-info/
pepmatch/__pycache__
pepmatch/rs-engine/target/
proteomes/*.pdb
proteomes/*.phr
proteomes/*.pin
Expand All @@ -31,4 +32,4 @@ test.csv
wheelhouse/

# keep test data
!pepmatch/tests/data/
!pepmatch/tests/data/
4 changes: 1 addition & 3 deletions pepmatch/__init__.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
from .preprocessor import Preprocessor
from .matcher import Matcher
from .parallel_match import ParallelMatcher
from .benchmarker import Benchmarker

from .version import __version__

__all__ = ['Preprocessor', 'Matcher', 'ParallelMatcher', 'Benchmarker', '__version__']
__all__ = ['Preprocessor', 'Matcher', '__version__']
57 changes: 0 additions & 57 deletions pepmatch/benchmarker.py

This file was deleted.

43 changes: 0 additions & 43 deletions pepmatch/hamming.c

This file was deleted.

123 changes: 0 additions & 123 deletions pepmatch/helpers.py

This file was deleted.

Loading
Loading