kopia lustrzana https://github.com/micropython/micropython-lib
make_metadata.py: Allow to use README.rst as a long_description.
rodzic
dd89d5452b
commit
1a6ee2b01f
|
@ -17,7 +17,7 @@ from setuptools import setup
|
||||||
setup(name='micropython-%(dist_name)s',
|
setup(name='micropython-%(dist_name)s',
|
||||||
version='%(version)s',
|
version='%(version)s',
|
||||||
description=%(desc)r,
|
description=%(desc)r,
|
||||||
long_description=%(long_desc)r,
|
long_description=%(long_desc)s,
|
||||||
url='https://github.com/micropython/micropython/issues/405',
|
url='https://github.com/micropython/micropython/issues/405',
|
||||||
author=%(author)r,
|
author=%(author)r,
|
||||||
author_email=%(author_email)r,
|
author_email=%(author_email)r,
|
||||||
|
@ -154,6 +154,10 @@ def main():
|
||||||
data["dist_name"] = dirname
|
data["dist_name"] = dirname
|
||||||
if "name" not in data:
|
if "name" not in data:
|
||||||
data["name"] = module
|
data["name"] = module
|
||||||
|
if data["long_desc"] == "README.rst":
|
||||||
|
data["long_desc"] = "open(%r).read()" % data["long_desc"]
|
||||||
|
else:
|
||||||
|
data["long_desc"] = repr(data["long_desc"])
|
||||||
|
|
||||||
data["modules"] = "'" + data["name"].split(".", 1)[0] + "'"
|
data["modules"] = "'" + data["name"].split(".", 1)[0] + "'"
|
||||||
if "extra_modules" in data:
|
if "extra_modules" in data:
|
||||||
|
|
Ładowanie…
Reference in New Issue