Skip to content

Commit 1a6ee2b

Browse files
committed
make_metadata.py: Allow to use README.rst as a long_description.
1 parent dd89d54 commit 1a6ee2b

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

make_metadata.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
setup(name='micropython-%(dist_name)s',
1818
version='%(version)s',
1919
description=%(desc)r,
20-
long_description=%(long_desc)r,
20+
long_description=%(long_desc)s,
2121
url='https://github.com/micropython/micropython/issues/405',
2222
author=%(author)r,
2323
author_email=%(author_email)r,
@@ -154,6 +154,10 @@ def main():
154154
data["dist_name"] = dirname
155155
if "name" not in data:
156156
data["name"] = module
157+
if data["long_desc"] == "README.rst":
158+
data["long_desc"] = "open(%r).read()" % data["long_desc"]
159+
else:
160+
data["long_desc"] = repr(data["long_desc"])
157161

158162
data["modules"] = "'" + data["name"].split(".", 1)[0] + "'"
159163
if "extra_modules" in data:

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy