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

Properly include examples and logo required for doc build in sdists #320

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

sbraz
Copy link
Contributor

@sbraz sbraz commented Mar 7, 2020

Fixes the following warnings:

docs/index.rst:: WARNING: image file not readable: ../assets/mechanical-soup-logo.png
docs/tutorial.rst:196: WARNING: Include file 'examples/expl_httpbin.py' not found or reading it failed

Fixes the following warnings:
docs/index.rst:: WARNING: image file not readable: ../assets/mechanical-soup-logo.png
docs/tutorial.rst:196: WARNING: Include file 'examples/expl_httpbin.py' not found or reading it failed
include requirements.txt tests/requirements.txt
include docs/*
include assets/mechanical-soup-logo.png
Copy link
Collaborator

Choose a reason for hiding this comment

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

IIRC it was deliberate not to have the image in the distribution. I need to check the history 'cause I dont remember the ins and outs (will do ASAP).

Copy link
Collaborator

Choose a reason for hiding this comment

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

Oops, I totally forgot that, sorry for the late answer.

The issue I had in mind was #239, where we decided to link to the logo hosted here on PyPI to keep the source distribution small. I'm not opposed to changing this, but I'd like @hemberger 's opinion before we do.

The source distribution is currently ~50kB, and the logo is ~100kB so the difference is both small in terms of absolute size and huge in relative size.

A possible alternative to including the logo is to change the link to point directly to the GitHub version, although people who use the locally built doc probably prefer to also have the logo locally.

Copy link
Contributor

Choose a reason for hiding this comment

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

My feeling is that it not important to this project to include the logo in the distribution, so I would be in favor of pointing directly to the GitHub version. This would also simplify writing the long_description in setup.py, since we wouldn't need to find/replace the relative path to the logo there either.

For what it's worth, Requests links to its images on GitHub (and doesn't include its docs in the manifest either).

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.

None yet

3 participants