We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents de1542e + af37dff commit aaa0e13Copy full SHA for aaa0e13
tools/pylib/_boutpp_build/backend.py
@@ -216,9 +216,16 @@ def build_sdist(sdist_directory, config_settings=None):
216
f"""Metadata-Version: 2.1
217
Name: {pkgname}
218
Version: {getversion()}
219
-License-File: COPYING
220
"""
221
)
+ with open("LICENSE") as src:
222
+ pre = "License: "
223
+ for l in src:
224
+ f.write(f"{pre}{l}")
225
+ pre = " "
226
+ f.write("Description-Content-Type: text/markdown\n\n")
227
+ with open("README.md") as src:
228
+ f.write(src.read())
229
run(
230
f"tar --append -f {sdist_directory}/{fname} _version.txt --xform='s\\_version.txt\\{prefix}/_version.txt\\'"
231
0 commit comments