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 Dec 1, 2017
1 parent 133151a commit 27993d1
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 36 deletions.
30 changes: 7 additions & 23 deletions .travis.yml
@@ -1,37 +1,21 @@
language: generic
language: python
fast_finish: true

python:
- 3.6

os:
- linux
- osx

env:
- TRAVIS_PYTHON_VERSION=3.6
group: edge

notifications:
email: false

git:
depth: 3

before_install:
- if [[ $TRAVIS_OS_NAME == osx ]]; then
wget https://repo.continuum.io/miniconda/Miniconda3-latest-MacOSX-x86_64.sh -O miniconda.sh;
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:
- python setup.py develop
install: pip install -e .[tests]

script: coverage run tests/test.py -v

Expand Down
2 changes: 1 addition & 1 deletion README.rst
Expand Up @@ -20,7 +20,7 @@ Install
=======
::

python setup.py develop
pip install -e .

Examples
========
Expand Down
19 changes: 7 additions & 12 deletions setup.py
@@ -1,21 +1,16 @@
#!/usr/bin/env python
req = ['nose','sympy','scikit-image','astropy','matplotlib','h5py',]
pipreq = ['photutils']

import pip
try:
import conda.cli
conda.cli.main('install',*req)
except Exception:
pip.main(['install'] + req)
pip.main(['install'] +pipreq)
# %%
install_requires = ['sympy','scikit-image','astropy','matplotlib','h5py',
'photutils']
tests_require=['nose','coveralls']
from setuptools import setup

setup(name='starscale',
packages=['starscale'],
author='Michael Hirsch, Ph.D.',
url = 'https://www.github.com/scivision/starscale',
install_requires=req+pipreq,
install_requires=install_requires,
python_requires='>=3.5',
extras_require={'tests':tests_require},
tests_require=tests_require,
)

0 comments on commit 27993d1

Please sign in to comment.