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

Change earth2-grid to earth2grid #24

Closed
wants to merge 3 commits into from

Conversation

oliverwm1
Copy link
Contributor

Trying to resolve this issue I got when installing package directly from git url.

Using Python 3.10.16 environment at: /opt/homebrew/Caskroom/miniconda/base/envs/fme
  × Failed to download and build `earth2grid @ git+https://github.com/NVlabs/[email protected]`
  ╰─▶ Package metadata name `earth2-grid` does not match given name `earth2grid`

@oliverwm1
Copy link
Contributor Author

@nbren12 can this get merged? It resolves the issue I note in the PR description above.

@nbren12
Copy link
Collaborator

nbren12 commented Feb 7, 2025

Thanks for fixing the github link, but would be interested to know if you can resolve the issue without renaming the package from earth2-grid to earth2grid, since I'm worried this change could break somebody else's workflow.

Would fixing the name in you requirements.txt or setup.py to earth2-grid fix this? .e.g.

earth2-grid @ git+https://github.com/NVlabs/[email protected]

@oliverwm1
Copy link
Contributor Author

Thanks for fixing the github link, but would be interested to know if you can resolve the issue without renaming the package from earth2-grid to earth2grid, since I'm worried this change could break somebody else's workflow.

Will try. Although I expect the inconsistency would continue to confuse users/lead to this issue cropping up again in the future. The name would still be earth2-grid for older versions of the package, so as long as downstream packages have version pinned, it seems like it would be okay?

@nbren12
Copy link
Collaborator

nbren12 commented Feb 7, 2025

Although I expect the inconsistency would continue to confuse users/lead to this issue cropping up again in the future.

If you think it would make a big difference, I'm open, but removing a "-" in a package name is pretty common in python

  • scikit-learn -> sklearn
  • python-dotenv -> dotenv

@oliverwm1
Copy link
Contributor Author

Would fixing the name in you requirements.txt or setup.py to earth2-grid fix this? .e.g.

Thanks, this worked.

If you think it would make a big difference, I'm open, but removing a "-" in a package name is pretty common in python

Up to you... given the name of this repo, I do think the earth2-grid is more confusing than the examples you provide. This change would make the package noticeably easier to use IMO.

@nbren12
Copy link
Collaborator

nbren12 commented Feb 7, 2025 via email

@nbren12
Copy link
Collaborator

nbren12 commented Feb 7, 2025

Actually, @oliverwm1. Sorry but I have a bit of red tape for you. Can you sign-off on the commit git commit -s and re-push? This ensures you are good with the DCO.

@oliverwm1
Copy link
Contributor Author

Sure thing. Good iwth 9a54662 ?

@nbren12
Copy link
Collaborator

nbren12 commented Feb 7, 2025

Technically I think every commit has to be signed off for external contribution. But something like

git reset --soft origin/main
git commit -s -m "your message"
git push --force origin HEAD

should work.

Sorry for the trouble.

@nbren12
Copy link
Collaborator

nbren12 commented Feb 7, 2025

🐹 🛞

@oliverwm1
Copy link
Contributor Author

Hah. Yeah the amend didn't work. This seemed easier: #26

@oliverwm1 oliverwm1 closed this Feb 7, 2025
@oliverwm1 oliverwm1 deleted the fix-project-name branch February 7, 2025 22:37
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