Commit 275a9c60 authored by Daniel Scheffler's avatar Daniel Scheffler
Browse files

Added .coveragerc; Modified coverage section in Makefile; Removed pyhdf from...

Added .coveragerc; Modified coverage section in Makefile; Removed pyhdf from automatically installed setup requirements.
Former-commit-id: a1d3de9d
Former-commit-id: 5af250f0
parent e3c3c151
# .coveragerc to control coverage.py
[run]
branch = False
concurrency = multiprocessing
parallel = True
[report]
# Regexes for lines to exclude from consideration
exclude_lines =
# Have to re-enable the standard pragma
pragma: no cover
# Don't complain if tests don't hit defensive assertion code:
raise AssertionError
raise NotImplementedError
# Don't complain if non-runnable code isn't run:
if 0:
if __name__ == .__main__.:
ignore_errors = True
[html]
directory = coverage_html_report
......@@ -57,7 +57,7 @@ test-all: ## run tests on every Python version with tox
tox
coverage: ## check code coverage quickly with the default Python
coverage run --concurrency=multiprocessing --source geomultisens setup.py test
coverage run --source geomultisens setup.py test
coverage combine # must be called in order to make coverage work in multiprocessing
coverage report -m
coverage html
......
......@@ -15,7 +15,7 @@ dill
pandas
numba
spectral
pyhdf
# pyhdf # not pip installable
geopandas
iso8601
pyinstrument
......
......@@ -2,6 +2,7 @@
# -*- coding: utf-8 -*-
from setuptools import setup, find_packages
import warnings
with open('README.rst') as readme_file:
readme = readme_file.read()
......@@ -11,8 +12,9 @@ with open('HISTORY.rst') as history_file:
requirements = [
'matplotlib', 'numpy', 'scikit-learn', 'scipy', 'gdal', 'pyproj', 'shapely', 'ephem', 'pyorbital', 'dill',
'pandas', 'numba', 'spectral', 'pyhdf', 'geopandas', 'iso8601', 'pyinstrument', 'geoalchemy2', 'sqlalchemy',
'pandas', 'numba', 'spectral', 'geopandas', 'iso8601', 'pyinstrument', 'geoalchemy2', 'sqlalchemy',
'py_tools_ds', 'geoarray', 'arosics'
#'pyhdf', # conda install --yes -c conda-forge pyhdf
#'sicor', # pip install git+https://gitext.gfz-potsdam.de/hollstei/sicor.git
]
setup_requirements = [] # TODO(danschef): put setup requirements (distutils extensions, etc.) here
......@@ -51,3 +53,12 @@ setup(
test_suite='tests',
tests_require=test_requirements
)
# check for pyhdf
try:
import pyhdf
except ImportError:
warnings.warn('If you have not compiled GDAL with HDF4 support you need to install pyhdf manually '
'(see http://pysclint.sourceforge.net/pyhdf/install.html) for processing Terra ASTER data.'
'It is not automatically installed.') # TODO
......@@ -82,7 +82,8 @@ class Test_Landsat8_PreCollectionData(BaseTestCases.TestAll):
path_archive = os.path.join(gmsRepo_rootpath, 'tests', 'data', 'archive_data'),
path_procdata_scenes = os.path.join(gmsRepo_rootpath, 'tests', 'data', 'output_scenes'),
path_procdata_MGRS = os.path.join(gmsRepo_rootpath, 'tests', 'data', 'output_mgrs_tiles'),
is_test = True)
is_test = True,
CPUs=1)
cls.PC = process_controller(26186196, parallelization_level='scenes', db_host='geoms', delete_old_output=True,
job_config_kwargs=job_config_kwargs)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment