From 4ac54dc761f88a1557ffb5a32d1c5e0f89832065 Mon Sep 17 00:00:00 2001 From: Daniel Scheffler Date: Fri, 27 Nov 2020 18:11:23 +0100 Subject: [PATCH] Fixed issue #105 ('FileNotFoundError: Options file not found ...' when running run_gms.py -h after installing gms_preprocessing from pip or conda-forge.). Signed-off-by: Daniel Scheffler --- HISTORY.rst | 4 +++- MANIFEST.in | 1 + setup.py | 3 ++- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/HISTORY.rst b/HISTORY.rst index 7acfe56..5fa9c21 100644 --- a/HISTORY.rst +++ b/HISTORY.rst @@ -17,10 +17,12 @@ History * Fixed some type hinting issues. * GMS_object.get_subset_obj() now returns None in case the subset contains no data at all. * Added missing MemoryReserver.logger.close() call. -* Fixed an issue causing the L2B/L2C output to containĀ  wrong spectral bands in case the spectral homogenization is +* Fixed an issue causing the L2B/L2C output to contain wrong spectral bands in case the spectral homogenization is executed and sort_by_cwl is set to True (due to a wrong wavelength order if no_pan=False). * SpatialIndexMediator.getFullSceneDataForDataset() now retries the query 10 times in case of a struct.error (relates to issue #103). +* Fixed issue #105 ('FileNotFoundError: Options file not found ...' when running run_gms.py -h after installing + gms_preprocessing from pip or conda-forge.) 0.18.11 (2020-11-03) diff --git a/MANIFEST.in b/MANIFEST.in index ad3b8c4..0d2c939 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -3,6 +3,7 @@ include CONTRIBUTING.rst include HISTORY.rst include LICENSE include README.rst +include options/options_default.json exclude travis_pypi_setup.py recursive-exclude .github * diff --git a/setup.py b/setup.py index d911cd4..9965acb 100644 --- a/setup.py +++ b/setup.py @@ -117,7 +117,8 @@ setup( license="GPL-3.0-or-later", long_description=readme, name='gms_preprocessing', - package_data={"gms_preprocessing": ["database/**/**/*"]}, + package_data={"gms_preprocessing": ["database/**/**/*", + "options/options_default.json"]}, package_dir={'gms_preprocessing': 'gms_preprocessing'}, packages=find_packages(exclude=['.github', 'benchmarks', 'docs', 'examples', 'tests*']), scripts=["bin/run_gms.py", "bin/run_gms.sh"], -- GitLab