Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing env.sh script #124

Merged
merged 4 commits into from
Jan 27, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Copy link
Contributor

@juliacollins juliacollins Jan 27, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does the pyproject.toml change essentially create a symlink? (Looking for documentation on this feature but haven't found it yet)

$ metgenc process --config example/modscg.ini

* Validate JSON output
Expand Down
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -96,3 +96,4 @@ addopts = [

[tool.poetry.scripts]
metgenc = 'nsidc.metgen.cli:cli'
metgenc-env = { reference = "scripts/metgenc-env.sh", type= "file" }
2 changes: 1 addition & 1 deletion scripts/env.sh → scripts/metgenc-env.sh
Original file line number Diff line number Diff line change
@@ -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
Expand Down
Loading