Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Autmoatic pypi deployment #255

Merged
merged 7 commits into from
Sep 7, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 26 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ python:
- "3.7"
# - "3.8" #Errors on Travis, build times out because no output was received...

# Uses cache to build faster
cache: pip

# this ubuntu distribution has sure the libopenmpi-dev packages available
dist: bionic

Expand All @@ -31,8 +34,28 @@ install:


script:
- py.test tests/test_* --cov spotpy --cov-report term-missing -v
- py.test tests/test_* --cov spotpy --cov-report term-missing -v
# - mpirun -c 4 python spotpy/examples/tutorial_parallel_computing_hymod.py 100
- pip uninstall spotpy -y
after_success:
- coveralls

jobs:
include:
- stage: Coveralls
name: Report Coveralls
after_success: python3 -m coveralls

# Publish spotpy on PyPi if taged
deploy:
# If you need to deploy files Travis has built, use the next line
skip_cleanup: true
provider: pypi
distributions: sdist bdist_wheel gztar
on:
# In this case I want to deploy only when a tag is present...
tags: true
# ... and when tag is on master and respects the form "v0.0.0"
branch:
- master
- /v?(\d+\.)?(\d+\.)?(\*|\d+)$/
user: thouska
password : ${deploying}
2 changes: 2 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
author_email = '[email protected]',
url = 'https://spotpy.readthedocs.io/en/latest/',
license = 'MIT',
install_requires=[
'scipy', 'numpy', 'logging'],
packages=find_packages(exclude=["tests*", "docs*"]),
use_2to3 = True,
keywords = 'Monte Carlo, MCMC, MLE, SCE-UA, Simulated Annealing, DE-MCz, DREAM, ROPE, Artifical Bee Colony, DDS, PA-DDS, Uncertainty, Calibration, Model, Signatures',
Expand Down