Skip to content

Commit

Permalink
packaging
Browse files Browse the repository at this point in the history
  • Loading branch information
nlgranger committed Aug 5, 2023
1 parent 760348c commit f1c8fe0
Show file tree
Hide file tree
Showing 5 changed files with 67 additions and 42 deletions.
54 changes: 54 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
name: Release
run-name: "${{ github.event.head_commit.message }}"
on:
push:
tags: v*

jobs:
build-wheels:
runs-on: {{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]

steps:
- uses: actions/checkout@v3

- name: Build wheels
uses: pypa/cibuildwheel@v2.14.1

- name: Store wheels
uses: actions/upload-artifact@v3
with:
name: dist
path: wheelhouse/*.whl

build-sdist:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Build sdist
run: pipx run build --sdist

- uses: actions/upload-artifact@v3
with:
name: dist
path: dist/*.tar.gz

upload-pypi:
needs: [build-wheels, build-sdist]
runs-on: ubuntu-latest
steps:
- name: Download dist
uses: actions/download-artifact@v3
with:
name: dist
path: dist

- name: Upload to TestPyPi
uses: pypa/gh-action-pypi-publish@release/v1
if: github.event.base_ref != 'refs/heads/master'
with:
password: ${{ secrets.TEST_PYPI_API_TOKEN }}
repository-url: https://test.pypi.org/legacy/
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: Tests
run-name: "${{ github.event.head_commit.message }}"
on: [push]
on: [push, pull_request]
jobs:
check-formatting:
runs-on: ubuntu-latest
Expand Down
2 changes: 2 additions & 0 deletions docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ SeqTools
tutorial
reference
examples
PyPi <https://pypi.org/project/SeqTools>
Repository <https://github.com/nlgranger/SeqTools>


.. testsetup::
Expand Down
10 changes: 10 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,11 @@ PyPi = "https://pypi.org/project/SeqTools"
Documentation = "http://seqtools-doc.readthedocs.io"
Repository = "https://github.com/nlgranger/SeqTools"

[tool.setuptools.packages.find]
include = ["seqtools*"]

[tool.setuptools_scm]

[tool.coverage.run]
source = ["seqtools"]
parallel = true
Expand All @@ -54,3 +59,8 @@ exclude_lines = [
"@abstract",
"logger.warning",
]

[tool.cibuildwheel]
build = "*"
skip = ["*musllinux*", "cp38-*", "pp*"]
archs = ["native"]
41 changes: 0 additions & 41 deletions tests/___test_kill.py

This file was deleted.

0 comments on commit f1c8fe0

Please sign in to comment.