Skip to main content

collective.checkdocs

collective.checkdocs adds new distutils commands checkdocs and showdocs to validate restructured text in long_description field of Python eggs. This package aims to make Python egg help page publishing and editing easier.

Eggs’ long description field, which is usually also the README.txt file of the package, is reST formatted text. This text is converted to HTML to show on the package page when package is published in distribution repositories like PyPI or plone.org. Unfortunately, since repositories do poor job to validate incoming reST text, errors in the text will result to broken published package pages.

Unpublishing is usually very cumbersome. We save our time by validating reST input using checkdocs and showdocs commands.

New commands

The following commands will be added to all setup.py installers.

checkdocs

Run long_description through reST to HTML converter and print errors and warnings to the standard output.

Any errors and warnings will cause distutils to abort.

Example:

python setup.py checkdocs
<string>:4: (WARNING/2) Inline literal start-string without end-string.
error: long_description had reST syntax errors

showdocs

Run long_description through reST to HTML converter and display the result in a local webbrowser. Runs a web server in port 6969 until CTRL+C is pressed.

Example:

python setup.py showdocs
running showdocs
reST to HTML conversion available at at http://localhost:6969/ - press CTRL+C to interrupt

Resources

Metadata

Release files for collective.checkdocs 0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for collective.checkdocs 0.1
File Size Uploaded
collective.checkdocs-0.1.tar.gz 3.4 kB Details

Release files / collective.checkdocs-0.1.tar.gz

Download URL collective.checkdocs-0.1.tar.gz
Size 3.4 kB
Tags Source
SHA-256 checksum
How to use checksums
994ac0a41b2336e3791b683fbcc39eeba210d82dedf96323a85dfc056decdc0c
BLAKE2b-256 checksum
How to use checksums
9725c82104841c4ea3bc6e1dd4c4663374820570e11b55f573125a66c94d9348
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

0.2

1 release file

0.1.2

1 release file

0.1.1

1 release file

This release

0.1 This release

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page