Skip to content

Commit 42cb684

Browse files
authored
Merge pull request #37 from microBioRust/main [skip ci]
merge changes for pip and crates [skip ci]
2 parents 73cd15c + 929d7c2 commit 42cb684

48 files changed

Lines changed: 363625 additions & 16093 deletions

Some content is hidden

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

.github/workflows/mkdocs_ci.yml

Lines changed: 0 additions & 29 deletions
This file was deleted.

.github/workflows/release.yml

Lines changed: 91 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,91 @@
1+
# This workflow will upload a Python Package to PyPI when a release is created
2+
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python#publishing-to-package-registries
3+
4+
# This workflow uses actions that are not certified by GitHub.
5+
# They are provided by a third-party and are governed by
6+
# separate terms of service, privacy policy, and support
7+
# documentation.
8+
9+
name: Release
10+
11+
on:
12+
push:
13+
tags:
14+
- 'v*'
15+
16+
permissions:
17+
contents: read
18+
19+
jobs:
20+
build:
21+
name: Build wheels
22+
runs-on: ${{ matrix.os }}
23+
strategy:
24+
matrix:
25+
include:
26+
- os: ubuntu-latest
27+
target: x86_64
28+
- os: ubuntu-latest
29+
target: aarch64
30+
- os: macos-latest
31+
target: x86_64
32+
- os: macos-latest
33+
target: aarch64
34+
- os: windows-latest
35+
target: x86_64
36+
steps:
37+
- uses: actions/checkout@v4
38+
- uses: actions/setup-python@v5
39+
with:
40+
python-version: '3.10'
41+
- name: Build wheels
42+
uses: PyO3/maturin-action@v1
43+
with:
44+
target: ${{ matrix.target }}
45+
args: --release --out dist --find-interpreter
46+
sccache: 'true'
47+
manylinux: auto
48+
working-directory: microbiorust-py
49+
- name: Upload wheels
50+
uses: actions/upload-artifact@v4
51+
with:
52+
name: wheels-${{ matrix.os }}-${{ matrix.target }}
53+
path: microbiorust-py/dist
54+
55+
sdist:
56+
name: Build sdist
57+
runs-on: ubuntu-latest
58+
steps:
59+
- uses: actions/checkout@v4
60+
- uses: actions/setup-python@v5
61+
with:
62+
python-version: '3.10'
63+
- name: Build sdist
64+
uses: PyO3/maturin-action@v1
65+
with:
66+
command: sdist
67+
args: --out dist
68+
working-directory: microbiorust-py
69+
- name: Upload sdist
70+
uses: actions/upload-artifact@v4
71+
with:
72+
name: wheels-sdist
73+
path: microbiorust-py/dist
74+
75+
publish:
76+
name: Publish to PyPI
77+
runs-on: ubuntu-latest
78+
needs: [build, sdist]
79+
environment: pypi
80+
permissions:
81+
id-token: write # from Trusted Publishing
82+
steps:
83+
- uses: actions/download-artifact@v4
84+
with:
85+
merge-multiple: true
86+
path: dist
87+
- name: Publish to PyPI
88+
uses: PyO3/maturin-action@v1
89+
with:
90+
command: upload
91+
args: --non-interactive --skip-existing dist/*

Cargo.toml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,7 @@
22
members = [
33
"microBioRust",
44
"heatmap",
5-
"seqmetrics",
6-
"microbiorust-py"]
5+
"seqmetrics"]
76
resolver = "2"
87

98
[profile.dev]

microBioRust/Cargo.toml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "microBioRust"
3-
version = "0.1.2"
3+
version = "0.1.3"
44
edition = "2021"
55
license = "MIT"
66
keywords = ["bioinformatics", "micro", "bio", "genomics", "sequence-analysis"]
@@ -13,8 +13,10 @@ categories = [
1313
"data-structures",
1414
]
1515
readme = "README.md"
16-
exclude = [".git", ".gitignore"]
17-
repository = "https://github.com/LCrossman/microBioRust"
16+
authors = ["Lisa Crossman and microBioRust community"]
17+
exclude = [".git", ".gitignore", ".dribble.example.embl", "tests/data/"]
18+
repository = "https://github.com/microBioRust/microBioRust"
19+
documentation = "https://microbiorust.github.io/docs/"
1820

1921
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
2022
[lints.rust]

0 commit comments

Comments
 (0)