From: Steve Dower Date: Tue, 25 Feb 2020 20:07:00 +0000 (+0000) Subject: bpo-38403: Update nuspec file for deprecated field and git repository (GH-18657) X-Git-Tag: v3.9.0a5~240 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=d6448919702142123d937a54f20a81aeaf8d2acc;p=thirdparty%2FPython%2Fcpython.git bpo-38403: Update nuspec file for deprecated field and git repository (GH-18657) --- diff --git a/Misc/NEWS.d/next/Windows/2020-02-25-18-43-34.bpo-34803.S3VcS0.rst b/Misc/NEWS.d/next/Windows/2020-02-25-18-43-34.bpo-34803.S3VcS0.rst new file mode 100644 index 000000000000..144ffd50af0e --- /dev/null +++ b/Misc/NEWS.d/next/Windows/2020-02-25-18-43-34.bpo-34803.S3VcS0.rst @@ -0,0 +1,2 @@ +Package for nuget.org now includes repository reference and bundled icon +image. diff --git a/PC/icons/logo.svg b/PC/icons/logo.svg new file mode 100644 index 000000000000..6f521503a383 --- /dev/null +++ b/PC/icons/logo.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/PC/icons/logox128.png b/PC/icons/logox128.png new file mode 100644 index 000000000000..d2655c72e7df Binary files /dev/null and b/PC/icons/logox128.png differ diff --git a/PC/layout/support/nuspec.py b/PC/layout/support/nuspec.py index b85095c555fe..9c6a9a915950 100644 --- a/PC/layout/support/nuspec.py +++ b/PC/layout/support/nuspec.py @@ -3,6 +3,7 @@ Provides .props file. """ import os +import sys from .constants import * @@ -14,6 +15,7 @@ NUSPEC_DATA = { "PYTHON_TAG": VER_DOT, "PYTHON_VERSION": os.getenv("PYTHON_NUSPEC_VERSION"), "FILELIST": r' ', + "GIT": sys._git, } NUSPEC_PLATFORM_DATA = dict( @@ -42,10 +44,13 @@ NUSPEC_TEMPLATE = r""" tools\LICENSE.txt https://www.python.org/ Installs {PYTHON_BITNESS} Python for use in build scenarios. + images\logox128.png https://www.python.org/static/favicon.ico python + + {FILELIST} @@ -68,5 +73,6 @@ def get_nuspec_layout(ns): data[k] = v if ns.include_all or ns.include_props: data["FILELIST"] = FILELIST_WITH_PROPS + data["LOGO"] = ns.source / "PC" / "icons" / "logox128.png" nuspec = NUSPEC_TEMPLATE.format_map(data) yield "python.nuspec", ("python.nuspec", nuspec.encode("utf-8"))