7

I followed the Python packaging guide to upload my project to TestPyPI, but the README is missing images.

I read that relative paths to images don't work because PyPI only has the scope of the README itself and (maybe) Sphinx directory? So the README on Codeberg looks normal, but on PyPI it's missing the images.

What can I do so both Codeberg and PyPI can render images?

Ideally, I would like a solution that still allows rendering the images locally after downloading the source files (if that's possible).

I thought of maintaining a clone of the README (something like README.pypi.md), but I don't think that is a good idea. Any thoughts?

you are viewing a single comment's thread
view the rest of the comments
[-] Vulwsztyn@programming.dev 2 points 1 week ago

make links absolute links to the images on codeberg

this post was submitted on 28 Mar 2026
7 points (100.0% liked)

Python

7870 readers
2 users here now

Welcome to the Python community on the programming.dev Lemmy instance!

📅 Events

PastNovember 2023

October 2023

July 2023

August 2023

September 2023

🐍 Python project:
💓 Python Community:
✨ Python Ecosystem:
🌌 Fediverse
Communities
Projects
Feeds

founded 2 years ago
MODERATORS