Fancy PyPI READMEs with Hatch
Project description
hatch-fancy-pypi-readme
Because your ✨fancy project✨ deserves a ✨fancy PyPI landing page✨.
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-basedpyproject.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
- License: MIT
- PyPI: https://pypi-hypernode.com/project/hatch-fancy-pypi-readme/
- Source Code: https://github.com/hynek/hatch-fancy-pypi-readme
- Documentation: https://github.com/hynek/hatch-fancy-pypi-readme#readme
- Changelog: https://github.com/hynek/hatch-fancy-pypi-readme/blob/main/CHANGELOG.md
- Supported Python Versions: 3.8 and later. Please note that this is the requirement for building packages and not for the packages themselves!
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file hatch_fancy_pypi_readme-22.2.0.tar.gz
.
File metadata
- Download URL: hatch_fancy_pypi_readme-22.2.0.tar.gz
- Upload date:
- Size: 23.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 781f3a55dd6d8ffaa878de208512d7373f55367399318cd88dc2f4c2e3c0cc37 |
|
MD5 | 3f78f8dfd7992d83e4344b1b446354e0 |
|
BLAKE2b-256 | e9741009f6643703f9428118a9d5b58b26b5264a80770deb08b79792504e9ea9 |
File details
Details for the file hatch_fancy_pypi_readme-22.2.0-py3-none-any.whl
.
File metadata
- Download URL: hatch_fancy_pypi_readme-22.2.0-py3-none-any.whl
- Upload date:
- Size: 10.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 476eb98ba161e2c31c3c10081508590076706ebfaa29a2f0facbc933f9896f8b |
|
MD5 | 41449ed3309c8329a36899e4cd09c95e |
|
BLAKE2b-256 | 487f035f0b4824f4fa6f371f2df01b9efbf6961016b4faf27e8de1202070f975 |