diff --git a/.travis.yml b/.travis.yml index 2144899a..aa79a230 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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 @@ -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} \ No newline at end of file diff --git a/setup.py b/setup.py index 728f6be6..1c3a7b17 100644 --- a/setup.py +++ b/setup.py @@ -13,6 +13,8 @@ author_email = 'tobias.houska@umwelt.uni-giessen.de', 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',