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

Fixing broken PyPI publishing #350

Merged
merged 5 commits into from
Nov 7, 2024
Merged

Fixing broken PyPI publishing #350

merged 5 commits into from
Nov 7, 2024

Conversation

og113
Copy link
Collaborator

@og113 og113 commented Nov 7, 2024

The issue was that an .hdf5 file was changed by the checkout process (for some reason?) and this meant the tag was out of date. Fixed by adding data in tests/TestData/N*/*.hdf5 to git-lfs.

git status
git log -n 2
git diff

Copy link
Collaborator

Choose a reason for hiding this comment

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

What's this for? I'm imagining the intention may be to abort if there are local changes, but I don't think this even does that?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yes, it just prints things for debugging. Any local changes change the tag and break a release on PyPI. I have found it handy to fix the current issue, and don't see much reason to drop it, as if there is a failure in future we will have more info, and it doesn't exactly take any time to execute.

- name: Install WallGo Python package
run: |
pip uninstall WallGo
pip install . --upgrade -v
Copy link
Collaborator

Choose a reason for hiding this comment

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

Is the uninstall necessary? I'm under the impression that github runners always start with a fresh virtual environment

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yes, it is. Again, just for debugging purposes. I could remove it another day, but for now I think let's proceed, as we approach the submission deadline.

@og113 og113 merged commit baa4905 into main Nov 7, 2024
7 checks passed
@og113 og113 deleted the PublishFix branch November 7, 2024 17:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants