Skip to content

Commit

Permalink
init
Browse files Browse the repository at this point in the history
  • Loading branch information
scivision committed Jul 12, 2018
1 parent 5519943 commit 22f9a8d
Show file tree
Hide file tree
Showing 4 changed files with 108 additions and 3 deletions.
1 change: 1 addition & 0 deletions .gitignore
@@ -1,3 +1,4 @@
.mypy_cache/
.pytest_cache/
baseIRI2016
testiri2016
Expand Down
4 changes: 1 addition & 3 deletions .travis.yml
Expand Up @@ -19,9 +19,6 @@ addons:
packages:
- gfortran

install:
- pip install -e .[tests]

install: pip install -e .[tests]

script:
Expand All @@ -34,3 +31,4 @@ after_success:
pytest --cov;
coveralls;
fi

84 changes: 84 additions & 0 deletions setup.cfg
@@ -0,0 +1,84 @@
[metadata]
name = pyiri2016
version = 1.5.0
author =
Michael Hirsch, Ph.D.
Ronald Ilma
url = https://github.com/scivision/pyIRI2016
description = IRI2016 International Reference Ionosphere from Python
keywords =
thermosphere
ionosphere
classifiers =
Development Status :: 5 - Production/Stable
Environment :: Console
Intended Audience :: Science/Research
License :: OSI Approved :: MIT License
Operating System :: OS Independent
Programming Language :: Fortran
Programming Language :: Python :: 3.6
Programming Language :: Python :: 3.7
Topic :: Scientific/Engineering :: Atmospheric Science
license_file = LICENSE
long_description = file: README.md
long_description_content_type = text/markdown

[options]
python_requires = >= 3.6
setup_requires =
setuptools >= 38.6
pip >= 10
twine >= 1.11
include_package_data = True
packages = find:
install_requires =
python-dateutil
numpy
xarray

[options.extras_require]
tests =
pytest
pytest-cov
coveralls
flake8
mypy
plot =
matplotlib
seaborn
scipy
timeutil
pyigrf12
cartopy
pyapex

[options.entry_points]
console_scripts =
IRIaltitudeProfile = AltitudeProfile:main
IRItimeProfile = TimeProfile:main
IRIlatitudeProfile = LatitudeProfile:main

[flake8]
max-line-length = 132
exclude = .git,__pycache__,.eggs/,doc/,docs/,build/,dist/,archive/

[coverage:run]
cover_pylib = false
omit =
/home/travis/virtualenv/*
*/site-packages/*
*/bin/*

[coverage:report]
exclude_lines =
pragma: no cover
def __repr__
RuntimeError
NotImplementedError
ImportError
KeyError
FileNotFoundError
CalledProcessError
logging.warning
ValueError
TypeError
22 changes: 22 additions & 0 deletions tests/test_scripts.py
@@ -0,0 +1,22 @@
#!/usr/bin/env python
import pytest
import subprocess
from pathlib import Path

root = Path(__file__).parents[1]


def test_latitude():
subprocess.check_call(['IRIlatitudeProfile', '-148'])


def test_time():
subprocess.check_call(['IRItimeProfile', '65', '-148'])


def test_alt():
subprocess.check_call(['IRIaltitudeProfile', '65', '-148'])


if __name__ == '__main__':
pytest.main()

0 comments on commit 22f9a8d

Please sign in to comment.