Skip to content

Commit

Permalink
Merge pull request mammothbio-os#11 from mbiokyle29/push-to-pypi
Browse files Browse the repository at this point in the history
Push to pypi
  • Loading branch information
mbiokyle29 authored Mar 26, 2024
2 parents f272882 + e6770e1 commit d291fec
Show file tree
Hide file tree
Showing 6 changed files with 89 additions and 30 deletions.
4 changes: 2 additions & 2 deletions .bumpversion.cfg
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[bumpversion]
current_version = 0.0.1
current_version = 0.0.2
commit = True
tag = True
tag = False

[bumpversion:file:setup.py]

Expand Down
25 changes: 0 additions & 25 deletions .github/workflows/merge.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,28 +18,3 @@ jobs:
build:
needs: [test, lint, docs]
uses: ./.github/workflows/build.yaml

test-release:
name: publish to test pypi
needs: build
runs-on: ubuntu-latest
if: ${{ github.repository == 'mammothbio-os/palamedes' }}

environment:
name: test-release
url: https://test.pypi.org/p/palamedes

permissions:
id-token: write

steps:
- name: download build
uses: actions/download-artifact@v3
with:
name: python-package-distributions
path: dist/

- name: publish
uses: pypa/gh-action-pypi-publish@release/v1
with:
repository-url: https://test.pypi.org/legacy/
84 changes: 84 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
name: release

on:
push:
tags:
- "*"

jobs:
build:
if: ${{ github.repository == 'mammothbio-os/palamedes' }}
uses: ./.github/workflows/build.yaml

test-release:
name: publish to test pypi
needs: build
runs-on: ubuntu-latest

environment:
name: test-release
url: https://test.pypi.org/p/palamedes

permissions:
id-token: write

steps:
- name: download build
uses: actions/download-artifact@v3
with:
name: python-package-distributions
path: dist/

- name: publish
uses: pypa/gh-action-pypi-publish@release/v1
with:
repository-url: https://test.pypi.org/legacy/

release:
needs: test-release
environment: release
runs-on: ubuntu-latest
permissions:
id-token: write

steps:
- name: download build
uses: actions/download-artifact@v3
with:
name: python-package-distributions
path: dist/

- name: publish
uses: pypa/gh-action-pypi-publish@release/v1

release-github:
needs: release
runs-on: ubuntu-latest

permissions:
contents: write
id-token: write

steps:
- name: download build
uses: actions/download-artifact@v3
with:
name: python-package-distributions
path: dist/

- name: sign
uses: sigstore/[email protected]
with:
inputs: >-
./dist/*.tar.gz
./dist/*.whl
- name: create release
env:
GITHUB_TOKEN: ${{ github.token }}
run: gh release create '${{ github.ref_name }}' --repo '${{ github.repository }}' --notes ""

- name: upload release artifacts
env:
GITHUB_TOKEN: ${{ github.token }}
run: gh release upload '${{ github.ref_name }}' dist/** --repo '${{ github.repository }}'
2 changes: 1 addition & 1 deletion palamedes/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
from palamedes.hgvs.builders import BUILDER_CONFIG


__version__ = "0.0.1"
__version__ = "0.0.2"


def generate_hgvs_variants(
Expand Down
2 changes: 1 addition & 1 deletion requirements_dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ pytest-cov~=2.11.1
pytest~=6.2.1
ipdb~=0.13.4
sphinx~=7.2.6
bumpversion~=0.6.0
sphinx-rtd-theme~=2.0.0
myst-parser~=2.0.0
bump-my-version~=0.19.3
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from setuptools import find_packages, setup

version = "0.0.1"
version = "0.0.2"

setup(
name="palamedes",
Expand Down

0 comments on commit d291fec

Please sign in to comment.