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

Small modifications to PR #16: Adding .env vars for sfapi credentials, import dependency fix #17

Merged
merged 2 commits into from
Apr 17, 2024

Conversation

rajasriramoju
Copy link
Contributor

No description provided.

@rajasriramoju rajasriramoju changed the title Small modifications to PR #16: Small modifications to PR #16: Adding .env vars for sfapi credentials, import dependency fix Apr 16, 2024
Copy link
Contributor

@dylanmcreynolds dylanmcreynolds left a comment

Choose a reason for hiding this comment

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

Added a quick idea.

) -> None:
config = globus.get_config()
self.endpoints = globus.build_endpoints(config)
self.apps = globus.build_apps(config)
self.tc: TransferClient = globus.init_transfer_client(self.apps["als_transfer"])
self.nersc = NerscPtychoClient(
path_client_id,
path_priv_key,
os.getenv("PATH_NERSC_ID"),
Copy link
Contributor

Choose a reason for hiding this comment

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

What do you think of providing a default here that points to the folder that we put into .gitignore?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I did consider that, but I used this approach in case we moved folders at any point, for the class or the keys. Open to either solution for this.

Copy link
Contributor

Choose a reason for hiding this comment

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

I really want to encourage developers (including future me) to by default put those files into the directory that is in .gitignore.

@dylanmcreynolds dylanmcreynolds merged commit 4a8eb64 into main Apr 17, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants