From 37225e1091197d37b373390b933548979cfd3502 Mon Sep 17 00:00:00 2001 From: Dennis Burke Date: Mon, 19 Aug 2024 14:57:41 -0400 Subject: [PATCH] a better way to upload the README to pypi --- pyproject.toml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 50e2a57..caa03da 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -31,10 +31,10 @@ dependencies = [ ] requires-python = '>=3.8' keywords = ['textile', 'text', 'html markup'] -# use pandoc to generate a markdown version of the README before uploading: -# pandoc README.textile -o README.md -# this kinda hurts to have to do this. -readme = {file = 'README.md', content-type = 'text/markdown'} +# Use the following command to generate a README.txt which is compatible with +# pypi's readme rendering: +# pytextile README.textile | sed -e 's/^\t//' > README.txt +readme = {file = 'README.txt', content-type = 'text/markdown'} [project.optional-dependencies] develop = ['pytest', 'pytest-cov']