From 944b92f116b008548f86e0f88bb9c1286a13a3f3 Mon Sep 17 00:00:00 2001 From: Daniel Scheffler Date: Tue, 15 Jun 2021 11:21:49 +0200 Subject: [PATCH] Moved bin/enpt_cli.py to enpt/cli.py to fix missing argparser when installed from conda. Signed-off-by: Daniel Scheffler --- .gitignore | 2 ++ HISTORY.rst | 6 ++++++ MANIFEST.in | 2 -- docs/usage.rst | 2 +- bin/enpt_cli.py => enpt/cli.py | 0 setup.py | 2 +- tests/test_cli_parser.py | 4 ++-- 7 files changed, 12 insertions(+), 6 deletions(-) rename bin/enpt_cli.py => enpt/cli.py (100%) diff --git a/.gitignore b/.gitignore index 74937e3..5e1f10c 100644 --- a/.gitignore +++ b/.gitignore @@ -205,6 +205,8 @@ tests/linting/pydocstyle.log.log /docs/enpt.execution.rst /docs/enpt.io.rst /docs/enpt.model.rst +/docs/enpt.model.images.rst +/docs/enpt.model.metadata.rst /docs/enpt.options.rst /docs/enpt.processors.atmospheric_correction.rst /docs/enpt.processors.cloud_screening.rst diff --git a/HISTORY.rst b/HISTORY.rst index 526afee..57d96ad 100644 --- a/HISTORY.rst +++ b/HISTORY.rst @@ -2,6 +2,12 @@ History ======= +0.17.4 (2021-06-15) +------------------- + +* Moved bin/enpt_cli.py to enpt/cli.py to fix missing argparser when installed from conda. + + 0.17.3 (2021-06-04) ------------------- diff --git a/MANIFEST.in b/MANIFEST.in index 0b7decd..c53b26f 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -1,6 +1,4 @@ - include AUTHORS.rst - include CONTRIBUTING.rst include HISTORY.rst include LICENSE diff --git a/docs/usage.rst b/docs/usage.rst index 38b66bc..5eda26c 100644 --- a/docs/usage.rst +++ b/docs/usage.rst @@ -125,7 +125,7 @@ enpt At the command line, EnPT provides the **enpt** command: .. argparse:: - :filename: ./../bin/enpt_cli.py + :filename: ./../enpt/cli.py :func: get_enpt_argparser :prog: enpt diff --git a/bin/enpt_cli.py b/enpt/cli.py similarity index 100% rename from bin/enpt_cli.py rename to enpt/cli.py diff --git a/setup.py b/setup.py index 7484982..0bf7c68 100644 --- a/setup.py +++ b/setup.py @@ -87,7 +87,7 @@ setup( description="EnMAP Processing Tool", entry_points={ 'console_scripts': [ - 'enpt=bin.enpt_cli:main', + 'enpt=enpt.cli:main', ], }, extras_require={ diff --git a/tests/test_cli_parser.py b/tests/test_cli_parser.py index af2e4c1..a5121c2 100644 --- a/tests/test_cli_parser.py +++ b/tests/test_cli_parser.py @@ -32,7 +32,7 @@ test_cli_parser --------------- -Tests for enpt.bin.enpt_cli.py +Tests for enpt.bin.cli.py """ from unittest import TestCase @@ -46,7 +46,7 @@ import enpt __author__ = 'Daniel Scheffler' -path_run_enpt = os.path.abspath(os.path.join(enpt.__path__[0], '..', 'bin', 'enpt_cli.py')) +path_run_enpt = os.path.abspath(os.path.join(enpt.__path__[0], 'cli.py')) class Test_CLIParser(TestCase): -- GitLab