Skip to content
This repository has been archived by the owner on Aug 11, 2022. It is now read-only.

Commit

Permalink
template
Browse files Browse the repository at this point in the history
  • Loading branch information
scivision committed Nov 13, 2017
1 parent 909afb7 commit 33c3f41
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 17 deletions.
10 changes: 5 additions & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ dist: trusty
group: edge

env:
- FC=gfortran
- FC=gfortran TRAVIS_PYTHON_VERSION=3

notifications:
email: false

git:
depth: 3

Expand All @@ -37,12 +37,12 @@ before_install:

- conda config --set always_yes yes --set changeps1 no
- conda update -q conda
# - conda create -n test python=$TRAVIS_PYTHON_VERSION
# - source activate test
- conda create -n test python=$TRAVIS_PYTHON_VERSION
- source activate test
- pip -q install coveralls

install:
- python setup.py develop
- pip install -e .

script:
- coverage run tests/test.py -v
Expand Down
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ Installation
============
::

python setup.py develop
pip install -e .

Example
==================
Expand Down
15 changes: 4 additions & 11 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,14 +1,6 @@
#!/usr/bin/env python
req = ['python-dateutil','nose','pytz','numpy','scipy','xarray','h5py','astropy','matplotlib','seaborn','pathlib2']
pipreq=['msise00','gridaurora','glowaurora']
# %%
import pip
try:
import conda.cli
conda.cli.main('install',*req)
except Exception as e:
pip.main(['install'] +req)
pip.main(['install']+pipreq)
req = ['python-dateutil','nose','pytz','numpy','scipy','xarray','h5py','astropy','matplotlib','seaborn',
'msise00','gridaurora','glowaurora']
# %%
from setuptools import setup # enables develop

Expand All @@ -25,5 +17,6 @@
'Topic :: Scientific/Engineering :: Atmospheric Science',
'Programming Language :: Python :: 3',
'Programming Language :: Python',],
install_requires=req+pipreq,
install_requires=req,
python_requires='>=3.6',
)

0 comments on commit 33c3f41

Please sign in to comment.