diff --git a/CHANGELOG.md b/CHANGELOG.md index f4149a8..4053054 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,7 @@ * Creates and publishes documentation to [ReadTheDocs](https://granule-metgen.readthedocs.io/en/latest/) * Internal updates to no longer rely on a deprecated Python function +* Fixes instructions to set the AWS environment ## v1.0.0 diff --git a/README.md b/README.md index 50990fb..183fdfb 100644 --- a/README.md +++ b/README.md @@ -252,7 +252,7 @@ Options: * Process science data and stage it for Cumulus: # Source the AWS profile (once) before running 'process'-- use 'default' or a named profile - $ source scripts/env.sh default + $ source metgenc-env.sh default $ metgenc process --config example/modscg.ini * Validate JSON output diff --git a/pyproject.toml b/pyproject.toml index 857ad15..42c2bfd 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -96,3 +96,4 @@ addopts = [ [tool.poetry.scripts] metgenc = 'nsidc.metgen.cli:cli' +metgenc-env = { reference = "scripts/metgenc-env.sh", type= "file" } diff --git a/scripts/env.sh b/scripts/metgenc-env.sh similarity index 93% rename from scripts/env.sh rename to scripts/metgenc-env.sh index e4e3c1e..4596b69 100755 --- a/scripts/env.sh +++ b/scripts/metgenc-env.sh @@ -1,7 +1,7 @@ #!/bin/bash if (( $# != 1 )); then - echo "Usage: source env.sh aws_profile_name" + echo "Usage: source metgenc-env.sh aws_profile_name" echo " where aws_profile_name is an AWS CLI named profile" echo " https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-profiles.html" exit 1