Skip to content

Commit

Permalink
use pytest as nose is deprecated; move docs requirements to setup.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Alan D. Snow committed Mar 8, 2017
1 parent 9fbf7a1 commit f42a78b
Show file tree
Hide file tree
Showing 9 changed files with 495 additions and 502 deletions.
7 changes: 4 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,9 @@ before_install:
# Install required python packages
#-----------------------------------------------------------------------------
- conda config --add channels conda-forge
- conda install --yes cmake gdal future netcdf4 nose numpy pandas pyproj pytz requests rtree scipy shapely
- pip install coveralls nose-cov
- conda install --yes cmake gdal future netcdf4 numpy pandas pyproj pytz requests rtree scipy shapely
- conda install --yes pytest-cov
- pip install coveralls
- source deactivate rapid

#-------------------------------------------------------------------------------
Expand Down Expand Up @@ -109,7 +110,7 @@ install:
#*******************************************************************************
- cd $TRAVIS_BUILD_DIR/tests
script:
- nosetests --with-cov --cov-report term-missing --cov RAPIDpy
- py.test --cov-report term-missing --cov=RAPIDpy
##ADD Coveralls stats for code coverage
after_success:
- coveralls
7 changes: 4 additions & 3 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,9 @@ install:
- activate rapid
# Install required python packages
- conda config --add channels conda-forge
- conda install --yes cmake gdal future netcdf4 nose numpy pandas pyproj pytz requests rtree scipy shapely
- pip install coveralls nose-cov
- conda install --yes cmake gdal future netcdf4 numpy pandas pyproj pytz requests rtree scipy shapely
- conda install --yes pytest-cov
- pip install coveralls
- deactivate rapid
#install cygwin
- '%CYG_ROOT%\setup-x86_64.exe -qnNdO -R "%CYG_ROOT%" -s "%CYG_MIRROR%" -l "%CYG_CACHE%" -P gcc-core,gcc-g++,gcc-fortran,gdb,git,make,time,wget,gdal,libgdal-devel,openmpi > NULL'
Expand All @@ -47,6 +48,6 @@ install:
build: false

test_script:
- "nosetests --with-cov --cov-report term-missing --cov RAPIDpy"
- py.test --cov-report term-missing --cov=RAPIDpy
on_success:
- 'coveralls'
4 changes: 0 additions & 4 deletions conda-env.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@ channels:
- defaults
dependencies:
- python=2
- mock
- nose
- numpy
- pandas
- scipy
Expand All @@ -21,9 +19,7 @@ dependencies:
- pyproj
- python-dateutil
- rtree
- sphinx
- pip:
- future
- requests
- six
- sphinxcontrib-napoleon
4 changes: 3 additions & 1 deletion readthedocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,6 @@ conda:
file: conda-env.yml
python:
version: 2
setup_py_install: true
pip_install: true
extra_requirements:
- docs
14 changes: 13 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

setup(
name='RAPIDpy',
version='2.4.2',
version='2.4.3',
description='Python interface for RAPID (rapid-hub.org)',
long_description='RAPIDpy is a python interface for RAPID that assists to prepare inputs, runs the RAPID program,'
' and provides post-processing utilities (https://github.com/erdc-cm/RAPIDpy). More information '
Expand All @@ -28,4 +28,16 @@
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.5',
],
extras_require={
'tests': [
'pytest',
'pytest-cov',
],
'docs': [
'mock',
'sphinx',
'sphinx_rtd_theme',
'sphinxcontrib-napoleon',
]
},
)
175 changes: 85 additions & 90 deletions tests/test_gis.py

Large diffs are not rendered by default.

Loading

0 comments on commit f42a78b

Please sign in to comment.