Skip to main content

Fancy PyPI READMEs with Hatch

Project description

hatch-fancy-pypi-readme

Because your ✨fancy project✨ deserves a ✨fancy PyPI landing page✨.

PyPI - Version PyPI - Python Version License: MIT

hatch-fancy-pypi-readme is a Hatch metadata plugin for everyone who cares about the first impression of their project’s PyPI landing page. It allows you to define your PyPI project description in terms of concatenated fragments that are based on static strings, files, and most importantly: parts of files defined using cut-off points or regular expressions.

You want your PyPI readme to be the project readme, but without badges, followed by the license file, and the changelog section for only the last release? You’ve come to the right place!

Note PyPI project description, PyPI landing page, and PyPI readme all refer to the same thing. In setuptools it’s called long_description and is the text shown on a project’s PyPI page. We refer to it as “readme” because that’s how it’s called in PEP 621-based pyproject.toml files.

Motivation

In the olden days of setup.py files, I’ve taken advantage of the fact that I can write Python to have compelling PyPI readmes.

For example this is the code that gave me the PyPI readme for attrs 22.1.0. Especially having a summary of the latest changes is something I’ve found users to appreciate.

The move away from dynamic setup.py files to static pyproject.toml configurations is great, but it robbed me of being able to provide this service to my users. I’ve been able to add some dynamism using the wonderful Cog, but it’s a bit awkward and shouldn’t be the long-term solution.

The goal of this plugin is to be able to switch away from setup.py without compromising on the user experience and without needing third-party tools for configuration-file templating.


With Hatch we got a standards-based packaging library that offers exactly the plugin interface I needed. Now you too can have fancy PyPI readmes – just by adding a few lines of configuration to your pyproject.toml.

Project Links

Release Information

22.2.0 - 2022-08-05

Changed

  • We can finally use hatch-fancy-pypi-readme for our own ✨fancy✨ PyPI readme!

Fixed

  • Hopefully fixed readmes with emojis on Windows.

Of course, this PyPI readme has been created by hatch-fancy-pypi-readme. Isn’t it ✨fancy✨?

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

hatch_fancy_pypi_readme-22.2.0.tar.gz (23.4 kB view details)

Uploaded Source

Built Distribution

hatch_fancy_pypi_readme-22.2.0-py3-none-any.whl (10.2 kB view details)

Uploaded Python 3

File details

Details for the file hatch_fancy_pypi_readme-22.2.0.tar.gz.

File metadata

File hashes

Hashes for hatch_fancy_pypi_readme-22.2.0.tar.gz
Algorithm Hash digest
SHA256 781f3a55dd6d8ffaa878de208512d7373f55367399318cd88dc2f4c2e3c0cc37
MD5 3f78f8dfd7992d83e4344b1b446354e0
BLAKE2b-256 e9741009f6643703f9428118a9d5b58b26b5264a80770deb08b79792504e9ea9

See more details on using hashes here.

File details

Details for the file hatch_fancy_pypi_readme-22.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for hatch_fancy_pypi_readme-22.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 476eb98ba161e2c31c3c10081508590076706ebfaa29a2f0facbc933f9896f8b
MD5 41449ed3309c8329a36899e4cd09c95e
BLAKE2b-256 487f035f0b4824f4fa6f371f2df01b9efbf6961016b4faf27e8de1202070f975

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page