Skip to content

Commit

Permalink
feat: enable PyPi deployment via Travis CI (#157)
Browse files Browse the repository at this point in the history
  • Loading branch information
Midnighter committed Aug 12, 2017
1 parent bfc3afa commit 1a75249
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 16 deletions.
20 changes: 13 additions & 7 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,17 @@ git:
depth: 1
cache:
- pip: true

addons:
apt:
packages:
- swig
- libxml2-dev
- libglpk-dev
- glpk-utils

branches:
only:
- master
- develop

matrix:
fast_finish: true
include:
Expand All @@ -35,12 +32,21 @@ matrix:
env: TOXENV=py35
- python: 3.6
env: TOXENV=py36

before_install:
- travis_retry pip install -U pip setuptools wheel tox
- travis_retry pip install -U pip setuptools wheel tox
script:
- tox

- tox
deploy:
provider: pypi
distributions: sdist bdist_wheel
on:
repo: opencobra/memote
python: '3.6'
tags: true
user:
secure: MM0+CQ7jYF3TmWM15UfjJANGb1rRLY+GjEro4G/8teSOxyGxR+PzWeViJn86TJsDD+AaYy7/mvq5lF7QN5q4tcxmr9uVVH9iOzZk/HcT0raD3Lk1GcS0h6N6LxG3sz1XqOOa224hp9VK1U/9ryvaiOzZo4KAh/h1uz0QafNWNPCBZ3CfRV1dCw7NI7TAthpCy8mTMYUZko/uGo86wwT1ks005yOeefuG3zqwvJCRnhpqR2Ky+/GwnxW9it+uVOpc7cHPOOQkNxbA1veLzvfaGdg2x3ceRi0kvRfHhKVudwwzxXWfz/HScEmNYLglkwvf/E34N+JfBxpVkjtvFRDopvTbHb98ctJflKvv1I4UnBZSP9sLiJ012OC+4q9YNy78MFrGQhoSC+aTi9K+teLFMxvoiVvlDattjuvXOAxpxaamJd6eLdj3AfpGqOCB0r6X8ixi1/UcCFjTt8oRyFofb5P5tkUGdWjGjRyh9OqQidpNpM5qyOnaQ7Vz4JuPrRl5/LSThdSvRWV8Q3JBUhf383nHc1z+uCZ4T4uLBmfMcKvZErAOEDuJeB/g8vLvG28SfyUTfGTvFeEVm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/CCbPJNhREQvzWdAJlJP9tZYXkTBrGDrFNEEjaCHhUbkCVL5BhndGz4W+guWCXx+gOhQ/imdqVlfXYOnl9/StquhHF7Uc3aYJZ1uzHW1WAm1cyfYjemiORawVgswv1jPtxB4Fa474DPOMCIX6qGeck0CuS/gGn+NlitWdypggTK8PyN+SCH+vS/brJ/+OPpr5lj1UHd9qeI4O8OntZbxZgJH8saCzULVh/FszSusLJ61djlX6tn2fCvNnOxR1FdhaPvR3srKxhAOH2RpLm3kTVFAHf5a28umIRNK79M7KZUEbap+7GlH2dCtb23pVToUngdGc6paZ/RDe8qeZbG4obLbRCnX/VvWNlgHlYo5SMr3vhawmf/ErJDWQbc5ZuhhVRm3L/4g=
15 changes: 8 additions & 7 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,19 @@ memote - the genome-scale metabolic model test suite
.. image:: https://img.shields.io/pypi/v/memote.svg
:target: https://pypi.python.org/pypi/memote

.. image:: https://img.shields.io/travis/biosustain/memote.svg
:target: https://travis-ci.org/biosustain/memote
.. image:: https://img.shields.io/travis/opencobra/memote.svg
:target: https://travis-ci.org/opencobra/memote

.. image:: https://readthedocs.org/projects/memote/badge/?version=latest
:target: https://memote.readthedocs.io/en/latest/?badge=latest
:alt: Documentation Status

.. image:: https://pyup.io/repos/github/biosustain/memote/shield.svg
:target: https://pyup.io/repos/github/biosustain/memote/
.. image:: https://pyup.io/repos/github/opencobra/memote/shield.svg
:target: https://pyup.io/repos/github/opencobra/memote/
:alt: Updates

.. image:: https://codecov.io/gh/biosustain/memote/branch/master/graph/badge.svg
:target: https://codecov.io/gh/biosustain/memote
.. image:: https://codecov.io/gh/opencobra/memote/branch/master/graph/badge.svg
:target: https://codecov.io/gh/opencobra/memote
:alt: Coverage

.. summary-start
Expand Down Expand Up @@ -75,7 +75,8 @@ For comments and questions get in touch via
* our `gitter chatroom <https://gitter.im/opencobra/memote>`_
* or using the `GitHub issues <https://github.com/opencobra/memote/issues>`_.

Are you excited about this project? Consider :ref:`contributing <contributing>`
Are you excited about this project? Consider `contributing
</.github/CONTRIBUTING.rst>`_
by adding novel tests, reporting or fixing bugs, and generally help us make
this a better software for everyone.

Expand Down
2 changes: 1 addition & 1 deletion memote/suite/runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ def new(ctx):
directory = ctx.obj["directory"]
if directory is None:
directory = os.getcwd()
cookiecutter("gh:biosustain/cookiecutter-memote", output_dir=directory)
cookiecutter("gh:opencobra/cookiecutter-memote", output_dir=directory)


@cli.command()
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
long_description=readme + "\n\n" + history,
author="Moritz E. Beber",
author_email="morbeb@biosustain.dtu.dk",
url="https://github.com/biosustain/memote",
url="https://github.com/opencobra/memote",
packages=find_packages(),
include_package_data=True,
setup_requires=setup_requirements,
Expand Down

0 comments on commit 1a75249

Please sign in to comment.