Skip to content

Commit

Permalink
Merge pull request #27 from nleroy917/dev
Browse files Browse the repository at this point in the history
Add release workflow
  • Loading branch information
nleroy917 authored Jan 23, 2022
2 parents 755eda9 + 1cd469b commit 52d871e
Show file tree
Hide file tree
Showing 4 changed files with 39 additions and 2 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Publish Python 🐍 distributions 📦 to PyPI and TestPyPI

on:
release:
types: [created]

jobs:
build-n-publish:
name: Build and publish Python 🐍 distributions 📦 to PyPI and TestPyPI
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@master

- name: Set up Python
uses: actions/setup-python@v2
working-directory: sdk
with:
python-version: 3.x

- name: Install dependencies
working-directory: sdk
run: |
python -m pip install --upgrade pip
pip install setuptools wheel twine
- name: Build and publish
working-directory: sdk
env:
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
run: |
python setup.py sdist bdist_wheel
twine upload dist/*
2 changes: 2 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
name: Run tests

on:
pull_request:
push:
Expand Down
2 changes: 1 addition & 1 deletion sdk/optipyzer/const.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
VERSION = "0.1.0"
VERSION = "0.3.2"
LICENSE = "Apache 2.0"

SLEEP_MIN = 0.2 # Enforce minimum wait time between API calls (seconds)
Expand Down
3 changes: 2 additions & 1 deletion sdk/setup.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import setuptools
from optipyzer.const import VERSION

# create long desc.
with open("README.md", "r") as fh:
Expand All @@ -11,7 +12,7 @@

setuptools.setup(
name='optipyzer',
version=0.24,
version=VERSION,
description='Codon optimize DNA and Protein sequences for multiple species.',
long_description=long_description,
long_description_content_type='text/markdown',
Expand Down

1 comment on commit 52d871e

@vercel
Copy link

@vercel vercel bot commented on 52d871e Jan 23, 2022

Choose a reason for hiding this comment

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

Please sign in to comment.