-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #394 from biosustain/pypi_tidyup
Feat: Workflow for releasing new versions of maud and setup.cfg fix
- Loading branch information
Showing
5 changed files
with
52 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
name: Release Maud | ||
|
||
on: | ||
push: | ||
# Sequence of patterns matched against refs/tags | ||
tags: | ||
- 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10 | ||
|
||
jobs: | ||
release: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v1 | ||
- name: Set up Python | ||
uses: actions/setup-python@v1 | ||
with: | ||
python-version: 3.9 | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install setuptools wheel twine | ||
- name: Build package | ||
run: python setup.py sdist bdist_wheel | ||
- name: Publish package | ||
uses: pypa/gh-action-pypi-publish@release/v1 | ||
with: | ||
user: __token__ | ||
password: ${{ secrets.PYPI_API_TOKEN }} | ||
- name: Create GitHub release | ||
uses: actions/create-release@v1 | ||
env: | ||
# This token is set by gh actions | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
tag_name: ${{ github.ref }} | ||
release_name: ${{ github.ref }} | ||
draft: false | ||
prerelease: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,15 @@ | ||
[metadata] | ||
name = maud | ||
name = maud-metabolic-models | ||
url = https://github.com/biosustain/Maud | ||
download_url = https://pypi.org/project/maud/ | ||
download_url = https://pypi.org/project/maud-metabolic-models/ | ||
author = Novo Nordisk Foundation Center for Biosustainability, Technical University of Denmark | ||
author_email = [email protected] | ||
version = 0.3.2 | ||
# Please consult https://pypi.org/classifiers/ for a full list. | ||
version = 0.3.1 | ||
classifiers = | ||
Development Status :: 2 - Pre-Alpha | ||
Intended Audience :: Science/Research | ||
License :: OSI Approved :: GNU General Public License version 3 | ||
License :: OSI Approved :: GNU General Public License v3 (GPLv3) | ||
Natural Language :: English | ||
Operating System :: MacOS :: MacOS X | ||
Operating System :: Microsoft :: Windows :: Windows 10 | ||
|
@@ -36,7 +36,7 @@ install_requires = | |
matplotlib | ||
jinja2 | ||
toml | ||
cmdstanpy@git+https://github.com/stan-dev/cmdstanpy.git@develop | ||
cmdstanpy == 1.0.3 | ||
click | ||
depinfo == 1.7.0 | ||
tqdm | ||
|