Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
76 additions
and
58 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
languages: | ||
python: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,38 +1,26 @@ | ||
language: generic | ||
language: python | ||
fast_finish: true | ||
|
||
os: | ||
- linux | ||
- osx | ||
python: | ||
- 3.6 | ||
|
||
os: linux | ||
|
||
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 | ||
before_install: | ||
- pip -q install coveralls | ||
|
||
install: | ||
- python setup.py develop | ||
install: pip install -e . | ||
|
||
script: coverage run tests/test.py -v | ||
|
||
after_success: coveralls | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
[build-system] | ||
requires = ["setuptools", "wheel", | ||
'python-dateutil','pytz','numpy','astropy','sciencedates', | ||
'scipy','matplotlib','seaborn', | ||
"nose"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,25 @@ | ||
#!/usr/bin/env python | ||
req = ['nose','python-dateutil','pytz','numpy','astropy','scipy','matplotlib'] | ||
pipreq = ['sciencedates'] | ||
|
||
import pip | ||
try: | ||
import conda.cli | ||
conda.cli.main('install',*req) | ||
except Exception as e: | ||
pip.main(['install'] + req) | ||
pip.main(['install'] + pipreq) | ||
req = ['nose','python-dateutil','pytz','numpy','astropy','sciencedates'] | ||
# %% | ||
from setuptools import setup | ||
from setuptools import setup, find_packages | ||
|
||
setup(name='dascutils', | ||
packages=['dascutils'], | ||
packages=find_packages(), | ||
author='Michael Hirsch, Ph.D.', | ||
url='https://github.com/scivision/dascutils', | ||
description='Utilities for UAF Digital All-Sky Camera: reading and plotting', | ||
version = '0.5', | ||
classifiers=[ 'Intended Audience :: Science/Research', | ||
version = '0.5.0', | ||
classifiers=[ | ||
'Intended Audience :: Science/Research', | ||
'Development Status :: 4 - Beta', | ||
'License :: OSI Approved :: MIT License', | ||
'Topic :: Scientific/Engineering :: Atmospheric Science', | ||
'Programming Language :: Python :: 3.6', | ||
'Programming Language :: Python :: 3', | ||
], | ||
extras_requires={'themisasi':['themisasi']}, | ||
install_requires=req+pipreq, | ||
extras_require={'io':['themisasi'], | ||
'plot':['scipy','matplotlib'],}, | ||
install_requires=req, | ||
python_requires='>=3.6', | ||
) | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,14 @@ | ||
#!/usr/bin/env python | ||
|
||
from pathlib import Path | ||
import numpy.testing as npt | ||
# | ||
from dascutils.readDASCfits import readallDasc | ||
# | ||
fn = 'tests/PKR_DASC_0428_20151007_082305.930.FITS' | ||
rdir = Path(__file__).parents[0] | ||
|
||
def test_readdasc(): | ||
imgs = readallDasc(rdir,None,None,[428],None) | ||
|
||
if __name__ == '__main__': | ||
npt.run_module_suite() |