From eecf808db95b4f35dc940e99a18b4c9b794e23dd Mon Sep 17 00:00:00 2001 From: "Michael Hirsch, Ph.D" Date: Tue, 14 Nov 2017 13:10:20 -0500 Subject: [PATCH] travis-template --- .codeclimate.yml | 2 ++ .travis.yml | 38 ++++++++++---------------------------- README.rst | 7 +++++++ pyproject.toml | 6 ++++++ setup.py | 5 +++-- 5 files changed, 28 insertions(+), 30 deletions(-) create mode 100644 .codeclimate.yml create mode 100644 pyproject.toml diff --git a/.codeclimate.yml b/.codeclimate.yml new file mode 100644 index 0000000..d687b7e --- /dev/null +++ b/.codeclimate.yml @@ -0,0 +1,2 @@ +languages: + python: true diff --git a/.travis.yml b/.travis.yml index 832b632..2477076 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,19 +1,19 @@ -language: generic +language: python fast_finish: true +python: + - 3.6 + os: - linux - - osx dist: trusty group: edge -env: - - FC=gfortran TRAVIS_PYTHON_VERSION=3 notifications: email: false - + git: depth: 3 @@ -23,29 +23,11 @@ addons: - gfortran before_install: - - if [[ $TRAVIS_OS_NAME == osx ]]; then - wget https://repo.continuum.io/miniconda/Miniconda3-latest-MacOSX-x86_64.sh -O miniconda.sh; - brew update; - brew install gcc; - else - wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh; - fi - - - bash miniconda.sh -b -p $HOME/miniconda - - export PATH=$HOME/miniconda/bin:$PATH - - hash -r - - - conda config --set always_yes yes --set changeps1 no - - conda update -q conda - - conda create -n test python=$TRAVIS_PYTHON_VERSION - - source activate test - - pip -q install coveralls - -install: - - pip install -e . - -script: - - coverage run tests/test.py -v + - pip -q install coveralls + +install: pip -q install -e . + +script: coverage run tests/test.py -v after_success: coveralls diff --git a/README.rst b/README.rst index aa77507..4565696 100644 --- a/README.rst +++ b/README.rst @@ -1,9 +1,16 @@ .. image:: https://zenodo.org/badge/36744637.svg :target: https://zenodo.org/badge/latestdoi/36744637 + .. image:: https://travis-ci.org/scivision/reesaurora.svg :target: https://travis-ci.org/scivision/reesaurora + .. image:: https://coveralls.io/repos/scivision/reesaurora/badge.svg?branch=master :target: https://coveralls.io/github/scivision/reesaurora?branch=master + +.. image:: https://api.codeclimate.com/v1/badges/fae4ee1dfb20a766ebce/maintainability + :target: https://codeclimate.com/github/scivision/reesaurora/maintainability + :alt: Maintainability + ========== ReesAurora diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..feb5195 --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,6 @@ +[build-system] +requires = ["setuptools", "wheel", +'python-dateutil','nose','pytz','numpy','scipy','xarray', + 'msise00','gridaurora','glowaurora', + 'matplotlib','seaborn', + "nose"] diff --git a/setup.py b/setup.py index 5079dd9..a8f976f 100644 --- a/setup.py +++ b/setup.py @@ -1,8 +1,8 @@ #!/usr/bin/env python -req = ['python-dateutil','nose','pytz','numpy','scipy','xarray','h5py','astropy','matplotlib','seaborn', +req = ['python-dateutil','nose','pytz','numpy','scipy','xarray', 'msise00','gridaurora','glowaurora'] # %% -from setuptools import setup # enables develop +from setuptools import setup setup(name='reesaurora', packages=['reesaurora'], @@ -19,4 +19,5 @@ 'Programming Language :: Python',], install_requires=req, python_requires='>=3.6', + extras_require={'plot':['matplotlib','seaborn'],}, )