Repository navigation
Fix: convert remote image directives in README.rst to hyperlinks to unblock PyPI publish - #30
Merged
Merged
Conversation
Agent-Logs-Url: https://github.com/rilma/pyHWM14/sessions/b183c387-10d7-454b-a552-9ff20904a05c Co-authored-by: rilma <14822065+rilma@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Fix README.rst image references for package publishing
Fix: convert remote image directives in README.rst to hyperlinks to unblock PyPI publish
May 14, 2026
rilma
marked this pull request as ready for review
May 14, 2026 21:33
rilma
approved these changes
May 14, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
twine check dist/*fails during the publish workflow because docutils attempts to fetch remote images embedded inREADME.rst(the PyPI long description), producing:Requires Python Imaging Library. Reading external files disabled.Changes
README.rst: Replace all.. image::directives pointing to remote URLs with plain RST hyperlinks:`CI Status <...>`_)figure_1.png…figure_16b.png) →`View figure_N.png <...>`_linksBefore:
After:
No workflow changes. No code changes. Fix is strictly scoped to the README content that feeds PyPI metadata validation.
Type of Change
Checklist
Testing
Additional Context
Root cause: PyPI's readme renderer and
twine checkboth invoke docutils without network/PIL access. Any.. image::directive with a remote URL triggers a file-read attempt that fails. Converting to hyperlinks preserves the visual links on GitHub while making the RST safe for PyPI metadata validation.Original prompt
This pull request was created from Copilot chat.